[ ]   [ ]   [ ]                        [ ]      [ ]   [ ]

Wordle - daily game - Proclivities - Oct 6, 2022 - 6:16am
 
Baseball, anyone? - Bill_J - Oct 6, 2022 - 6:05am
 
Radio Paradise NFL Pick'em Group - Coaxial - Oct 6, 2022 - 4:55am
 
New RP Website! (2022) - Coaxial - Oct 6, 2022 - 4:51am
 
Radio Paradise Comments - Coaxial - Oct 6, 2022 - 4:47am
 
What the hell OV? - miamizsun - Oct 6, 2022 - 4:29am
 
Cryptic Posts - Leave Them Guessing - buddy - Oct 5, 2022 - 9:35pm
 
Ukraine - VV - Oct 5, 2022 - 8:36pm
 
M.A.G.A. - Red_Dragon - Oct 5, 2022 - 7:45pm
 
Pernicious Pious Proclivities Particularized Prodigiously - Red_Dragon - Oct 5, 2022 - 6:05pm
 
Name My Band - Red_Dragon - Oct 5, 2022 - 5:54pm
 
Manbird's Episiotomy Stitch Licking Clinic - KEEP OUT - buddy - Oct 5, 2022 - 5:07pm
 
New is better - mrpixel - Oct 5, 2022 - 4:37pm
 
COVID-19 - R_P - Oct 5, 2022 - 3:39pm
 
260,000 Posts in one thread? - oldviolin - Oct 5, 2022 - 2:12pm
 
Bug Reports & Feature Requests - i3a - Oct 5, 2022 - 2:08pm
 
Science in the News - kcar - Oct 5, 2022 - 1:41pm
 
what the hell, miamizsun? - Manbird - Oct 5, 2022 - 12:57pm
 
Profit margin on swag? - Manbird - Oct 5, 2022 - 12:55pm
 
If not RP, what are you listening to right now? - Steely_D - Oct 5, 2022 - 12:35pm
 
Iran - miamizsun - Oct 5, 2022 - 11:42am
 
Live Music - oldviolin - Oct 5, 2022 - 11:13am
 
Rufus Wainwright & Kurt Vile - marko86 - Oct 5, 2022 - 11:09am
 
USA! USA! USA! - westslope - Oct 5, 2022 - 9:51am
 
The Obituary Page - eyke - Oct 5, 2022 - 9:38am
 
Dreams - Tales from your sleep - oldviolin - Oct 5, 2022 - 9:00am
 
The Burrito Chronicles - ScottFromWyoming - Oct 5, 2022 - 8:10am
 
I ain't got my taco! - ScottFromWyoming - Oct 5, 2022 - 7:55am
 
Mixtape Culture Club - miamizsun - Oct 5, 2022 - 6:54am
 
Museum Of Bad Album Covers - kurtster - Oct 5, 2022 - 6:28am
 
RightWingNutZ - Red_Dragon - Oct 4, 2022 - 4:58pm
 
China - miamizsun - Oct 4, 2022 - 2:05pm
 
Congrats from France - GeneP59 - Oct 4, 2022 - 12:23pm
 
Climate Change - R_P - Oct 4, 2022 - 10:30am
 
North Korea - miamizsun - Oct 4, 2022 - 10:21am
 
Photography Forum - Your Own Photos - Tim55 - Oct 4, 2022 - 9:28am
 
Today in History - Red_Dragon - Oct 4, 2022 - 6:17am
 
New App Changes. Can't Scroll Back On Comment Section of - jarro - Oct 4, 2022 - 4:53am
 
Nederland / The Netherlands - lucassentheo - Oct 4, 2022 - 12:31am
 
Propaganda - miamizsun - Oct 3, 2022 - 3:32pm
 
Evolution! - R_P - Oct 3, 2022 - 12:18pm
 
New Song Submissions system - rklein - Oct 3, 2022 - 10:45am
 
Lowest rated song you gave a 10 - rgio - Oct 3, 2022 - 7:29am
 
Pink Floyd Set? - Steely_D - Oct 3, 2022 - 7:25am
 
Cool concerts?? - Coaxial - Oct 3, 2022 - 5:13am
 
Russia - miamizsun - Oct 3, 2022 - 4:57am
 
Solar / Wind / Geothermal / Efficiency Energy - GeneP59 - Oct 2, 2022 - 8:07pm
 
Things You Thought Today - GeneP59 - Oct 2, 2022 - 7:52pm
 
HALF A WORLD - oldviolin - Oct 2, 2022 - 2:54pm
 
Can I use my ratings to create a playlist? - William - Oct 2, 2022 - 12:09pm
 
Poetry Forum - Antigone - Oct 2, 2022 - 5:31am
 
Counting with Pictures - ScottN - Oct 2, 2022 - 5:07am
 
Recommended documentaries - KurtfromLaQuinta - Oct 1, 2022 - 9:28pm
 
What the world needs now is .... - KurtfromLaQuinta - Oct 1, 2022 - 9:22pm
 
• • • The Once-a-Day • • •  - oldviolin - Oct 1, 2022 - 11:06am
 
What makes you smile? - kcar - Sep 30, 2022 - 7:05pm
 
Derplahoma! - Red_Dragon - Sep 30, 2022 - 2:07pm
 
Britain - R_P - Sep 30, 2022 - 1:07pm
 
Artificial Intelligence - miamizsun - Sep 30, 2022 - 4:52am
 
Favorite Quotes - sirdroseph - Sep 30, 2022 - 4:23am
 
Two questions. That's it. I promise. - GeneP59 - Sep 29, 2022 - 4:26pm
 
Guns - R_P - Sep 29, 2022 - 2:36pm
 
Vinyl Only Spin List - kurtster - Sep 29, 2022 - 8:06am
 
How's the weather? - Proclivities - Sep 29, 2022 - 7:10am
 
Prog Rockers Anonymous - ianm42 - Sep 29, 2022 - 2:03am
 
They're made out of meat. - oldviolin - Sep 28, 2022 - 8:08pm
 
What Makes You Laugh? - ScottFromWyoming - Sep 28, 2022 - 8:06pm
 
Republican Party - Red_Dragon - Sep 28, 2022 - 6:50pm
 
NASA & other news from space - Red_Dragon - Sep 28, 2022 - 4:27pm
 
First Porcupine Tree Concert in Toronto - the_jake - Sep 28, 2022 - 12:21pm
 
Florida Hurricane preparedness - pilgrim - Sep 28, 2022 - 10:23am
 
The Abortion Wars - Red_Dragon - Sep 28, 2022 - 10:11am
 
What's the first concert you ever went to? - Coaxial - Sep 28, 2022 - 5:03am
 
TEXAS - Red_Dragon - Sep 27, 2022 - 6:34pm
 
Display Album Art/Hide Slideshow - Joril - Sep 27, 2022 - 12:58am
 
Index » Internet/Computer » Streaming/Media » Live FLAC support in Sonos API
Post to this Topic
alistair.bill



Posted: Aug 30, 2022 - 8:08am

 jarro wrote:

"Each track in the cloud queue has all the standard metadata that is needed to fetch the audio for the track. This may include either a mediaUrl (the URL to the actual audio) or a MusicObjectId. If an item contains both of these objects, Sonos ignores the mediaUrl. This is because the MusicObjectId resolves to a URL using SMAPI."

If you just provide an url  it can avoid the smapi call.





Thanks - apologies for missing that part.

I've now solved my original problem after getting an email back from the Sonos developers. The players support FLAC streams framed in fragmented MP4 and sent via HLS. Once I provided a stream in that format (doable with the latest version of Liquidsoap) the player was happy.
jarro

jarro Avatar

Location: #guad
Gender: Male


Posted: Aug 18, 2022 - 2:54pm

 alistair.bill wrote:


Hello, thanks for the reply (and apologies for the follow-up, I know this is a bit off-topic!). The Sonos docs suggest that even when using Cloud Queue, SMAPI still needs to implement `getMediaURI`, the call I was surprised to see wasn't implemented - see item 11 under 'Cloud queue workflow' in https://developer.sonos.com/bu... and the diagram above.

"Each track in the cloud queue has all the standard metadata that is needed to fetch the audio for the track. This may include either a mediaUrl (the URL to the actual audio) or a MusicObjectId. If an item contains both of these objects, Sonos ignores the mediaUrl. This is because the MusicObjectId resolves to a URL using SMAPI."

If you just provide an url  it can avoid the smapi call.


alistair.bill



Posted: Aug 16, 2022 - 9:33am

 jarro wrote:

This is a bit fuzzy as implementation was quite awhile ago.   There is some overlap between smapi and cloud queue.   So you don't need to fully implement smapi for a service.  
If just for personal use,  it might be easier  to create your own web app and just work with the cloud queue.   
The docs and sample apps for that  seem to be more up to date.
https://developer.sonos.com/to...




Hello, thanks for the reply (and apologies for the follow-up, I know this is a bit off-topic!). The Sonos docs suggest that even when using Cloud Queue, SMAPI still needs to implement `getMediaURI`, the call I was surprised to see wasn't implemented - see item 11 under 'Cloud queue workflow' in https://developer.sonos.com/bu... and the diagram above.
jarro

jarro Avatar

Location: #guad
Gender: Male


Posted: Aug 16, 2022 - 8:12am

 alistair.bill wrote:

Hello,

I've got a project to feed the output of my vinyl record player into a Raspberry Pi and stream it across my local network so I can listen anywhere in the house, and I'm trying to get my Sonos system to accept a (lossless) live stream. Radio Paradise seems to be one of few services which achieves this.

I was having a poke around the Radio Paradise Sonos SOAP API with the help of Sonos' developer documentation, and noticed several API calls aren't implemented, including `getMediaURI` (which sounds crucial, if you believe the docs!). Sonos devices are also quite good at sending traffic over HTTPS, so unfortunately I can't sniff the traffic to figure it out on my own.

I wonder if anyone knows about the Sonos API, and if so - please could they provide some information about the API calls implemented to make FLAC streaming work? Thanks!


This is a bit fuzzy as implementation was quite awhile ago.   There is some overlap between smapi and cloud queue.   So you don't need to fully implement smapi for a service.  
If just for personal use,  it might be easier  to create your own web app and just work with the cloud queue.   
The docs and sample apps for that  seem to be more up to date.
https://developer.sonos.com/to...


thisbody

thisbody Avatar

Gender: Male


Posted: Aug 16, 2022 - 7:27am

 alistair.bill wrote:
Thanks for the reply. To clarify, I'm specifically interested in the Sonos Music API, which enables you to write your own music service (i.e. appear in the app as a music provider). This is extensively documented by Sonos here: https://developer.sonos.com/re... and seems to be only partially implemented by Radio Paradise (which prompted my question).

The library you linked wraps the Sonos Control API, which is what most people on GitHub and elsewhere are interested in. This allows you to send events to change volume, pause, play a stream etc., but not to add an entry to the app.

Ok. Thanks for the clarification. I'm sure you perused the Sonos community forum and all publicly available documentation.

Good luck with your endeavor! - And let us know when and how you succeed.

alistair.bill



Posted: Aug 16, 2022 - 1:49am

 thisbody wrote:

Not sure, how far you got digging around, but...
this link might provide some answers, along with a thorough web-search for the terms:
sonos api github (with the list of keywords potentially extended by the term flac after a serious first round of digging to learn and educate yourself on the topic).

*Cheers*



Thanks for the reply. To clarify, I'm specifically interested in the Sonos Music API, which enables you to write your own music service (i.e. appear in the app as a music provider). This is extensively documented by Sonos here: https://developer.sonos.com/re... and seems to be only partially implemented by Radio Paradise (which prompted my question).

The library you linked wraps the Sonos Control API, which is what most people on GitHub and elsewhere are interested in. This allows you to send events to change volume, pause, play a stream etc., but not to add an entry to the app.
thisbody

thisbody Avatar

Gender: Male


Posted: Aug 15, 2022 - 3:56pm

 alistair.bill wrote:

Hello,

I've got a project to feed the output of my vinyl record player into a Raspberry Pi and stream it across my local network so I can listen anywhere in the house, and I'm trying to get my Sonos system to accept a (lossless) live stream. Radio Paradise seems to be one of few services which achieves this.

I was having a poke around the Radio Paradise Sonos SOAP API with the help of Sonos' developer documentation, and noticed several API calls aren't implemented, including `getMediaURI` (which sounds crucial, if you believe the docs!). Sonos devices are also quite good at sending traffic over HTTPS, so unfortunately I can't sniff the traffic to figure it out on my own.

I wonder if anyone knows about the Sonos API, and if so - please could they provide some information about the API calls implemented to make FLAC streaming work? Thanks!


Not sure, how far you got digging around, but...
this link might provide some answers, along with a thorough web-search for the terms:
sonos api github (with the list of keywords potentially extended by the term flac after a serious first round of digging to learn and educate yourself on the topic).

*Cheers*

alistair.bill



Posted: Aug 15, 2022 - 2:05pm

Hello,

I've got a project to feed the output of my vinyl record player into a Raspberry Pi and stream it across my local network so I can listen anywhere in the house, and I'm trying to get my Sonos system to accept a (lossless) live stream. Radio Paradise seems to be one of few services which achieves this.

I was having a poke around the Radio Paradise Sonos SOAP API with the help of Sonos' developer documentation, and noticed several API calls aren't implemented, including `getMediaURI` (which sounds crucial, if you believe the docs!). Sonos devices are also quite good at sending traffic over HTTPS, so unfortunately I can't sniff the traffic to figure it out on my own.

I wonder if anyone knows about the Sonos API, and if so - please could they provide some information about the API calls implemented to make FLAC streaming work? Thanks!