Open CaseyNolte22 opened 2 years ago
The newer ai thinker boards are having ES8388 as DAC chips. What board version do you have (printed on the front) and what ESP32-A2S Version do you have? Printed on the back (of esp32, under the printed antenna)
The version is "V2.2 A149" and the only text printed on the back is "2974". I'll try switching the config to ES8388 tonight.
Building fails with that config, is it because there is no ES8388 in these definitions?
// Config sink
#define ES8388 // INTERNAL, AC101, ES8018, ES8388, PCM5102
#define QUALITY 160 // 320, 160, 96
#define DEVICE_NAME "CSpot2"
#ifdef INTERNAL
#include <InternalAudioSink.h>
#endif
#ifdef AC101
#include <AC101AudioSink.h>
#endif
#ifdef ES8018
#include <ES9018AudioSink.h>
#endif
#ifdef PCM5102
#include <PCM5102AudioSink.h>
#endif
Can confirm - 2974 has ES8388 inside. You may need an older cspot version - i have the same promblems while compiling.
I apologize I'm not well versed enough on using git/github or contributing to projects to do a pull request, but I got the current cspot version to work with the ES8388 with a couple simple additions. It works decent, except you must turn the Spotify volume extremely low or else there is insane clipping. I'm not knowledgeable enough to find a fix for that.
It looks feelfreelinux deleted the ES8388 code necessary in .../targets/esp32/main/main.cpp in: 027a52fa7fc7491f638c7cde2c50dbd643a4fae5.
Here is the main.cpp I added to get it to work. Again sorry I can't do it the proper way. main.zip
i think @anabolyc solved the issue too in his PR #109 , so i won't make another PR out of your edit.
can you tell me if you used lineout or the headphone jack? Because i have no audio on lineout and wasn't able to test the headphone jack yesterday
Headphone jack, I did not test lineout, and don't have the right cables to test it.
Hey,
After spending the time getting this to compile and flash, I'm getting a "No AC101 detected" message in the serial monitor. (I also see "i2c driver not installed" but if my googling is correct this is a non-issue.)
I'm using this board which should have a AC101 according to your docs, I've spent awhile trying to confirm but I can not find the relevant documentation.
Does anyone have any guidance on a solution? Serial output below.