Sample 01: Simple ASR and TTS sample

Description

Sample of PLC programming for ASR and TTS

Two simple programs show how to handle FB_TextToSpeech or FB_SpeechRecognition.

In the configuration for the speech recognition, the text "Hello TwinCAT" is recognized, transmitted to the PLC and evaluated by the MainASR program. Successful recognition is displayed for one second by "bRecognition := TRUE".

For the speech output, a greeting word is output as soon as the variable "bSpeak" in MainTTS is set to TRUE.

With all TwinCAT Speech samples, a configuration is stored that uses the operating system's default sound card.

Notice Activate the TwinCAT Speech configuration.

Sample project

https://github.com/Beckhoff/TF4500_Samples/tree/main/TcSpeech_Samples_ASR-TTS_simple

Further information

Quick start: speech output (TTS)

Quick start: speech input (ASR)