Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How to use Sonos as wireless speakers for a Mac...

Here's a solution I just tried, and found that actually works! I've listed it as an *idea* because I would assume that SONOS might be able to offer a similar solution, unless (of course) licensing issues prevent them from doing it without permission from Apple. (Don't know... just speculating here).


This software solution provides an "airplay" driver on your mac that points to one of your Sonos players. Once it's installed, you use it with three simple steps.


Step 1) Open a terminal prompt (command prompt) and type airsonos. This starts the driver.

Don't close the session. It's OK to minimize the window.


Step 2) You use the Mac's "System Preferences..." , "Sound" to select the sonos as the output for your sound. Now, play some music on your mac, and turn up the volume, and the sound comes out of your Sonos" instead of your Mac. No wires. No hassle.


Step 3) Grin from ear to ear as any and all Mac sound streams wirelessly to your Sonos!



HERE'S HOW TO INSTALL THE DRIVERS,

PLUS LINKS TO WHERE I FOUND THE SOLUTION.

(I can't take credit for creating it, but I'm so happy to have found it... thank you Stephen! ... that I'm willing to share it far and wide!)


airsonos a Node.js application, and it's free!

You need to install the right version of Node.js (it's an older version),

and then you need to use npm (the Node package manager) which will download, compile and i

install airsonos. It's all pretty easy. You don't need more than basic computer skills to get it done.

-----------------------------

I found info here:

https://medium.com/@stephencwan/hacking-airplay-into-sonos-93a41a1fcfbb


and installation instructions here:

https://github.com/stephen/airsonos


IMPORTANT NOTE: It states it requires Node.js version v0.10.33 or greater.

I tried it with the current release of Node.js (v0.12.xx) and it wouldn't compile.

When I downloaded and installed Node.js version v0.10.33, and then tried to install it everything worked!


Here are the brief instructions:


Step 1)

Download Node.js v0.10.33 from here:

http://blog.nodejs.org/2014/10/23/node-v0-10-33-stable/


or use google to find it.


Step 2) Run the install (node-v0.10.33.pkg) to install Node.js


Step 3) Open a terminal prompt, and at the command line type:

sudo npm install airsonos -g


This will cause the npm (the node package manager) to download, compile and install airsonos and the packages it requires. It took about 5 or 10 minutes to complete.


Now it's installed!


To use it, it's two simple steps:


*** First) open a terminal and at the command prompt type:

airsonos

./

You should see output similar to:


MacBook-Pro:~user$ airsonos

Searching for Sonos devices on network...

Setting up AirSonos for Basement {192.168.0.10:1400}


Setting up AirSonos for Office {192.168.0.20:1400}


On my machine these messages were repeated several times.

LEAVE THE TERMINAL WINDOW. Don't close it, or kill the airsonos app.

It *IS* OK to minimize the window.


*** Second)

Go to system preferences... (under the apple menu), select "Sound" and for "Output" create one of the airsonos outputs. For instance, in my situation I selected .

"Office (AirSonos) AirPlay".


Now play some music on your mac, turn up the volume on your mac, and listen the music come out through Sonos!


This is awesome. You can now send steaming services to Sonos, you can output your itunes music to sonos. Want to hear a playlist of songs from youtube... done, amazon music prime... it now works!, etc, etc.


Many, many thanks to Stephen for creating this and sharing the info.


I didn't create any of this, I'm just sharing the information since I've wanted this feature for so long, I'm happy to finally find a quality solution that works!


-Phil

Posted on Feb 28, 2015 8:48 AM

Reply
Question marked as Best reply

Posted on Feb 13, 2017 8:06 AM

Hi,


Thanks for pulling this all together! The one other step I needed to do to make this work was to download Xcode (its a huge 2gb file) from the app store and install it before step 3. Reallly happy to be using my Play:1 as a speaker instead of the built in monitor speakers.

64 replies

Dec 12, 2015 5:53 PM in response to danum

If you have El Capitan, you may have errors (see link below). During the installation process, do the following:

  • After you have installed Node JS v0.10.33, open the Terminal.
  • Type xcode-select --install and hit enter.
  • Then, resume the setup process (e.g., Enter in sudo npm install airsonos -g).

http://tips.tutorialhorizon.com/2015/10/01/xcrun-error-invalid-active-developer- path-library-developer-commandline-tools-missing-xcrun/

Dec 18, 2015 11:49 AM in response to pjbrownva

I am running OSX 10.11.1 and managed to get it running on the original instructions. Ok I did delete the folder and re-install it but it works. - Its AWESOME listening to my SONOS set up. However, my only issue is that there is a 2 second delay which means I can't watch a film - Is there any fix to this or is it just because the video streams to the screen quicker than the audio streaming to an external device?

Dec 21, 2015 6:48 PM in response to pjbrownva

I successfully installed Node v0.10.33, but am having trouble with the airsonos command. I am running on OS 10.6. I also tried the command: sudo npm install -g --unsafe-perm airsonos. Below is the error message. Please let me know if you have any advise!


Macintosh-60:~ user$ airsonos

-bash: airsonos: command not found

Macintosh-60:~ user$ sudo npm install -g --unsafe-perm airsonos

Password:

npm WARN `git config --get remote.origin.url` returned wrong result (git://github.com/stephen/node-sonos.git) undefined

npm WARN `git config --get remote.origin.url` returned wrong result (git://github.com/stephen/node-sonos.git) undefined

npm ERR! git clone git://github.com/stephen/node-sonos.git undefined

npm ERR! git clone git://github.com/stephen/node-sonos.git undefined

npm ERR! not found: git

npm ERR!

npm ERR! Failed using git.

npm ERR! This is most likely not a problem with npm itself.

npm ERR! Please check if you have git installed and in your PATH.


npm ERR! System Darwin 10.8.0

npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "--unsafe-perm" "airsonos"

npm ERR! cwd /Users/derrickmetzler

npm ERR! node -v v0.10.33

npm ERR! npm -v 1.4.28

npm ERR! code ENOGIT

npm ERR! not ok code 0

Feb 21, 2016 9:01 AM in response to pjbrownva

Airplay with Sonos is possible! Currently with the Apple TV 3rd Gen being around $79.99 in price you can achieve AirPlay on your Sonos device with a Line-in and a Digital Audio Converter (DAC). I went this route because I didn't want to use software that could be overwritten with an update to either the Sonos system or the Mac/iOS systems. Here's how I achieve Airplay on Sonos in a few steps:



Purchase Apple TV 3rd Gen

Purchase Sonos Play:5 - http://goo.gl/whaNSr

Purchase Optical & HDMI Cables - http://goo.gl/G3odal

Purchase DAC - http://goo.gl/cNp5ES

Purchase 3.5mm Headphone Cable - http://goo.gl/jRFu7q

OR

Purchase HDMI converter and RCA to 3.5mm Cable - http://goo.gl/LwF8ve

with this http://goo.gl/uzut0t

or this if you already own RCA cables http://goo.gl/uYIBXQ



1. Connect your Sonos system to power and set up on your wifi network.

2. Connect your Apple TV to your Television and go through the process of connecting to the wifi network or connect with ethernet to your bridge, give your Apple TV a new name, I went with "SONOS", setup home sharing, set sleep mode to 15mins or to own your preference, remove any unwanted apps from the home screen, not that you'll ever see them and then disconnect the Apple TV from your television.

3. Connect Optical Cable to the back of the Apple TV and connect the optical cable to the DAC. Connect the 3.5mm cable to the DAC as well. Note: You can also use the HDMI to RCA/3.5mm Converter listed above instead of an Optical DAC converter.

4. Connect the 3.5mm cable to the Line-In port of your Sonos speaker.

5. Connect the Apple TV, Sonos speaker and DAC to power (if required) and send your music to your "SONOS" Apple TV device.



If you don't hear music, make sure your sonos speaker is set to Line-In from the music source menu from within the Sonos app. There may be a slight delay in sound from devices.



I've also got the line-in on a splitter and have my record player hooked up as well.



Enjoy!



Image of Apple TV, DAC and Sonos Play:5 speaker.

User uploaded file

Mar 14, 2016 3:10 AM in response to EsbenP

I have just been considering purchasing as Sonos 1 to use as a speaker for my Mac however after reading this thread it would appear this is going to be a bit of a challenge. Sounds like downloading and installing SonoAir will get me what I need although a 2 second delay when watching a you tube clip or video sounds unacceptable really. I am not bothered about games but music and video are a must. Has anyone else had any experience and managed to remove the delay or is this the best we can get?

How to use Sonos as wireless speakers for a Mac...

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.