SUI_SetIgnoreResume Table of Contents || Prev | Next || [?]

 
SUI_SetIgnoreResume (ignorePhrase; resumePhrase)
 
ParameterTypeDescription
ignorePhraseStringPhrase to suspend listening
resumePhraseStringPhrase to resume listening
 
Description

SUI_SetIgnoreResume allows you to specify a phrase to suspend listening until a second phrase is spoken. Unlike calling SUI_SetListenState(0), which completely disables listening, SUI_SetIgnoreResume allows for hands-free control by allowing one phrase to suspend listening and another to resume.

Example

SUI_SetIgnoreResume ("ignore me";"listen up")

After calling this command, you can say "ignore me" and all language models will be disabled, and only the resume phrase becomes active. When "listen up" is spoken, all models that were previously active become active again.

The commands generate action codes. When spoken, the ignore phrase will generate an action code of 500 (the constant Ignore AC). The resume phrase will generate 501 (Resume AC).