|
|
|
|
WLanguage procedure called by SpeechRecognitionTrigger // Display the propositions returned by the speech recognition service in a List Box control MyList is string MyList = SpeechRecognitionTrigger("I am listening...", ... SpeechRecognitionTrigger_Callback) Â INTERNAL PROCEDURE SpeechRecognitionTrigger_Callback(Proposition) IF ErrorOccurred = False THEN FOR EACH STRING Proposition OF MyList SEPARATED BY CR ListAdd(LIST_ListProposition, Proposition) END END END
Syntax
SpeechRecognitionTrigger_Callback(<Suggestions>)
<Suggestions>: Character string - List of words or sentences proposed by the speech recognition service based on the words pronounced by the user. Each proposition is separated by a CR character (Carriage Return).
- Empty string ("") in the following cases:
- if the speech recognition was canceled by the user.
- if an error occurred.
- if no match was found by the speech recognition service.
In this case, the ErrorOccurred variable is set to True. To get more details on the error, use ErrorInfo.
Business / UI classification: UI Code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|