Jump to content

Component: Speech ( Data): Difference between revisions

From Flowcode Help
m Text replacement - "class="wikitable" style="width:60%; background-color:#FFFFFF;"" to "class="mtx-class-macrotable wikitable""
Line 38: Line 38:


===Cancel===
===Cancel===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
Line 52: Line 52:


===GetVoiceCount===
===GetVoiceCount===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
Line 66: Line 66:


===GetVoiceName===
===GetVoiceName===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
Line 85: Line 85:


===IsPaused===
===IsPaused===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
Line 99: Line 99:


===IsPending===
===IsPending===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
Line 113: Line 113:


===IsSpeaking===
===IsSpeaking===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
Line 127: Line 127:


===Pause===
===Pause===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
Line 141: Line 141:


===Resume===
===Resume===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
Line 155: Line 155:


===SetLanguage===
===SetLanguage===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
Line 174: Line 174:


===SetProperties===
===SetProperties===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
Line 203: Line 203:


===SetVoice===
===SetVoice===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
Line 222: Line 222:


===Speak===
===Speak===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
Line 242: Line 242:
==Property reference==
==Property reference==


{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]]
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]]

Revision as of 14:15, 13 July 2026

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

Speech Component Test Example

This example lists the available voices and tests the capabilities of the Speech component.

Speech component test.fcsx

The web app created by this example can be viewed here: Speech component test.html

Macro reference

Cancel

Cancel
Cancels the current speech and removes all speech fro the queue 
- VOID Return


GetVoiceCount

GetVoiceCount
Returns the number of available voices. 
- LONG Return


GetVoiceName

GetVoiceName
Gets the name of the voice from the list of available voices 
- LONG Index
The index of the voice (from 0 to the count of available voices) 
- STRING Return


IsPaused

IsPaused
Returns true if speech synthesis is currently paused 
- BOOL Return


IsPending

IsPending
Returns true if there is queued text waiting to be spoken 
- BOOL Return


IsSpeaking

IsSpeaking
Returns true if there is text currently being spoken, even if speech is currently paused 
- BOOL Return


Pause

Pause
Puts the speech synthesis into a paused state 
- VOID Return


Resume

Resume
Puts the speech synthesis into a non-paused state 
- VOID Return


SetLanguage

SetLanguage
 
- STRING Language
 
- VOID Return


SetProperties

SetProperties
Sets the rate, pitch and volume of the speech 
- FLOAT Pitch
Pitch of speech (0.0 to 2.0, or -1 to keep unchanged) 
- FLOAT Rate
Speed of speech (0.1 to 10.0, or -1 to keep unchanged) 
- FLOAT Volume
Volume of speech (0.0 to 1.0, or -1 to keep unchanged) 
- VOID Return


SetVoice

SetVoice
Sets the voice to use for speech 
- LONG Index
The index of the voice to use (0 to voice count, or -1 for default voice) 
- VOID Return


Speak

Speak
Sends text to the speech synthesis queue to be spoken. It will be spoken once any other queued speech has been spoken. 
- STRING sText
 
- VOID Return


Property reference

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