Hardware Reference
In-Depth Information
2. Open up a Terminal (located in /Applications/Utilities on the Mac).
3. We can start a monitoring loop first to ensure our microphone works as
intended with the following command:
$ sox -d -d
4.
Now, to send the audio from our microphone to the speakers on the Pi, use
the following command:
$ sox -d -t sox - | ssh pi@[IP address] sox -q -t sox - -d
Attention Mac users
You'll likely be flooded with warnings from the CoreAudio driver
while SSH is waiting for you to input your password for the pi
user. Just ignore the messages, type in your password anyway, and
press the Enter key—the recording will proceed as normal.
5.
Maybe you'd like to broadcast some nice music or a prerecorded message
instead of your own live voice. Use the following command to send My
Song.mp3 from your desktop to be played out of the speakers connected to
the Pi:
$ cat ~/"Desktop/My Song.mp3" | ssh pi@[IP address] sox -t mp3 -
-d
6.
Or why not broadcast an entire album with sweet tunes located in the My
Album folder on the desktop:
$ cat ~/"Desktop/My Album/"*.mp3 | ssh pi@[IP address] sox -t mp3
- -d
Distorting your voice in weird and
wonderful ways
Tired of your own voice by now? Let's make it more interesting by applying some
cool SoX effects!
SoX comes with a number of sound effects that can be applied to your audio and
optionally saved. Some effects are suitable to use on your live voice while others
only make sense when applied to already recorded files.
To see a list of all the possible effects and their parameters, use the following
command:
pi@raspberrypi ~ $ sox --help-effect=all
 
Search WWH ::




Custom Search