Getting scripts to speak
The Standard Additions dictionary includes the Say command. To see the syntax of the command, open the Standard Additions dictionary in the Script Editor, locate the User Interaction suite, and click "say."
You can use the Say command to make your scripts speak. You can use this feature to report the outcome of actions, to read aloud the contents of fields from databases, or to report other information. For example, the following script uses the Say command to speak the number of items found: set numberFound to 5 If your scripts do not speak: Making the computer's speech sound better You can make the computer's speech sound more natural using punctuation to add pauses and terms to remove unnecessary emphasis. Adding pauses: To add a shorter pause before and after a phrase: Adding emphasis: Removing unneeded emphasis: Emphasis is automatically removed from common short words such as "to," "and," "were," and "the." Changing voices: Changing voice rates: Related topic
|
|||||||||||||||||||||||||||||
Table of contents |