百度语音离在线语音识别Demo
Demo使用说明
-
Demo默认即支持在线识别
-
要支持离线识别,请进行如下操作:
- 到百度语音识别页面下载离线资源包(s_1、s_2_InputMethod、s_2_Navi),并存放于/sdcard/easr/目录下;
- 到百度语音识别应用管理页面下载一份临时授权文件,并存放于/sdcard/easr/目录下,由于临时授权文件每天都会更新,Demo中指定的临时授权文件名称为“temp_license_2015-05-27”,需要确认新下载的license文件名称与代码中保持一致;
- 在Demo的设置页面中设置:采样率->16000、垂直领域->100014;
- 返回主界面点击[开始]按钮,说出“打电话给刘德华”即可体验离线语音识别。
注意事项
- 临时授权文件仅用于开发测试,使用临时授权文件测试离线识别通过之后,建议删除临时授权文件及设置临时授权文件路径的代码,以免过期之后影响使用;
- 更多问题请参考常见问题。