surveyscas.blogg.se

Sonos add upnp player
Sonos add upnp player





sonos add upnp player

The Commenter Formerly Known As Ren on ArcaOS: OS/2 Updated For The Modern World.The Commenter Formerly Known As Ren on Decoding 433 MHz Signals With Arduino & Raspberry Pi.Mark Topham on A Call For Better Shower Temperature Controls.Mojo on Liquid Damaged MacBook Saved With A Keen Eye.MXenes Make Faraday Cages You Can Turn On And Off 12 Comments Posted in Software Hacks Tagged audio, flask, mp4, python, pytube, sonos, streaming, web radio player, youtube Post navigation Here’s a neat hack we covered last year, adding Sonos support to an old school speaker, and a nice teardown of a IKEA Sonos-compatible unit, which uses some neat design hacks.įeatured image by Charles Deluvio on Unsplash. Sonos doesn’t have the best reputation, let’s say, but you can’t deny that there’s some pretty slick tech going on inside. Pytube enabled to extract the AAC audio ‘atoms’ from the MP4 container, and then wrap them up with ADTS and forward them onto the Sonos device, which happily thinks it’s just a plain old MP3 radio stream, even if it isn’t. By building a reverse web-proxy application, in python using Flask, it was straightforward enough to grab the YouTube video ID from the web radio request, forward a request to YouTube using a modified version of pytube tweaked to not download the video, but stream it. Sonos won’t handle that from a web radio source, so what was there to do, but make a custom converter?Īfter a little digging, it was determined that Sonos supports AAC encoding (which is how MP4 encodes audio) but needs it wrapped in an ADTS (Audio Data Transport Stream ) container. The Sonos firmware supports a variety of audio codecs, besides MP3, but YouTube uses the MP4 format. The smart speaker can be configured to add various streaming audio sources, and allows you add custom sources for those. So let’s dig in to how chose to approach this. What? No MP4 support for web radio? Curses!

sonos add upnp player

decided that the way forward was to dig into how the Sonos firmware accesses ‘web radio’ sources, and see if that could be leveraged to stream audio from YouTube via some kind of on-the-fly stream conversion process. YouTube Music will work, but being a subscription product there is a monthly fee, which sucks since you can listen to plenty of content on YouTube for free. Owns a Sonos smart speaker, and was lamenting the devices inability (or plain unwillingness) to stream music from online sources without using a subscription service.







Sonos add upnp player