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 voice 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.

Note Activate the TwinCAT Speech configuration.

Sample project

TcSpeech_Samples_ASR_SetRuleState_03.21.zip

Further information

FB_SetRuleState