PC SOFT

WINDEV的在线文档

  • 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
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系:info@cn.windev.com
产品
WinDevWebDev-服务器代码WebDev-浏览器代码WinDev Mobile报表和查询
平台
WindowsLinuxWindows MobileWindows PhoneWindows Store appsAndroidAndroid Widget iPhone/iPad
语言
JavaPHPAjax用户代码(MCU)外部语言
数据库
HFSQLHFSQL Client/Server存储过程HF 5.5OLE DBODBC本地访问

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.

How to proceed?

Necessary conditions

WinDevWindows 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").

WinDevWindows

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 the 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 添加语音命令. 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 删除语音命令.

Example:

// Starts the "Find" procedure if the voice command is recognized
nVoiceID整数型AjouteCommandeVocale"Find""Finds the form of"


过程FindParam1
sCustomer字符串型Param1【【21直到】】
H读查找第一个sCustomerFIRSTNAMELASTNAMEsCustomer

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 添加语音命令. 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 删除语音命令.

Example:

// Starts the "Find" procedure if the voice command is recognized
nVoiceID整数型
nVoiceID添加语音命令"Find""Finds the form of"


过程FindParam1
sCustomer字符串型Param1【【21直到】】
H读查找第一个sCustomerFIRSTNAMELASTNAMEsCustomer

WinDevWindows

Disabling the speech recognition

The speech recognition is automatically enabled by default.

To disable the speech recognition in your application, use 禁用应用程序自动功能 associated with the 应用程序自动功能.语音识别 constant.