Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By RichardS
#1026 Got a sneaking suspicion this is even harder, assuming you want 44.1Khz 16 bit stereo audio?

The ESP8266 could not decode MP3 anyway so an external decoder is required, and then you could have a much lower bitrate, and it would probably work.... 0.128Mbps instread of 44100x2x16 = 1.4Mbps

Buffers would be real small in the ESP8266, so tricky almost anyway you slice it.

Richard.
User avatar
By johnyradio
#1282
admin wrote:Got a sneaking suspicion this is even harder, assuming you want 44.1Khz 16 bit stereo audio?


noob question: why? Assume NO mp3 decoding. Just streaming the numbers. ie, forget it's audio.

could not the 8266 connect to a webserver that is streaming audio-data, and then output that data (without any decoding) through the I2S interface in real time?

thx
User avatar
By jonsmirl
#1292
johnyradio wrote:
admin wrote:Got a sneaking suspicion this is even harder, assuming you want 44.1Khz 16 bit stereo audio?


noob question: why? Assume NO mp3 decoding. Just streaming the numbers. ie, forget it's audio.

could not the 8266 connect to a webserver that is streaming audio-data, and then output that data (without any decoding) through the I2S interface in real time?

thx


You might be able to get this to work. But to synchronize these systems you are going to need a semi-accurate RTC to track clock drift and enable you to add/delete samples to stay in sync. Add/delete samples requires a resampler running on the ESP8266. Might fit but it needs significant CPU horsepower. For a cheap system you can just delete one or duplicate one randomly but that will be audible some of the time; especially if you need correct by multiple samples.

If you're trying to build one of those LED bulbs with the built in speaker this might make sense. Those have pretty much failed in the market place. Lots of PR but they don't sell. Probably because they sound like a muted 2in speaker which is what they are.

For anything else, spend the extra $3 for the RT5350 system. RT5350 can fetch the music, decode it, resample it, etc... All under Linux which is a far easier environment to work with. Much of the needed software is already written and all you need to do is install it.