语音识别ASRSDK调用问题
- //直接上代码,下面的代码是从阿里云提供的JAVA SDK中拿来的,有三个参数:appKey、ak_id、ak_secret。在阿里云控制台只有Access Key Id和Access Key Secret。
- 这里的appkey 是从哪能获取到?
- public static void main(String[] args) {
- [backcolor=transparent] [backcolor=transparent]NlsDemo[backcolor=transparent] lun [backcolor=transparent]=[backcolor=transparent] [backcolor=transparent]new[backcolor=transparent] [backcolor=transparent]NlsDemo[backcolor=transparent]();
- [backcolor=transparent] logger[backcolor=transparent].[backcolor=transparent]info[backcolor=transparent]([backcolor=transparent]"start ...."[backcolor=transparent]);
- if (args.length < 4) {
- [backcolor=transparent] logger[backcolor=transparent].[backcolor=transparent]debug[backcolor=transparent]([backcolor=transparent]"NlsDemo <app-key> <Id> <Secret> <opu-file>"[backcolor=transparent]);
- System.exit(-1);
- [backcolor=transparent] [backcolor=transparent]}
- lun.appKey = args[0];
- [backcolor=transparent] lun[backcolor=transparent].[backcolor=transparent]ak_id [backcolor=transparent]=[backcolor=transparent] args[backcolor=transparent][[backcolor=transparent]1[backcolor=transparent]];
- lun.ak_secret = args[2];
- [backcolor=transparent] lun[backcolor=transparent].[backcolor=transparent]filePath [backcolor=transparent]=[backcolor=transparent] args[backcolor=transparent][[backcolor=transparent]3[backcolor=transparent]];
- lun.start();
- [backcolor=transparent] lun[backcolor=transparent].[backcolor=transparent]hearIt[backcolor=transparent]();
- lun.shutDown();
- [backcolor=transparent] [backcolor=transparent]}
收起
法兰克福三
2017-08-18 10:01:50
4781
0
1
条回答
写回答
取消
提交回答
-
appkey应该是在语音识别的控制台里有提供
2017-08-19 12:27:59