schreibfaul1 / ESP32-audioI2S

Play mp3 files from SD via I2S
GNU General Public License v3.0
1.07k stars 283 forks source link

ESP32-S3 and PCM5102 not working #802

Open bncdemo opened 1 month ago

bncdemo commented 1 month ago

I am running the example on ESP32-S3-Zero with audio.connecttohost(...) The code run without visible exception or error, but simply there is no sound. What could be the problem? 🤔

FatherMarco1971 commented 1 month ago

You give very ppoor informations anyway PCM5102 can be tricky.. I suggest that you try with FLT:Low, DEMP: Low, XSMT: High, FMT: Low

bncdemo commented 1 month ago

The extra pins needed for the PCM5102: FMT: GND, XMT: 3V https://github.com/pschatzmann/ESP32-A2DP/wiki/External-DAC#24-bit-pcm5102-pcm5102a-stereo-dac-digital-to-analog-converter-pll-voice-module-phat With this everything is working as expected.

Now I got another problem right away: every ~10 seconds the sound stop (buffering) and continue after 2-3 sec 😔

schreibfaul1 commented 1 month ago

The board is absolutely suitable. Built-in 512KB of SRAM and 384KB ROM, onboard 4MB Flash memory and 2MB OCTAL PSRAM. In your development environment, the settings should be something like this: PSRAM: OPI Partition: Huge App CPU Frequency 240MHz

For local files (from the SD card) there is getAudioFileDuration()' and getAudioCurrentTime() which you would then have to call periodically

bncdemo commented 1 month ago

I am using audio.connecttohost.

Is there a buffering settings somewhere, what can cause a 10 seconds play, 2-3 secs cut (pre-buffering?) repeated cycle?

FatherMarco1971 commented 1 month ago

Aare you Shure connection are right? Have you tried o follow my suggestion?

bncdemo commented 1 month ago

Aare you Shure connection are right? Have you tried o follow my suggestion?

Yes, same, except DEMP not set. Is there no way to query any audio related info when using connecttohost? Stream speed/name, elapsed playing time and similar infos? 🤔

github-actions[bot] commented 5 days ago

This issue is stale because it has been open for 30 days with no activity.