Skip to main content

I revised things recently when my old computer died, which we used as a local server, including a Music folder that we accessed via SONOS. When we got a new computer, we canned the server idea and placed all our files, including our music folder, onto Microsoft OneDrive. Is it possible to stream from OneDrive? What about some other online repository? Or must it be local?

 

Recently ran into this myself and put together a small app to connect Sonos to OneDrive directly.

Take a look at https://michaeldick.me/sonos-onedrive/

Cheers


I contacted MiDi and he very kindly released an app update.  This now works with FLAC  :)


Sonos and their partners have made it difficult, if not virtually impossible, for those of us with large music collections to play via Sonos.  As a note, many of us were big Sonos users and supporters before all the streaming services were available.  I have Sonos in two homes and two office and I would like to share my music library, which I have uploaded to One Drive, between them.

I tried Google Play but the sorting of music sucks.    I have so much music that YouTube music, which is the replacement for Google Play, only shows artists whose names start with A and B.

I have been a Sonos user for 15+ years.  If I didn’t have such a large investment in Sonos speakers and amps I would replace my 4 systems.


Got Michael Dick’s solution working. One Drive is huge and it’s ridiculous Sonos does not support it natively. Silly hoops and hurdles nonetheless super pleased Michael made a solution. I’m going to send him a few bucks. 

Its up to Microsoft to do that, not Sonos, and they turned this off when they killed Groove, their music service. No music service, no legal rights to stream.


MiDi’s app works very well.  I can access all my music but it can be cumbersome to wade into all the folders to get to a song one at a time.  Haven’t found how to access a playlist.

Has anyone been able to link directly to OneDrive to access their iTunes library to use as Sonos’ “Music Library”?  It updates if I leave my PC on all the time as the path to OneDrive goes through the PC. But I want to be able to turn the PC off and have Sonos get the update for the Music Library directly from OneDrive.  Accessing a “shared music folder” under system settings appears to require a path that includes the “Computer” the library is shared from. 

Now that MiDi’s app gets us access to OneDrive, is there a “Path” that will link directly to OneDrive in the folder where my iTunes library resides? 

Thanks much for any help on this.  JJ


Microsoft stopped the ability to stream music from your one drive when they dropped Groove and move moved to Spotify as a partner. It was a real shame as it seemed a great solution. I presume it was part of the deal with Spotify for them to remove the ability to stream users own music. 
 

Google did much the same thing. I am just hoping that Sonos never removes the Local music service as I’m old school and still buy CDs as i like to own the music I’ve bought. 


Got it. I’ll blame Microsoft then. 🙂 Thank you. It’s ridiculous that the powers that be make it difficult to play your own music that you’ve already paid for. Playing a song on Sonos from your One Drive should be a simple and normal thing they’d want to accommodate considering I’m paying them a monthly free and I’m assuming they’re prefer I keep doing that. 


Got it. I’ll blame Microsoft then. 🙂 Thank you. It’s ridiculous that the powers that be make it difficult to play your own music that you’ve already paid for. Playing a song on Sonos from your One Drive should be a simple and normal thing they’d want to accommodate considering I’m paying them a monthly free and I’m assuming they’re prefer I keep doing that. 

You would think it is simple, but it is very much the opposite. Streaming music, from OneDrive or anywhere else, is a legal nightmare. Technically it i easy enough, and you have found someone who has done that for you. However it is technically against the OneDrive Terms of Service and likely contradicts copyright law in your country.


The issue is not technical: the issue is legal. if you stream music over the internet then you had better have all your lawyers lined up. I didn’t work on the Groove integration at Microsoft but I knew several who were, and I heard some of the horror stories. A company the size of Sonos wisely stays away from the licensing and legal issues of serving music over the internet.


Maybe the Sonos developers could see how the Cloudbeats app for IOS does it. If a tiny outfit like Cloudbeats can get it working pretty well, Sonos can. They might have to do a one-off, but for a major cloud service like OneDrive, it would be worth it.


You mean it isn’t ‘just a few lines of code’?

 

;)

The code is the easy bit :-)


There is a standard API called SMAPI, and each service has their own implementation (but Sonos only have to use one API, which was not the case back in the early days but quickly became impractical).

The API is documented at https://developer.sonos.com/reference/sonos-music-api/

 


It seems you have to grant access from the OneDrive for Sonos App to your OneDrive, I assume that allows read access for all files on your OneDrive, not just music files?


So Google Music Free (max 50.000 songs) could be an option....


You mean it isn’t ‘just a few lines of code’?

 

;)


Got Michael Dick’s solution working. One Drive is huge and it’s ridiculous Sonos does not support it natively. Silly hoops and hurdles nonetheless super pleased Michael made a solution. I’m going to send him a few bucks. 


The only “cloud” services Sonos supports are those already in the Sonos “services” tab, and I don’t believe OneDrive is there. In terms of NAS style support, it is local files. 


Midi s answer did not wrk for me. It took ages to type it all in correctly then I pressed enter and th enter et came back with the word ERROR. Really peeved as I can’t play my music library ,only amazons 


This is awesome massive Kudos to Michael Dick - OneDrive for Sonos (michaeldick.me)


Michael Dick’s solution worked for me, legend, and he’s super responsive.


A really smart guy named Michael Dick developed a tool that let’s you connect OneDrive to Sonos.  I can’t seem to find it right now.

 

It worked bit when I tried it I lost the connection when my computer restarted.  I’ll have to try again.

 

See https://michaeldick.me/

 

 


Google did much the same thing. I am just hoping that Sonos never removes the Local music service as I’m old school and still buy CDs as i like to own the music I’ve bought. 

Me too. I like to own the music, plus I think half of my CD’s have music that you cannot possibly find anywhere else. I mean: I bought a CD in Turkey with Turkish music from the 70’s as a souvenir of a great vacation. Try and find that somewhere!!

So it is either my Music Library on NAS (Synology working well, so far, much better than Buffalo) or -the ideal scenario- my music folder on OneDrive, so that I do not have to worry about backups, and the inevitable mechanical failures of the Synology drive etc. etc.

What is Sonos waiting for?


@MiDi’s solution works but I lose it.  Not sure if its when my computer sleeps.


Recently ran into this myself and put together a small app to connect Sonos to OneDrive directly.

Take a look at https://michaeldick.me/sonos-onedrive/

Cheers

This was, in a word, money.  Thanks for taking the time to code this...


Microsoft stopped the ability to stream music from your one drive when they dropped Groove and move moved to Spotify as a partner. It was a real shame as it seemed a great solution. I presume it was part of the deal with Spotify for them to remove the ability to stream users own music.

The Spotify deal was to sweeten the deal, it did not drive the decision to cut Groove. The deletion of Groove was indeed a bummer, but it just wasn’t financially viable, especially given the differing laws regarding streaming in different countries. Technically it was solid, produced by a smart team in Paris.