My ESP32S3 + PCM5102A DAC Media player doen't work

Then You probably have 8mb Psram on your board. If setting in Psram section is ok then in log you’ll have psram: yes and how much of Mb you have onboard

quad mode for psram will not work with the n16r8 it needs to be octal.

I have just posted a link to this on the discord channel, hopefully it will be investigated.

I accidently made it work today! guess what, the key is:

network:
  enable_high_performance: false

I actually read this paragraph on Speaker Audio Media Player page many times.

Network Optimizations

The speaker media player automatically enables high-performance networking to optimize audio streaming. This configures both WiFi and TCP/IP settings for better throughput and lower latency. The optimization level is PSRAM-aware:

  • With PSRAM guaranteed (Psram configured with ignore_not_found: false): Aggressive settings with 512KB TCP windows and 512 WiFi RX buffers
  • Without PSRAM guaranteed: Conservative optimized settings with 65KB TCP windows and 64 WiFi buffers

If you experience out-of-memory issues, you can disable these optimizations by setting enable_high_performance: false in the Network component configuration.

I just never thought about setting it to false as I thought I have 8M PSRAM. Now both mp3 and flac format work like charm, also from Music Assistant.

5 Likes

Great you have got it working. Unfortunately it did not work for the start up stuttering on my esp32 A1S.

Lets hope it helps a few others out.

if you have separate mute pin, maybe then you can manually later unmute sound when playing. Delay a few miliseconds, let sounds out after the stutter.

After I come back from vacation, I will try again some other combinations, especially sendspin source.

network:
  enable_high_performance: false

Also fixed my issues. I’m so confused. Seem’s couter intuitive.
No more media source stop/start. I wonder if the CPU is overloaded. I have a OLED screen and a Sendspin client, that’s it. I have everything recommended, ESP32-S3 with 8 MB of PS-RAM.

Also the Kalman Error dropped to bellow 300 from previously 2000 or even 4000.

Now the music feel’s very much synced. Wasn’t the case before.

1 Like

That would be my next project. ESP32-S3 + media player + a TFT screen + PN532 tag reader.
Will see if ESP32-S3 can handle all of them.

Hi! Im with the same combo as you.
Can you share the last version of your code and wiring?
The real is that i want to use as notifications speaker but it’s dont work :cold_sweat:
Thanks!

I am currently in vacation. I want to try some other codes when I am back home.
I will for sure after everything is ready post a full note of it. :slight_smile:
Last status I used the example code on the page of Speaker Media Player

1 Like

Hi, I posted a new topic here to share the whole project. If you still have interest, you can have a look.

1 Like

Thanks a lot for the step-by-step! It was very enlightening.
What was my problem? The XMT jumper was mislabeled.
I solved it by not using the jumper and powering it directly with 3.3V.

ha, yes, the silk screen is not trustable on some cheaper boards, could be lot of mistakes. My take away was always measure it with multimeter to trace the line on board before soldering.

1 Like