The main interface of a speech synthesis service.
A service’s speak method could be implemented in two ways:
1. Indirect audio - the service is responsible for outputting audio.
The service calls the nsISpeechTask.dispatch* methods directly. Starting
with dispatchStart() and ending with dispatchEnd or dispatchError().
Speak the given text using the voice identified byu the given uri. See
W3C Speech API spec for information about pitch and rate.
https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#utterance-attributes
aText | text to utter. |
aUri | unique voice identifier. |
aRate | rate to speak voice in. |
aPitch | pitch to speak voice in. |
aTask | task instance for utterance, used for sending events or audio data back to browser. |