Liking cljdoc? Tell your friends :D

chromex.ext.tts

clj

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/extensions/tts
raw docstring

api-tableclj

source

gen-callclj

source

gen-wrapclj/smacro

(gen-wrap kind item-id config & args)
source

get-voicesclj/smacro

(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.

https://developer.chrome.com/extensions/tts#method-getVoices.

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/extensions/tts#method-getVoices.
sourceraw docstring

get-voices*cljs

(get-voices* config)
source

is-speakingclj/smacro

(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.

https://developer.chrome.com/extensions/tts#method-isSpeaking.

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/extensions/tts#method-isSpeaking.
sourceraw docstring

is-speaking*cljs

(is-speaking* config)
source

pauseclj/smacro

(pause)

Pauses speech synthesis, potentially in the middle of an utterance. A call to resume or stop will un-pause speech.

https://developer.chrome.com/extensions/tts#method-pause.

Pauses speech synthesis, potentially in the middle of an utterance. A call to resume or stop will un-pause speech.

https://developer.chrome.com/extensions/tts#method-pause.
sourceraw docstring

pause*cljs

(pause* config)
source

resumeclj/smacro

(resume)

If speech was paused, resumes speaking where it left off.

https://developer.chrome.com/extensions/tts#method-resume.

If speech was paused, resumes speaking where it left off.

https://developer.chrome.com/extensions/tts#method-resume.
sourceraw docstring

resume*cljs

(resume* config)
source

speakclj/smacro

(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.

https://developer.chrome.com/extensions/tts#method-speak.

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/extensions/tts#method-speak.
sourceraw docstring

speak*cljs

(speak* config utterance options)
source

stopclj/smacro

(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.

https://developer.chrome.com/extensions/tts#method-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.

https://developer.chrome.com/extensions/tts#method-stop.
sourceraw docstring

stop*cljs

(stop* config)
source

tap-all-eventsclj/smacro

(tap-all-events chan)

Taps all valid non-deprecated events in chromex.ext.tts namespace.

Taps all valid non-deprecated events in chromex.ext.tts namespace.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close