I am thinking of doing a project with my Raspberry Pi. I am going to put the Raspberry Pi near my front door and attach a speaker to its audio output. Then I will go to my Mac and say something into the microphone. I was wondering if there is any way to send this live microphone audio to the Raspberry Pi and output the audio.
I think this is doable you just have to stream the captured audio from your Macbook to the Pi, to do that use arecord and aplay. Using these tools you can stream the audio across a network, so assuming the Pi and Mac are on the same local network this could be quite quick to implement...
The following article is based around using the Pi as a spy tool, but imagine it the other way around, using the Mac as the mic and the Pi as the output - its the same principle and it uses this command to send the audio along the network which looks kinda scary at first but is just piping audio through ssh:
arecord -D plughw:1,0 -f dat | ssh -C user@rpiIPaddress aplay -f dat
See this great post for more...
You can make your Pi a BT audio receiver and connect your Mac and Pi together and run a program to real time listen to your microphone. Have the Mac set the audio out to the BT Pi and you should be good. Resources for this can be found
The simplest way to do this would be to utilise Apple's Airplay technology so that remote audio devices are accessible from most OSX and iOS audio apps. The best way to do this is to install and run shairport-sync on the Pi - Which turns the Pi into a network speaker you can select via Airplay on a OSX or iOS device. You'll have to build it from source on Raspbian, though there are apparently binary packages on ArchLinux for the Pi. There is also an older version of shairport (
apt-get install libshairport1) which apparently works but has some issues.