PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

  • Overview
  • How to proceed?
  • Necessary conditions
  • Using the voice commands in the application
  • Proposing additional options or macro-commands
  • Proposing additional options or macro-commands
  • Disabling the speech recognition
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Overview
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.
Versions 17 and later
Android This feature is now available for the Android applications.
New in version 17
Android This feature is now available for the Android applications.
Android This feature is now available for the Android applications.
Versions 23 and later
iPhone/iPad This feature is now available for the iPhone/iPad applications.
New in version 23
iPhone/iPad This feature is now available for the iPhone/iPad applications.
iPhone/iPad This feature is now available for the iPhone/iPad applications.
How to proceed?

Necessary conditions

Windows To use the voice commands in your applications, your computer must be equipped with:
  • Windows Vista (or later).
  • a speech recognition program (Dragon Naturally Speaking for example, tests performed with version 9 "Preferred" or "standard").
Versions 17 and later
AndroidiPhone/iPad To use the voice commands in your applications, the service for speech recognition must be installed on the phone. The recognition of voice commands must be triggered by SpeechRecognitionTrigger.
New in version 17
AndroidiPhone/iPad To use the voice commands in your applications, the service for speech recognition must be installed on the phone. The recognition of voice commands must be triggered by SpeechRecognitionTrigger.
AndroidiPhone/iPad To use the voice commands in your applications, the service for speech recognition must be installed on the phone. The recognition of voice commands must be triggered by SpeechRecognitionTrigger.
Versions 23 and later
iPhone/iPad Caution: The functions for speech recognition can be used from iOS 10.
New in version 23
iPhone/iPad Caution: The functions for speech recognition can be used from iOS 10.
iPhone/iPad Caution: The functions for speech recognition can be used from iOS 10.
Windows

Using the voice commands in the application

To use the voice commands in the application:
  1. Enable the voice recognition program.
  2. Dictate the captions of menu options or buttons that you want to use.

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 AddVoiceCommand. 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 allows you to isolate the requested information (customer name, city name, ...).
You have the ability to delete this association with DeleteVoiceCommand.
Example:
// Starts the "Find" procedure if the voice command is recognized
nVoiceID is int = AddVoiceCommand("Find", "Finds the form of")


PROCÉDURE Find(Param1)
sCustomer is string = Param1[[21 to ]]
HReadSeekFirst(sCustomer, FIRSTNAMELASTNAME, sCustomer)

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 allows you to isolate the requested information (customer name, city name, ...).
You have the ability to delete this association with SpeechRecognitionDeleteCommand.
Example:
// Starts the "Find" procedure if the voice command is recognized
nVoiceID is int
nVoiceID = SpeechRecognitionAddCommand("Find", "Finds the form of")
PROCÉDURE Find(Param1)
sCustomer is string = Param1[[21 to ]]
HReadSeekFirst(sCustomer, FIRSTNAMELASTNAME, sCustomer)
Windows

Disabling the speech recognition

The speech recognition is automatically enabled by default.
To disable the speech recognition in your application, use DisableAAF associated with the aafSpeechRecognition constant.To disable the speech recognition in your application, use AAFDisable (or DisableAAF) associated with the aafSpeechRecognition constant.
Related Examples:
The voice recognition functions 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 Speech Synthesis 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.
Minimum required version
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment