< Day Day Up > |
15.4. Speech RecognitionAlthough it may surprise many Mac users, the Mac is quite talented when it comes to speech. Its abilities fall into two categories: reading text aloud , using a synthesized voice; and taking commands from your voice. The Apple marketing machine may have been working too hard when it called this feature "speech recognition" ”the Mac OS feature called PlainTalk doesn't take dictation, typing out what you say. (For that, you need a program like ViaVoice for Mac OS X, www.scansoft.com, or iListen, www.macspeech.com.) Instead, PlainTalk is what's known as a command-and-control technology. It lets you open programs, trigger AppleScripts, choose menu commands, trigger keystrokes, and click dialog box buttons and tabs ”just by speaking their names . Few people use PlainTalk speech recognition. But if your Mac has a microphone, PlainTalk is worth at least a 15-minute test drive. It may become a part of your work routine forever.
15.4.1. Your First Conversation with the MacThe on/off switch for speech recognition in Mac OS X is the Speech pane of System Preferences (Figure 15-11). Where you see " Speakable items" (on the Speech Recognition tab), click On. 15.4.1.1. The Feedback windowCheck out your screen: A small, microphone-like floating window now appears (Figure 15-12). The word Esc in its center indicates the "listen" key ”the key you're supposed to hold down when you want the Mac to respond to your voice. (You wouldn't want the Mac listening all the time ”even when you said, for example, "Hey, it's cold in here. Close the window ." Therefore, the Mac comes set to listen only when you're pressing that key.) You can specify a different key, if you wish, or eliminate the requirement to press a key altogether, as described in the next section. When you start talking, you'll also see the Mac's interpretation of what you said written out in a yellow balloon just over the Feedback window. 15.4.1.2. The Speakable Commands windowThe only commands PlainTalk understands are listed in the Speakable Commands window. (If it's not open, see Figure 15-12.) Keeping your eye on this window is essential, because it offers a complete list of everything your Mac understands. As you can see, some of them represent shortcuts that would take several steps if you had to perform them manually. Here are a few examples of what you'll find in the list at first:
Mac OS X updates the listing in the Speech Commands window in real time, according to the context. When you switch from one program to another, you see a list of the local commands that work in the new program. You'll discover that when you use the "Tell me a joke" command, for example, you don't necessarily have to say, "Who's there?" You can also say "Stop," "Go away," or "Stop with the jokes!" (It must really be fun to work at Apple.) 15.4.1.3. Speaking to the MacFinish up on the Speech pane of System Preferences. Use the Microphone pop-up menu to specify which microphone you'll be using (if you have a choice). Click Calibrate to adjust its sensitivity. Now you're ready to begin. While pressing the Esc key (if that's still the one identified in the Feedback window), begin speaking. Speak normally; don't exaggerate or shout. Try one of the commands in the Speakable Commands list ”perhaps "What time is it?" If your mike is set up properly, the round Feedback window displays animated sound waves when you speak. 15.4.2. Customizing Speech RecognitionYou can tailor the speech recognition feature in two ways: by adjusting the way it looks and operates, and by adding new commands to its vocabulary. 15.4.2.1. Changing when the Mac listensHaving the microphone "open," listening full-time , is an invitation for disaster. Everyday phone conversations, office chatter, and throat clearings would completely bewilder the software, triggering random commands. Therefore, you must explicitly tell the Mac when you're addressing it. When you first turn on the speech recognition feature, the Mac expects you to alert it by pressing a key, like the Esc key, when you speak. Tip: To change the key you hold down when you want the Mac to listen, visit the Speech pane of System Preferences; click the Speech Recognition tab; click Settings; and then click Change Key. A little message prompts you to press the keyboard key you'd prefer to use. Your choices are Esc, Delete, F5 through F12, or the keys on your numeric keypad ”with or without the Shift, Control, or Option keys. If you'd rather not have to press some key whenever you want the computer's attention, click the other option in this pane, "Listen continuously with keyword." Now to get the computer's attention you must speak the keyword ”which you type into the Keyword box ”before each command. For example, you might say, "Computer, open AppleWorks," or "Hal, what day is it?" The name you specify appears in the middle of the round Feedback window. Note: This method of getting the computer's attention is less reliable than the push-a-key-to-talk system. Especially if you name the computer Hal. Although that's hilarious in theory, polysyllabic names work better in practice. By using the "Keyword is" pop-up menu, meanwhile, you can specify how big your window of opportunity is:
Tip: If you're not using the push-to-talk method, you can still turn speech recognition off temporarily by saying, "Turn on push to talk." (Now the Mac listens to you only when you're pressing the designated key.) When you want to return to listening-all-the-time mode, say, "Listen continuously." 15.4.2.2. Changing the feedbackAnother set of options on the Speech Recognition tab governs what the Mac does when it understands something that you've said. For example:
15.4.2.3. Triggering menus by voiceOn the Speech pane of System Preferences, click the Speech Recognition tab, and then click the Commands mini-tab. Here you'll find a list of the command categories that Speakable Items can understand. As you turn each checkbox on or off, watch the Speech Commands window. Giant swaths of commands appear or disappear as you fool with these checkboxes, giving you a good indication as to their function. Here's a rundown:
The combination of Front Window and Menu Bar commands lets you do quite a bit of work on your Mac without ever needing the mouse or keyboard. 15.4.2.4. Improving the PlainTalk vocabularyBy putting an alias of a favorite document, folder, disk, or program into your Home Library Speakable Items folder, you can teach PlainTalk to recognize its name and open it for you on command. You can name these icons anything you want. You can also rename the starter set that Apple provides. You'll have the best luck with multi-word or polysyllabic names ”"Microsoft Word," not just "Word." But one kind of icon PlainTalk can open is an AppleScript icon, the kind you create by following the instructions in Chapter 8. If you open your Home folder Library Speech Speakable Items, you'll discover that most of the built-in speakable-item icons are, in fact, AppleScript icons. The point is that you can make PlainTalk do almost anything you want, especially in the Finder, simply by creating AppleScripts and putting them into the Speakable Items folder. 15.4.2.5. Application specific commandsMost of the preinstalled PlainTalk commands work in any program. You can say, for example, "Open iTunes" to launch iTunes from within any program. However, you can also create commands that work only in a specific program. They sit in your Speakable Items Application Speakable Items folder, inside individual application-name folders. For example, Mac OS X comes with commands for Safari that include Go Back, Go Forward, and Page Down. If you get good at AppleScript, you can create your own application-command folders in the Speakable Items Application Speakable Items folder. Then open the program for which you want to create special commands and say, "Make this application speakable." The Mac creates a folder for the program in the Speakable Items folder; fill it with the AppleScripts you've created. (Not all programs can be AppleScript-controlled.) Note: If you give an application-specific icon the exact same name as one of the global commands, the Mac executes the application-specific one ”if that program is running. 15.4.2.6. PlainTalk tips, tricks, and troubleshootingWhen you're creating new commands, click the Helpful Tips button at the lower-right corner of the Commands pane (of the Speech Recognition pane of the Speech pane of System Preferences). |
< Day Day Up > |