#
hs.speech
This module provides access to the Speech Synthesizer component of OS X.
The speech synthesizer functions and methods provide access to OS X's Text-To-Speech capabilities and facilitates generating speech output both to the currently active audio device and to an AIFF file.
A discussion concerning the embedding of commands into the text to be spoken can be found at https://developer.apple.com/library/mac/documentation/UserExperience/Conceptual/SpeechSynthesisProgrammingGuide/FineTuning/FineTuning.html#//apple_ref/doc/uid/TP40004365-CH5-SW6. It is somewhat dated and specific to the older MacinTalk style voices, but still contains some information relevant to the more modern higher quality voices as well in its discussion about embedded commands.
#
Submodules
#
API Overview
Functions - API calls offered directly by the extension
attributesForVoice availableVoices defaultVoice isAnyApplicationSpeaking
Constructors - API calls which return an object, typically one that offers API methods
new
Methods - API calls which can only be made on an object returned by a constructor
continue isPaused isSpeaking modulation pause phonemes phoneticSymbols pitch rate reset setCallback speak speaking speakToFile stop usesFeedbackWindow voice volume
#
API Documentation
#
Functions
#
attributesForVoice
#
availableVoices
#
defaultVoice
#
isAnyApplicationSpeaking
#
Constructors
#
new
#
Methods
#
continue
#
isPaused
#
isSpeaking
#
modulation
#
pause
| | |
| --------------------------------------------|-------------------------------------------------------------------------------------|
| Signature | hs.speech:pause([where]) -> synthesizerObject
|
| Type | Method |
| Description | Pauses the output of the speech synthesizer. |
| Parameters |
- where - an optional string indicating when to pause the audio output (defaults to "immediate"). The string can be one of the following: "immediate" - pauses output immediately. If in the middle of a word, when speech is resumed, the word will be repeated. "word" - pauses at the end of the current word. "sentence" - pauses at the end of the current sentence.
- the synthesizer object
#
phonemes
#
phoneticSymbols
#
pitch
#
rate
#
reset
#
setCallback
#
speak
#
speaking
#
speakToFile
#
stop
| | |
| --------------------------------------------|-------------------------------------------------------------------------------------|
| Signature | hs.speech:stop([where]) -> synthesizerObject
|
| Type | Method |
| Description | Stops the output of the speech synthesizer. |
| Parameters |
- where - an optional string indicating when to stop the audio output (defaults to "immediate"). The string can be one of the following: "immediate" - stops output immediately. "word" - stops at the end of the current word. "sentence" - stops at the end of the current sentence.
- the synthesizer object