Use the chrome.tts API to play synthesized text-to-speech (TTS). See also the related ttsEngine API, which allows an extension to implement a speech engine.
Use the chrome.tts API to play synthesized text-to-speech (TTS). See also the related ttsEngine API, which allows an extension to implement a speech engine. * available since Chrome 27 * https://developer.chrome.com/apps/tts
(get-voices)
Gets an array of all available voices.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [voices] where:
|voices| - Array of 'tts.TtsVoice' objects representing the available voices for speech synthesis.
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Gets an array of all available voices. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [voices] where: |voices| - Array of 'tts.TtsVoice' objects representing the available voices for speech synthesis. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error. https://developer.chrome.com/apps/tts#method-getVoices.
(is-speaking)
Checks whether the engine is currently speaking. On Mac OS X, the result is true whenever the system speech engine is speaking, even if the speech wasn't initiated by Chrome.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [speaking] where:
|speaking| - True if speaking, false otherwise.
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Checks whether the engine is currently speaking. On Mac OS X, the result is true whenever the system speech engine is speaking, even if the speech wasn't initiated by Chrome. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [speaking] where: |speaking| - True if speaking, false otherwise. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error. https://developer.chrome.com/apps/tts#method-isSpeaking.
(pause)
Pauses speech synthesis, potentially in the middle of an utterance. A call to resume or stop will un-pause speech.
Pauses speech synthesis, potentially in the middle of an utterance. A call to resume or stop will un-pause speech. https://developer.chrome.com/apps/tts#method-pause.
(resume)
If speech was paused, resumes speaking where it left off.
If speech was paused, resumes speaking where it left off. https://developer.chrome.com/apps/tts#method-resume.
(speak utterance)
(speak utterance options)
Speaks text using a text-to-speech engine.
|utterance| - The text to speak, either plain text or a complete, well-formed SSML document. Speech engines that do not support SSML will strip away the tags and speak the text. The maximum length of the text is 32,768 characters. |options| - The speech options.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Speaks text using a text-to-speech engine. |utterance| - The text to speak, either plain text or a complete, well-formed SSML document. Speech engines that do not support SSML will strip away the tags and speak the text. The maximum length of the text is 32,768 characters. |options| - The speech options. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error. https://developer.chrome.com/apps/tts#method-speak.
(stop)
Stops any current speech and flushes the queue of any pending utterances. In addition, if speech was paused, it will now be un-paused for the next call to speak.
Stops any current speech and flushes the queue of any pending utterances. In addition, if speech was paused, it will now be un-paused for the next call to speak. https://developer.chrome.com/apps/tts#method-stop.
(tap-all-events chan)
Taps all valid non-deprecated events in chromex.app.tts namespace.
Taps all valid non-deprecated events in chromex.app.tts namespace.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close