10.2 Speaker Setup

The speaker being used to amplify the computer’s audio is a key factor in this project’s success. The speaker needs to be loud enough to be heard from one or more rooms away and ideally should be heard throughout the house if possible. Let’s take a look at both wired and wireless approaches.

The quickest way to connect a Mac computer up to a home stereo is by using a male-to-male 3.5mm stereo headphone to an RCA adapter cable. This cable will run from the Mac’s headphone jack to the stereo amplifier and/or receiver’s audio input jack. If your home stereo doesn’t support a 3.5mm input jack, you will need a 3.5mm female-to-RCA-male audio cable. The length of the cable needs to comfortably run from the computer to the stereo, so take that into consideration when purchasing the cable from your preferred audio-video supplier.

If the computer and stereo are separated by several rooms, you will be running a lot of wire and probably need to drill a few holes in the process. If you don’t want to operate the computer in the same room as the stereo and don’t like the idea of fishing wiring through walls to connect the two, consider a wire-free alternative. If this is your situation, I recommend using the external Bluetooth speaker option since it offers the most flexibility.

Pairing an external Bluetooth speaker with the Mac is easy. Simply turn on Bluetooth on the Mac via the Bluetooth System Preference pane. Then power up the external Bluetooth speaker and set it to pair with your computer. This is typically done by holding down the power button on the speaker until the speaker’s Bluetooth indicator light starts flashing. Then click the Set Up New Device... button on the Mac’s Bluetooth Preference Pane. This should auto-detect the Bluetooth speaker. In the case of the Supertooth DISCO speaker, it displays “ST DISCO R58” on my Mac, as shown in Figure 45, Bluetooth wireless speaker pairing.

/epubstore/R/M-Riley/Programming-your-home//images/osx-bluetooth-speaker.png

Figure 45. Bluetooth wireless speaker pairing

Select the speaker name. Depending on the Bluetooth speaker you are connecting to, it may automatically establish a connection or it may require a four-digit confirmation code such as 0000 or 1234 to be typed in on the screen. In the case of the Supertooth DISCO speaker, my Mac automatically configured the speaker without requiring any confirmation codes.

If the discovery and configuration went smoothly, you should receive a confirmation message on the screen that pairing with the speaker was successful. Go to the Sound option in System Preferences and select the speaker in the Output tab. Then use the iTunes music application on your Mac to play back audio and verify that you can indeed hear the sound reproduced on the paired speaker. Conclude your pairing confirmation testing by entering the Speech option in System Preferences and then selecting the Text to Speech tab. Click the Play button. If you hear the TTS playback on the speaker, your talking Mac hardware setup is successfully configured. Set the volume on the speaker and dial up or down the output volume level on the Mac to get the sound output just right for the audio coverage area you have in mind.

There are trade-offs between these wired and wireless audio configurations. If you need the convenience of a wire-free audio transmission, the external Bluetooth speaker option is the way to go. But if you value high fidelity sound over wireless convenience, a wired connection to a dedicated stereo amplifier/receiver offers the best sound reproduction to multiple speaker outputs. If you are fortunate enough to have already prewired the rooms in your home for stereo sound, the wired computer-to-stereo approach is the obvious choice.

Next we’ll configure the Mac to listen for voice commands and respond with a high-quality voice response. Then we will write an AppleScript script that will leverage OS X’s built-in speech recognition server to listen for specific commands and act on them accordingly.

Programming Your Home
cover.xhtml
f_0000.html
f_0001.html
f_0002.html
f_0003.html
f_0004.html
f_0005.html
f_0006.html
f_0007.html
f_0008.html
f_0009.html
f_0010.html
f_0011.html
f_0012.html
f_0013.html
f_0014.html
f_0015.html
f_0016.html
f_0017.html
f_0018.html
f_0019.html
f_0020.html
f_0021.html
f_0022.html
f_0023.html
f_0024.html
f_0025.html
f_0026.html
f_0027.html
f_0028.html
f_0029.html
f_0030.html
f_0031.html
f_0032.html
f_0033.html
f_0034.html
f_0035.html
f_0036.html
f_0037.html
f_0038.html
f_0039.html
f_0040.html
f_0041.html
f_0042.html
f_0043.html
f_0044.html
f_0045.html
f_0046.html
f_0047.html
f_0048.html
f_0049.html
f_0050.html
f_0051.html
f_0052.html
f_0053.html
f_0054.html
f_0055.html
f_0056.html
f_0057.html
f_0058.html
f_0059.html
f_0060.html
f_0061.html
f_0062.html
f_0063.html
f_0064.html
f_0065.html
f_0066.html
f_0067.html
f_0068.html
f_0069.html
f_0070.html
f_0071.html
f_0072.html
f_0073.html
f_0074.html
f_0075.html
f_0076.html
f_0077.html
f_0078.html
f_0079.html
f_0080.html
f_0081.html
f_0082.html
f_0083.html
f_0084.html
f_0085.html
f_0086.html
f_0087.html
f_0088.html
f_0089.html
f_0090.html
f_0091.html
f_0092.html
f_0093.html
f_0094.html
f_0095.html
f_0096.html
f_0097.html
f_0098.html
f_0099.html
f_0100.html
f_0101.html
f_0102.html
f_0103.html
f_0104.html
f_0105.html
f_0106.html
f_0107.html
f_0108.html
f_0109.html
f_0110.html
f_0111.html
f_0112.html
f_0113.html
f_0114.html
f_0115.html
f_0116.html
f_0117.html
f_0118.html
f_0119.html
f_0120.html
f_0121.html
f_0122.html
f_0123.html
f_0124.html
f_0125.html