Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kadharsh opened this issue Sep 22, 2023 · 2 comments
Open

Comments

@kadharsh
Copy link

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

  • ESP32-S3 DevkitC with 8mb flash and 2mb psram
  • Custom ES7210 and ES8311 breakout board with electret microphones connected with the same pinouts as ESP32 s3 box.

I really appreciate any help regarding this, Thank you.

@github-actions github-actions bot changed the title Audio Quality and Volume Issues in "usb_mic_recorder" Example Audio Quality and Volume Issues in "usb_mic_recorder" Example (AIS-1358) Sep 22, 2023
@feizi
Copy link
Collaborator

feizi commented Sep 22, 2023

  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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants