
## 用户场景
移动端的用户,希望能够识别自然语言,并且获取到识别结果去做分析查询。
## 功能介绍
1.支持开始录音(startVoice)和停止录音 (stopVoice)两个API
2. 停止录音后,会将前端的识别结果通过自定义事件传给后端
3. 录音时长一般在一分钟之内,超出一分钟部分会被截断
4. 当前支持该特性的APP(云之家、企业微信、钉钉)
5. 企业微信和钉钉需要鉴权(一般做到“单点登录“即可)
## 适用版本
金蝶云苍穹V4.0.004及以上
## 插件代码
```
var plugin = new FormPlugin({
click : function(e){
var key = e.getSource().getKey();
var hm = new HashMap()
if (key === 'kdtest_start_voice') {
hm.put("method", "startVoice")
this.getView().executeClientCommand('callAPPApi', hm);
} else if (key === 'kdtest_stop_voice') {
hm.put("method", "stopVoice")
this.getView().executeClientCommand('callAPPApi', hm);
}