Page 12 of 19

Re: ESP32 Webradio

Posted: Sat May 13, 2017 6:09 pm
by rudi ;-)
you do not need this do - you can play your music and A2DP talking do at same time ;-)
Oh no esp32 karaoke machine is born
yes -
now we need DSP from @Jakobsen and we can go on with "HarmonicVoices" and "Chores"
:mrgreen:

best wishes
rudi ;-)

Re: ESP32 Webradio

Posted: Sat May 13, 2017 6:19 pm
by BuddyCasino
oh my god what have I done

Re: ESP32 Webradio

Posted: Mon May 15, 2017 8:38 pm
by rudi ;-)
you did good things!

btw:
Technicolor's mp3 licensing program for certain mp3 related patents and software of Technicolor and Fraunhofer IIS has been terminated.
info

but i do not think, that IIS MP3 is (free) without payment - i think its only the MP3 Standard now free.
MP3 is an open ISO-MPEG-Standard but MP3 Software from IIS i think ( understand ) remains chargeable.

best wishes
rudi ;-)

Re: ESP32 Webradio

Posted: Fri May 19, 2017 10:38 am
by jimbob
Hi,

Great work on this. When I try and stream music from my Galaxy S4 phone after a while the sound slows down slightly then gets slightly choppy -- almost seems like a buffer is getting filled somewhere?

Does anyone else have this problem, is it related to the new audio_renderer refactoring?

Re: ESP32 Webradio

Posted: Fri May 19, 2017 10:47 am
by BuddyCasino
There is a 32k buffer, when that runs empty it might get choppy. You can see it on the serial console as "buffer fill". If it gets choppy and the buffer is full, I'd like to know - that shouldn't happen.

Re: ESP32 Webradio

Posted: Fri May 19, 2017 11:11 am
by jimbob
Hi,

No mention of that

On my S4 I get

Code: Select all

I (39515) BT_APP_CORE: bt_app_task_handler, sig 0x1, 0x1
I (39515) BT_AV: a2dp audio_state_cb state 2
E (42475) BT_AV: audio data pkt cnt 100
E (45425) BT_AV: audio data pkt cnt 200
E (48325) BT_AV: audio data pkt cnt 300
E (51285) BT_AV: audio data pkt cnt 400
E (54255) BT_AV: audio data pkt cnt 500
E (57315) BT_AV: audio data pkt cnt 600
E (60835) BT_AV: audio data pkt cnt 700
I decided to test on my old galaxy s2 and it sounds perfectly good.

On both devices I get a selection of

Code: Select all

E (92955) BT: xBtuQueue failed

E (92975) BT: xBtuQueue failed

E (92995) BT: xBtuQueue failed

E (93025) BT: xBtuQueue failed

E (93045) BT: xBtuQueue failed

E (93065) BT: xBtuQueue failed

E (93095) BT: xBtuQueue failed

E (93105) BT: xHciH4Queue failed

E (93115) BT: xBtuQueue failed

E (93125) BT: xHciH4Queue failed

but that doesn't always correspond with drop in audio quality.

Puzzling!

Re: ESP32 Webradio

Posted: Fri May 19, 2017 11:36 am
by BuddyCasino
Ah, you mean bluetooth. Didn't test that a lot, ESP-IDF does most of the work anyway so I'm not sure I can fix that. The "xBtuQueue Failed" is triggered in btu_task.c, which is Broadcom code. Its possible that we don't consume the PCM buffer fast enough, but I have no idea really.

Re: ESP32 Webradio

Posted: Tue May 23, 2017 4:42 am
by ethanc
Hi,
I'm trying to connect the web radio player to an mpd server to play locally streamed music. Are mpd http streams supported by the player? If not what are the options of streaming locally stored music to the ESP32.
Thanks,
Ethan

I'm getting this error

Host: 192.168.1.200

I (4826) http_client: ... socket send success
I (5656) audio_player: Buffer fill 49%, 15985 bytes
I (6716) audio_player: RAM left 177896
E (6716) audio_player: unknown mime type: 0
E (6716) audio_player: failed to start decoder task
I (13506) wifi: pm start, type:0

Re: ESP32 Webradio

Posted: Tue May 23, 2017 9:25 am
by BuddyCasino
Looks like no proper mime type header is returned by your server. For MP3, you should return audio/mpeg. Which software are you using?

Re: ESP32 Webradio

Posted: Sun Jun 11, 2017 4:17 pm
by rudi ;-)
you do not need this do - you can play your music and A2DP talking do at same time ;-)
Oh no esp32 karaoke machine is born
step 1 done :) WiFive :)