Component: Speech ( Data)

From Flowcode Help
Jump to navigationJump to search
Author MatrixTSL
Version 1.0
Category Data


Speech component

Component that utilises the SpeechSynthesis module of the browser to convert text to audio.

Version information

Library Version, Component Version, Date, Author, Info
1, 1.0, 18-06-24, ST, Created


Detailed description

No detailed description exists yet for this component

Examples

No additional examples


Macro reference

Cancel

Fc9-comp-macro.png Cancel
Cancels the current speech and removes all speech fro the queue 
Fc9-void-icon.png - VOID Return


GetVoiceCount

Fc9-comp-macro.png GetVoiceCount
Returns the number of available voices. 
Fc9-s32-icon.png - LONG Return


GetVoiceName

Fc9-comp-macro.png GetVoiceName
Gets the name of the voice from the list of available voices 
Fc9-s32-icon.png - LONG Index
The index of the voice (from 0 to the count of available voices) 
Fc9-string-icon.png - STRING Return


IsPaused

Fc9-comp-macro.png IsPaused
Returns true if speech synthesis is currently paused 
Fc9-bool-icon.png - BOOL Return


IsPending

Fc9-comp-macro.png IsPending
Returns true if there is queued text waiting to be spoken 
Fc9-bool-icon.png - BOOL Return


IsSpeaking

Fc9-comp-macro.png IsSpeaking
Returns true if there is text currently being spoken, even if speech is currently paused 
Fc9-bool-icon.png - BOOL Return


Pause

Fc9-comp-macro.png Pause
Puts the speech synthesis into a paused state 
Fc9-void-icon.png - VOID Return


Resume

Fc9-comp-macro.png Resume
Puts the speech synthesis into a non-paused state 
Fc9-void-icon.png - VOID Return


SetLanguage

Fc9-comp-macro.png SetLanguage
 
Fc9-string-icon.png - STRING Language
 
Fc9-void-icon.png - VOID Return


SetProperties

Fc9-comp-macro.png SetProperties
Sets the rate, pitch and volume of the speech 
Fc9-f32-icon.png - FLOAT Pitch
Pitch of speech (0.0 to 2.0, or -1 to keep unchanged) 
Fc9-f32-icon.png - FLOAT Rate
Speed of speech (0.1 to 10.0, or -1 to keep unchanged) 
Fc9-f32-icon.png - FLOAT Volume
Volume of speech (0.0 to 1.0, or -1 to keep unchanged) 
Fc9-void-icon.png - VOID Return


SetVoice

Fc9-comp-macro.png SetVoice
Sets the voice to use for speech 
Fc9-s32-icon.png - LONG Index
The index of the voice to use (0 to voice count, or -1 for default voice) 
Fc9-void-icon.png - VOID Return


Speak

Fc9-comp-macro.png Speak
Sends text to the speech synthesis queue to be spoken. It will be spoken once any other queued speech has been spoken. 
Fc9-string-icon.png - STRING sText
 
Fc9-void-icon.png - VOID Return


Property reference

Fc9-prop-icon.png Properties

Component Source Code

Please click here to download the component source project: FC_Comp_Source_WEBEXP_Speech.fcsx

Please click here to view the component source code (Beta): FC_Comp_Source_WEBEXP_Speech.fcsx