espressif / esp-skainet

Espressif intelligent voice assistant
Other
533 stars 117 forks source link

Audio Quality and Volume Issues in "usb_mic_recorder" Example (AIS-1358) #114

Open kadharsh opened 9 months ago

kadharsh commented 9 months ago

I have been working with the "usb_mic_recorder" example. The example functions as expected and I've made modifications to incorporate noise suppression and acoustic echo cancellation (AEC) into the USB audio output. While the noise suppression and AEC are effective, I've noticed significant audio quality and volume issues. The audio quality both in its original form and after my modifications is bad, and it is worse than the audio from even low-cost Chinese USB microphones. The volume of the recorded audio is very low, making it difficult to use for practical applications, The gain on the microphones is set to 37.5 DB Hardware

I really appreciate any help regarding this, Thank you.

feizi commented 9 months ago
  1. Low volume You can increase the volume of the recording by adjusting the gain of the codec (ES7210). esp_codec_dev_set_in_channel_gain(record_dev, ESP_CODEC_DEV_MAKE_CHANNEL_MASK(0), RECORD_VOLUME);

  2. Audio quality The recording quality may be related to multiple factors, such as the reference voltage of the codec and the type of the microphone. I am not familiar with hardware design, but you can contact the hardware department of Espressif to assist in reviewing your design. Additionally, you can compare the recording quality with that of the esp-box to see if there are any issues in your board.

kadharsh commented 9 months ago

he volume of the recorded audio is very low, making it difficult to use for practical applications, The gain on the microphones is set to 37.5 DB

Thank you for your replay, as I have mentioned I tried changing the RECORD_VOLUME to 30 and 37.5, but it was still low, and with higher gains, the noise was also high. Anyway, I'll get an ESP-box, compare both boards, and update the post.