A task is associated with a single utterance. It is provided by the browser
to the service in the speak() method.
Prepare browser for speech.
| aCallback | callback object for mid-speech operations. |
| aChannels | number of audio channels. Only required in direct audio services |
| aRate | audio rate. Only required in direct audio services |
Send audio data to browser.
| aData | an Int16Array with PCM-16 audio data. |
| aLandmarks | an array of sample offset and landmark pairs. Used for emiting boundary and mark events. |
Dispatch start event.
Dispatch end event.
| aElapsedTime | time in seconds since speech has started. |
| aCharIndex | offset of spoken characters. |
Dispatch pause event. Should not be called directly by service.
| aElapsedTime | time in seconds since speech has started. |
| aCharIndex | offset of spoken characters. |
Dispatch resume event. Should not be called directly by service.
| aElapsedTime | time in seconds since speech has started. |
| aCharIndex | offset of spoken characters. |
Dispatch error event.
| aElapsedTime | time in seconds since speech has started. |
| aCharIndex | offset of spoken characters. |
Dispatch boundary event.
| aName | name of boundary, 'word' or 'sentence' |
| aElapsedTime | time in seconds since speech has started. |
| aCharIndex | offset of spoken characters. |
Dispatch mark event.
| aName | mark identifier. |
| aElapsedTime | time in seconds since speech has started. |
| aCharIndex | offset of spoken characters. |