Stuttering audio transmission and bad dynamic range #394
-
I have used the A2DP example from Espressif and also yours. Both produce the same errors. Source is PC (DELL XPS 9710): The audio stutters since the beginning of the stream and the stream isn't continous. The volume behaves like expected. Configuration: `
}; What could cause this issue? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I don't have any issues using OS/X and Linux. So I guess you have to investigate your issue on your OS side. For the volume it's not clear what mechanism is used. Some phones just send the audio with decreased volume and only if it is supported my A2DP is handling the volume. So you can play with the different Volume control implementations or provide one yourself. See the Wiki. But first activate the logging and verify that if you change the volume on the phone you get the corresponding messages I assume that you use the latest ESP32 Arduino version which is 2.0.7. |
Beta Was this translation helpful? Give feedback.
I don't have any issues using OS/X and Linux. So I guess you have to investigate your issue on your OS side.
You can try to increase the I2S buffer e.g dma_buf_count 20 and dma_buf_len 512 and hope that this helps.
For the volume it's not clear what mechanism is used. Some phones just send the audio with decreased volume and only if it is supported my A2DP is handling the volume. So you can play with the different Volume control implementations or provide one yourself. See the Wiki.
But first activate the logging and verify that if you change the volume on the phone you get the corresponding messages
I assume that you use the latest ESP32 Arduino version which is 2.0.7.
I suggest you chec…