ResponsiveVoice Text To Speech API

Include the JS file in your page

speak(String text, [String voice], [Object parameters])

Starts speaking the text in a given voice.
Parameters
text: String
The text to be spoken.
voice: String
Defaults to “UK English Female”. Choose from the available ResponsiveVoices.
parameters: Object
Used to add optional pitch (range 0 to 2), rate (range 0 to 1.5), volume (range 0 to 1) and callbacks.
Pitch, rate and volume may not affect audio on some browser combinations, older versions of Chrome on Windows for example.

Returns: true/false

cancel()

Stops playing the speech.

voiceSupport()

Checks if browser supports native TTS

Returns: true/false

getVoices()

Returns: a list of available voices

setDefaultVoice()

isPlaying()

Detects if native TTS or TTS audio element is producing output.

Returns: true/false

pause() and resume()

Pauses/Resumes speech

 

Close
Go top