Headphone out is way too soft #62
-
I have many of the samples working (player-sd-audiokit, streams-url_mp3-audiokit, audiokit-effects-audiokit), but I just can't increase the volume, no matter what I do. With headphones, it's barely hearable. With a powered speaker with the volume all the way up, it's still softer than a speaking voice. My board is an AI Thinker ESP32 Audio Kit v2.2 A237. I've changed the board to #5, #7 and #10, but only #5 and #10 work (but still low volume). Is it possible this board is using some other chip set? My goal is to eventually build a simple guitar effects box, using audiokit-effects-audiokit as a starting point. But for now, I'm just trying to get a clean input and output signal with reasonable levels. I've read through the thread with billy8119, who seems to have the same issue. Here is what I have so far. It's pretty simple. If I set the mic gain above 18 db, I hear some clipping/distortion. // Audio void setup() { auto cfg = kit.defaultConfig(RXTX_MODE); // minimize lag kit.begin(cfg); } void loop() { } |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 7 replies
-
For some strange reason only some Kits have issues with the volume: |
Beta Was this translation helpful? Give feedback.
-
I was never using the headphone output, so I don't know. |
Beta Was this translation helpful? Give feedback.
-
Just another idea: did you call kit.processActions() in the loop ? In my last commit I also added the setSpeakerActive() method to the AudioKitStream(), so that you can deactivate the speaker explicitly w/o the key event handler |
Beta Was this translation helpful? Give feedback.
-
I can confirm: if you do not want to use the power amplifier switch it off with With no volume hack the AUX provides line level which is too low for headphones. The AI_THINKER_ES8388_VOLUME_HACK 2 is just setting the mic_gain to a different default value and has no impact because you overwrite the value when you call es8388_set_mic_gain() |
Beta Was this translation helpful? Give feedback.
-
Success! Setting volume hack to 1 along with whatever else I changed fixed the issue. I'm getting a good clean sound from the line in to both the speaker and line out. Thanks Phil! I also tested the new cfg.speaker_active= false option, and can confirm it works. I think I read that with this board, you can't disable the built in microphone without disabling the line in, correct? I think the only solution is to physically modify the board? Next up for me - start playing with the effects. I'd like to add an EQ and reverb effect. If I have questions with that, I'll post it in the audio tools discussion. Thanks again Phil. |
Beta Was this translation helpful? Give feedback.
I can confirm: if you do not want to use the power amplifier switch it off with
auto cfg = kit.defaultConfig(TX_MODE);
// sd_active is setting up SPI with the right SD pins by calling
// SPI.begin(PIN_AUDIO_KIT_SD_CARD_CLK, PIN_AUDIO_KIT_SD_CARD_MISO, PIN_AUDIO_KIT_SD_CARD_MOSI, PIN_AUDIO_KIT_SD_CARD_CS);
cfg.speaker_active = false;
kit.begin(cfg);
With no volume hack the AUX provides line level which is too low for headphones.
Only with the #define AI_THINKER_ES8388_VOLUME_HACK 1 you can control the volume with setVolume()
The AI_THINKER_ES8388_VOLUME_HACK 2 is just setting the mic_gain to a different default value and has no impact because you overwrite the value when you call es8388_…