ESP32-A1S-AudioKit icon indicating copy to clipboard operation
ESP32-A1S-AudioKit copied to clipboard

Record and playback without Mic on ES8388

Open gerthalberg opened this issue 3 years ago • 17 comments

Does anyone know the configuration for recording and playback from the line-in jack - without having the microphones active also. That is short of desoldering the microphones?

gerthalberg avatar Oct 22 '21 16:10 gerthalberg

Hi I got the same question, when I select channel 1 I get MIC1 and MIC2 and Line1 mixed, when selecting channel 0, I get MIC3/MIC4 (which are not populated on my board, but hear that input is active when I touch the PCB pads with my fingers)

afaber999 avatar Oct 27 '21 23:10 afaber999

Good info, then maybe I can solder a new line in jack to those pads

gerthalberg avatar Oct 30 '21 10:10 gerthalberg

did you solve it ?

xuhongv avatar Nov 08 '21 09:11 xuhongv

No - Haven't had the time yet.

gerthalberg avatar Nov 09 '21 13:11 gerthalberg

we update the readme document.

xuhongv avatar Nov 12 '21 06:11 xuhongv

I have the same issue and don't find any update! If I select AUDIO_HAL_ADC_INPUT_LINE2, I also get both the microphone and line in. With AUDIO_HAL_ADC_INPUT_LINE1 I don't get any input at all. I was double checking Register 10 - but it is set up correctly.

https://www.pschatzmann.ch/home/2021/12/15/the-ai-thinker-audiokit-audio-input-bug/

pschatzmann avatar Dec 15 '21 11:12 pschatzmann

Same issue for me :-( . I have route the ADC line2 in the register ADC CONTROL2 and on some board this seem to work fine...but with new board now a have also the MIC in the audio input . It is a ESP32-A1S 2974. @xuhongv please could you send a link to this readme document and tell us if we can have only the line input and how to set this.

GillesLACAUD avatar Feb 25 '22 08:02 GillesLACAUD

+1

TakesTheBiscuit avatar Aug 25 '22 17:08 TakesTheBiscuit

did anyone solved it yet?

johermohit avatar Feb 27 '23 13:02 johermohit

Yes i have solved this....i have bypass the mic, just sold the 2 pins of the mics. It is an hardware issue on the board, you can't have only the line in .

GillesLACAUD avatar Feb 27 '23 14:02 GillesLACAUD

Would be great if anyone could pls upload an example code for recording and saving to SD! Fighting with this board for a while already...

massa007 avatar Apr 21 '23 21:04 massa007

Some time ago, this worked for me: https://randomnerdtutorials.com/esp32-microsd-card-arduino/

Instead of if(!SD.begin(5)){ you need #define CS 13 #define MOSI 15 #define MISO 2 #define SCK 14 SPIClass spi = SPIClass(HSPI); spi.begin(SCK, MISO, MOSI, CS); if(!SD.begin(CS, spi, 4000000)){

KlausMu avatar Apr 23 '23 06:04 KlausMu

Thanks a lot! I got the SD part working but I’m mainly struggling with utilizing the microphones.. I can play stuff from SD but how do I use the mics?

massa007 avatar Apr 23 '23 06:04 massa007

Never tried it, but here you can find an example for using microphones: https://github.com/pschatzmann/arduino-audiokit

KlausMu avatar Apr 23 '23 06:04 KlausMu

That’s my missing part!! Awesome :) Thanks a lot!!

massa007 avatar Apr 23 '23 07:04 massa007

The AudioKit is just a HAL for the Audio Tools Library. You will find there much more and examples....

pschatzmann avatar Apr 23 '23 07:04 pschatzmann

There is a great discussion about this problem on @pschatzmann's website: https://www.pschatzmann.ch/home/2021/12/15/the-ai-thinker-audiokit-audio-input-bug/ here someone suggested moving 2 capacitors, I tried this and it worked perfectly! Thank you Phil!

Jerzeek avatar Mar 09 '24 17:03 Jerzeek