ESP32-A2DP icon indicating copy to clipboard operation
ESP32-A2DP copied to clipboard

Audio constantly cutting out

Open Legolor opened this issue 1 year ago • 1 comments

Problem Description

When I play audio it is extremely choppy. I have tried playing from an iphone and from windows with the same results.

The setup and wiring works and sounds correct when playing directly from an SD card (ESP32-audioI2S library.)

Is there anything that I can try to improve the Bluetooth connection? Is there a specific esp32 board version that is recommended?

Device Description

Basic ESP32 Dev Module MAX98357 I2S Audio Amplifier Module

Sketch

Basic example sketch

Other Steps to Reproduce

No response

Provide your Version of the EP32 Arduino Core (or the IDF Version)

Espressif 32 (6.2.0)

I have checked existing issues, discussions and online documentation

  • [X] I confirm I have checked existing issues, discussions and online documentation

Legolor avatar Oct 19 '24 04:10 Legolor

Isn't this just a duplicate of this issue ?

The only thing that you could try is to play around with the A2DP_I2S_MAX_WRITE_SIZE is config.h How would you be using IDF 6.2.0 when the latest version is only 5.3 ?

You could also try to use the Arduino API of I2S instead my AudioTools to rule out that the issue is in my I2SStream.

pschatzmann avatar Oct 19 '24 06:10 pschatzmann

I didn't seem like an exact duplicate. I have the exact same issue playing from IOS, a windows computer, and Android. My audio output was also choppier.

How would you be using IDF 6.2.0 when the latest version is only 5.3 ?

I misunderstood, I am using platform-espressif32 version 6.2.0 which corresponds to ESP-IDF - v5.0.1 & Arduino - v2.0.8

You could also try to use the Arduino API of I2S instead my AudioTools to rule out that the issue is in my I2SStream.

Same issue.

Changing the data pin to 19 solved the issue! It now plays perfectly :) For reference I had the same issue with both the MAX98357A and the PCM5102, different speakers, and different power supplies so I believe the issue was with my esp32.

Legolor avatar Oct 26 '24 22:10 Legolor