ESP32-A1S-AudioKit
ESP32-A1S-AudioKit copied to clipboard
Record and playback without Mic on ES8388
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?
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)
Good info, then maybe I can solder a new line in jack to those pads
did you solve it ?
No - Haven't had the time yet.
we update the readme document.
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/
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.
+1
did anyone solved it yet?
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 .
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...
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)){
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?
Never tried it, but here you can find an example for using microphones: https://github.com/pschatzmann/arduino-audiokit
That’s my missing part!! Awesome :) Thanks a lot!!
The AudioKit is just a HAL for the Audio Tools Library. You will find there much more and examples....
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!