Saturday, September 3, 2011

Stream any Audio to your AirPortExpress (AirPlay)

Using an AirPortExpress to connect speakers is a convient way to avoid wires or connect several Macs to the same speakers. By default you can only stream music via iTunes which is not a satisfying situation.
My goal was to stream all sounds no matter what source and the solution was simpler than i thought.


What you will need:

Soundflower (Free)


AirFoil (25$)

A VideoPlayer which allows you to modify the audio sync, like VLC.

Download Soundflower (if you are using Snow Leopard just install it) extract it, open a terminal and run


$ cd /sound_flower_lion_1.5.3/Tools
$ ./build.rb --dep


Restart your mac, open "System Settings" "Audio" and change the default Output to "Soundflower (2ch)".
Open AirPlay and open the Preferences and set the "Play Local Audio Through" to "Soundflower (2ch)".
In the AirPlay main window select "Soundflower (2ch)" and activate your AirPortExpress.
All sound output will now be streamed to your AirPortExpress.

Since the AirPlay protokoll has a 2seconds delay by design you need to change the audio synch if you wanna play videos and stream the sound to a wireless speaker.

In VLC for example you can modify the audio synch with the keys "f" and "g". Set a delay of -2000ms and video and audio will be in sync.

24 comments:

Ting Kubby said...

awesome, i've always wondered how i could do this.

GADAFINY said...

gotta try this

Hento the loony repairman :D said...

woa this is freakign awesome, thanks again man, i got my mac freinds asking me if it was possible to stream video and we where kinda limited to the cabling solutions, this is gona rock :D

paulz said...

Awesome :)

Talerfuchs said...

I, too, do not like the orignal iTunes. So i prefer alternative programs like you mentioned. Thanks for the manual.

Fang said...

Soundsflower is a pretty cool guy. Works very well with lots of different things.

Fresh Garden said...

Nice post! Awesome!

i.Mo said...

nice

McDwarf said...

Excellent post thx for sharing this info...needed for my sound system

Jessica Thompson said...

Haha, that's great!

Dresnia said...

Stop posting this know-hows already.. The only reason I don't have a mac yet is cause I wouldn't know how to do all the little things.

Few more posts and I'm betraying my origin.

bloghostingreview said...

Thanks for the encouraging words JSallette! I am remaining optimistic as I re-connect with the many in my network. And I am glad you enjoy the blog too!
Would you pursue more fun stuff, like stand up? Well, wishing you the best. I know I’ve been “here” before! Thinking of you and hope to catch up more soon!
dedicated hosting reviews

T Papar said...

very useful info, thanks!

A1C Dood said...

airplay is great!

Self Improvemen2 said...

I'm all for wireless, nice post.

Bones said...

looks useful.

Bremsy said...

Finally I keep getting movies out of sync and it's annoying as hell!

thanks for the tip

Michael said...

My sister owns a Mac, she finds this blog very useful.

+followed

Icepax_Nmir said...

This looks very useful for my future projects... Thank you for sharing!

Publius said...

very useful info, thanks! - Don Nino

Rifle said...

Tried that, all works fine. Thanks for another cool guide:)

Deso said...

Awesome program.

The Sorrow said...

I just saw the BB tumbnail!

This Guy said...

I've heard about it, but yet to try it.