Commit e033264c authored by helinlin's avatar helinlin

添加阿里云音频识别demo

parent 8c96d81b
......@@ -71,4 +71,4 @@ public class SpeechFlashRecognizer {
headers.put("Content-Type", "application/octet-stream");
AppOkHttpClient.sendPostFile(request, headers, this.speechFile, this.callback);
}
}
\ No newline at end of file
}
......@@ -3,7 +3,6 @@ package com.yeejoin.amos.speech;
import com.alibaba.nls.client.protocol.InputFormatEnum;
import com.alibaba.nls.client.protocol.SampleRateEnum;
import com.alibaba.nls.client.protocol.asr.SpeechTranscriberListener;
import com.alibaba.nls.client.protocol.asr.SpeechTranscriberResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
......
......@@ -19,7 +19,7 @@ public class SpeechApplicationTests {
private static final Logger logger = LoggerFactory.getLogger(SpeechApplicationTests.class);
/**
* 实时语音识别使用示例
* 实时语音识别使用示例(提交文件流,免费可测试)
*/
@Test
void testSpeechTranscriber() {
......@@ -119,7 +119,7 @@ public class SpeechApplicationTests {
}
/**
* 语音文件识别极速版使用示例
* 语音文件识别极速版使用示例(提交文件,收费无法测试)
*/
@Test
void testSpeechFlashRecognizer() {
......@@ -144,7 +144,7 @@ public class SpeechApplicationTests {
}
/**
* 语音文件识别普通版使用示例
* 语音文件识别普通版使用示例(提交文件地址,免费可测试)
*/
@Test
void testSpeechRecognizer() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment