|
|
|
|
- Special cases
- Application in the background: Specific case from Android 10
- Required permissions
SpeechRecognitionTrigger (Function) In french: ReconnaissanceVocaleDéclenche Triggers the device's speech recognition service. Remark: This function can be used in the emulator. This function cannot be used in the simulator. // Display the propositions returned by the speech recognition service in a List Box control MyList is string MyList = SpeechRecognitionTrigger("I am listening...") IF ErrorOccurred = False THEN FOR EACH STRING Proposition OF MyList SEPARATED BY CR ListAdd(LIST_ListProposition, Proposition) END END
Syntax
Triggering the speech recognition service (synchronous mode) Hide the details
<Result> = SpeechRecognitionTrigger([<Text>])
<Result>: 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.
<Text>: Optional character string Text that will appear in the window displayed by the speech recognition service. This window blocks the application.
Related Examples:
|
Android (WINDEV Mobile): Android Speech Synthesis
[ + ] This educational example explains how to manage the recognition and the speech synthesis Android. The speech synthesis is performed by using either the WLanguage functions, or an external JAR file included in the WINDEV Mobile project.
|
Business / UI classification: UI Code Component: wd290android.aar
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|