Ai-Thinker-Open / ESP32-A1S-AudioKit

Ai-Thinker AudioKit Board SDK - 安信可 esp32-a1s 音频模组开发板
Other
132 stars 62 forks source link

Record and playback without Mic on ES8388 #31

Open gerthalberg opened 2 years ago

gerthalberg commented 2 years ago

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?

afaber999 commented 2 years ago

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)

gerthalberg commented 2 years ago

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

xuhongv commented 2 years ago

did you solve it ?

gerthalberg commented 2 years ago

No - Haven't had the time yet.

xuhongv commented 2 years ago

we update the readme document.

pschatzmann commented 2 years ago

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/

GillesLACAUD commented 2 years ago

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.

TakesTheBiscuit commented 1 year ago

+1

johermohit commented 1 year ago

did anyone solved it yet?

GillesLACAUD commented 1 year ago

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 .

massa007 commented 1 year ago

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...

KlausMu commented 1 year ago

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)){

massa007 commented 1 year ago

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?

KlausMu commented 1 year ago

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

massa007 commented 1 year ago

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

pschatzmann commented 1 year ago

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

Jerzeek commented 5 months ago

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!