Sample 05: Activation/deactivation of individual recognition tags

Description

This sample shows how individual recognition tags, which are stored as rules in the SRGS, can be enabled or disabled at runtime.

This can increase the recognition accuracy in particular with similar speech commands.

The SRGS contains a recognition tag "HELLO". This is enabled or disabled by the FB_SetRuleState in the PLC program depending on bSetRuleState.

Recognitions are displayed in bRecognition.

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_ASR_SetRuleState

Further information

FB_SetRuleState