MRCP接口MRCPRecog 简介
2024-08-30 13:18:51
功能:开始一个语音识别,一边讲话,一边识别,需要ASR服务器。
原型:MRCPRecog (grammar, options)
grammar ---- 语法文件,可以是一个xml文件
options ---- 选项,具体见下面的描述
MRCPRecog的选项参数
Name Description
p ------- profile to use in mrcp.conf
i ------- digits to allow recognition to be interrupted with (by default DTMFs are sent to the MRCP server to recognize; otherwise, if "any" or other digits are specified, recognition will be interrupted)
输入一个数字,识别就会被打断。可以填"any",或一个数字
f ------- filename on play (if empty or not specified, no file is played)
一个wav文件的名字,会给客户播放这个提示音。
t ----- recognition timeout (msec)
语音识别的超时时间,单位毫秒,如 t=10000 表示10秒。
b ------ barge-in value (no barge-in allowed=0, barge-in allowed=1)
是否允许语音打断,填0或1
gd ---- grammar delimiters 语法分隔符
ct ----- confidence threshold (0.0 - 1.0)
置信度阈值(不明白什么意思)
sl ----- sensitivity level (0.0 - 1.0) 灵敏度等级
sva ----- speed versus accuracy (0.0 - 1.0) 速度和准确性
nb ----- n-best list length
nit ----- no input timeout (msec) 没有输入时的超时时间
sct ----- speech complete timeout (msec)
sint ----- speech incomplete timeout (msec)
dit ----- DTMF interdigit timeout (msec)
dtt ----- DTMF terminate timeout (msec)
dttc ----- DTMF terminate characters DTMF打断的字符
sw ----- save waveform (true/false)
nac ----- new audio channel (true/false) 新的语音通道
spl ------ speech language (en-US/en-GB/etc.) 语音识别的语言,英文或者中文
rm ------- recognition mode (normal/hotword) 语音识别模式,普通或者热词
hmaxd ----- hotword max duration (msec) 热词最大时间
hmind ----- hotword min duration (msec) 热词最小时间
cdb ----- clear DTMF buffer (true/false) 清除DTMF缓存
enm ----- early no match (true/false)
iwu ----- input waveform URI
mt ---- media type 媒体类型
epe
exit on play error (1: terminate recognition on file play error, 0: continue even if file play fails)
播放失败时的处理方式
1---结束识别
0--- 继续识别
uer ---- URI-encoded results (1: URI-encode NLMSL results, 0: do not encode)
1--- 编码成NLMSL 结果
0--- 不要编码
od ---- Output (prompt) delimiters. 输出的分隔符
sit
Start input timers value
(0: no,
1: yes [start with RECOGNIZE],
2: auto [start when prompt is finished])
启动输入计时器值
0 --- 不
1 --- 允许,从识别开始
2 --- 自动,等提示音播放完毕再开始
最新文章
- 带后台服务配置的tomcat使用
- 【工业串口和网络软件通讯平台(SuperIO)教程】一.通讯机制
- 20145223《Java程序程序设计》实验报告5
- linux学习笔记二-----文件权限管理
- java常见类型的转化以及风险
- Hadoop系列
- ASP 生成带日期的随机数
- 令用EclipseJ2EE创建的Dynamic Web project目录结构与用MyEclipse创建的Web project一样
- IE打印的参数配置说明
- Linux系统中cgroup功能介绍
- 从零开始学习前端开发 — 6、CSS布局模型
- SpringMVC国际化支持
- phpstudy配置本地https
- Java 多线程 sleep()方法与yield()方法的区别
- nGrinder TestRunner DNS / sun.net.spi.nameservice.NameServiceDescriptor
- python 反射的用法
- windows系统安装完后要做的事情
- Genome-wide gene-environment analyses of depression and reported lifetime traumatic experiences in UK Biobank
- 四则运算生成程序——GUI支持和部分功能改进
- C#编程(七十四)----------释放非托管资源
热门文章
- android如何让checkbox实现互斥以及android验证端cession登录注意事项
- PHP把空格、换行符、中文逗号等替换成英文逗号的正则表达式
- Codeforces Round #604 (Div. 2)D(构造)
- Go常量
- springboot+mybatis报错Invalid bound statement (not found)
- 6_9 天平(UVa839)<;二叉树的DFS>;
- P1478
- pycharm连接数据库报错Access denied for user &#39;root&#39;@&#39;localhost&#39; (using password:YES),以及wampserver 2/3个服务器正在运行 问题
- 《记一次Linux被入侵全过程》阅读笔记
- 《【架构设计之道】这一波优雅的操作,会把你的中间件系统架构带到另一个Level》阅读笔记