In New Android Studio Koala and above, Just open the emulator config file (for my mac it's ~/.android/avd/{emulator_name}/config.ini and add
~/.android/avd/{emulator_name}/config.ini
hw.audioInput=yes hw.audioOutput=yes
Answered here: https://stackoverflow.com/a/79524675/8572350