Page 1 of 1

Spiffs Mp3 streaming to BT wrong playback speed

Posted: Thu Oct 08, 2020 11:10 am
by fredoug
Hello,
My first post on the esp32 forum :)
I'm working on streaming an MP3 audio ( spiffs_stream ) via bluetooth.
https://github.com/dougofredo/esp-adf-s ... _example.c
My code is a mix of 2 working examples in ESP-ADF ( pipeline_bt_source and pipeline_spiffs_mp3, that work fine when I ran them separately ).
My issue is that the sound file is played at a much faster speed in the bluetooth headset ( I think it's played at 2x speed! ). I don't understand how this is happening.
My setup is the following:
ESP32-Wrover
ESP-IDF version within ESP-ADF ( v3.3.2-107 )
Codec used ES8374
MP3 file: Mono 48 Khz
Thanks for your help!

Re: Spiffs Mp3 streaming to BT wrong playback speed

Posted: Fri Oct 09, 2020 12:08 pm
by jason.mao
Hi fredoug,

What about the sample rate and channels of
/spiffs/eng-93.mp3
?