|
|
|
|
|
- Overview
- How to?
- Necessary conditions
- Using the voice commands in the application
- Proposing additional options or macro-commands
- Turn off speech recognition
Voice commands in your applications
The applications that you develop can react to the user's voice. For example, some actions (scrolling a table, closing windows, selecting a check box or clicking a button) are automatically supported. All the standard commands of Windows are supported. You can also add your own voice commands to your applications. For example, say "Find the form for Mr John Smith" and the corresponding action is performed.
Proposing additional options or macro-commands Procedures or functions can be associated with a voice command. All you have to do is associate the procedure with the command via SpeechRecognitionAddCommand. This procedure is linked to the procedure for the current window. In the procedure, the sentence that triggered the voice command can be retrieved. This enables you to isolate the requested information (name of the customer, name of the city, ...). Example:
nIdVoix is int
nIdVoix = SpeechRecognitionAddCommand("Trouver", "Trouve la fiche de")
PROCEDURE Trouver(Param1)
sClient is string = Param1[[21 TO ]]
HReadSeekFirst(sClient, PRENOMNOM, sClient)
Related Examples:
|
Unit examples (WINDEV): The voice recognition functions
[ + ] Using the voice recognition functions. The voice commands of Windows Vista (or Windows XP, with a specific software) are used to control WINDEV applications with the voice. A WINDEV application already responds to the voice when the user dictates in an edit control or spells out the caption of a button. You also have the ability to program a specific voice command to perform a specific action.
|
|
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.
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|