Component: Speech (Phoneme) (Audio Output): Difference between revisions
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;"" to "width="10%" align="center" class="mtx-class-macrohead"" |
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead"" |
||
| Line 87: | Line 87: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''DisableOutput''' | ||
|- | |- | ||
| colspan="2" | Disables the output to prevent any buzzing etc while not speaking. | | colspan="2" | Disables the output to prevent any buzzing etc while not speaking. | ||
| Line 101: | Line 101: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''EnableOutput''' | ||
|- | |- | ||
| colspan="2" | Sets up the output to allow the speech data to be streamed out. | | colspan="2" | Sets up the output to allow the speech data to be streamed out. | ||
| Line 115: | Line 115: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Ev_Start''' | ||
|- | |- | ||
| colspan="2" | Broadcast to all components that simulation is starting | | colspan="2" | Broadcast to all components that simulation is starting | ||
| Line 129: | Line 129: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''OutputPhoneme''' | ||
|- | |- | ||
| colspan="2" | Streams a single Phoneme or string of comma seperated Phonemes. OutputPhoneme("OY") OutputPhoneme("OY,AY,OY") | | colspan="2" | Streams a single Phoneme or string of comma seperated Phonemes. OutputPhoneme("OY") OutputPhoneme("OY,AY,OY") | ||
| Line 148: | Line 148: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ReadByteFromPhoneme''' | ||
|- | |- | ||
| colspan="2" | Reads a single byte value from the specified phoneme data array. This function will not simulate correctly as it requires C style pointers. | | colspan="2" | Reads a single byte value from the specified phoneme data array. This function will not simulate correctly as it requires C style pointers. | ||
| Line 172: | Line 172: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ReadPhonemeLength''' | ||
|- | |- | ||
| colspan="2" | Function to return the number of bytes used in a single phoneme array. | | colspan="2" | Function to return the number of bytes used in a single phoneme array. | ||
| Line 192: | Line 192: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Properties''' | ||
|- | |- | ||
|- | |- | ||
Revision as of 14:23, 13 July 2026
| Author | Matrix Ltd |
| Version | 1.2 |
| Category | Audio Output |
Speech (Phoneme) component
Speech component allowing Phoneme based speech for use on an embedded platform. The simulation also has an advanced speech engine allowing realistic text to speech in multiple languages using the RealSpeak voice engine.
Detailed description
No detailed description exists yet for this component
Examples
Example of Phoneme Speech (download and simulation)
Speech
The Phoneme based speech can be output on Microcontroller hardware using a number of methods.
PWM - Outputs using a single PWM pin, a simple external RC low pass filter can be used to remove the high frequency PWM to create an audio signal.
Parallel - Outputs using a 8-bit port, a simple 8-bit R2R DAC circuit can be used to combine the bits into an audio signal.
Other - A third option is to use the ReadByteFromPhoneme macro to pull out the phoneme values a byte at a time which can be used to pass on to an external DAC etc.
Another example of Phoneme Speech, taking a reading from an analogue channel and speaking the Voltage. (download and simulation)
Talking Volt Meter
Macro reference
DisableOutput
| DisableOutput | |
| Disables the output to prevent any buzzing etc while not speaking. | |
| Return | |
EnableOutput
| EnableOutput | |
| Sets up the output to allow the speech data to be streamed out. | |
| Return | |
Ev_Start
| Ev_Start | |
| Broadcast to all components that simulation is starting | |
| Return | |
OutputPhoneme
| OutputPhoneme | |
| Streams a single Phoneme or string of comma seperated Phonemes. OutputPhoneme("OY") OutputPhoneme("OY,AY,OY") | |
| DataString | |
| Return | |
ReadByteFromPhoneme
ReadPhonemeLength
| ReadPhonemeLength | |
| Function to return the number of bytes used in a single phoneme array. | |
| Phoneme | |
| Specifies a single Phoneme | |
| Return | |
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_speech.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_speech.fcfx