Q.Audio Class
Q.Audio objects facilitate audio functionality on various browsers. Please do not create them directly, but use the Q.audio function.
Constructor
Item Index
Methods
pause
Pauses the audio if it is playing
()
pause
Pauses the audio if it is playing
()
play
Plays the audio as soon as it is available
(
-
[from]
-
[until]
-
[removeAfterPlaying]
recorderInit
Set recorder class
(
-
[options]
speak
(
-
text
-
[options]
Speak text in various browsers
Parameters:
-
text
Stringspecifies the text that will be spoken.
-
[options]
Object optionalAn optional hash of options for Q.Audio.speak:
-
[gender="female"]
String optionalthe voice in which will be speech the text.
-
[rate=1]
Number optionalthe speaking rate of the SpeechSynthesizer object, from 0.1 to 1.
-
[pitch=1]
Number optionalthe speaking pitch of the SpeechSynthesizer object, from 0.1 to 1.9.
-
[volume=1]
Number optionalthe volume height of speech (0.1 - 1).
-
[locale="en-US"]
Number optionala 4 character code that specifies the language that should be used to synthesize the text.
-