Commit 380a87d9 authored by helinlin's avatar helinlin

添加阿里云音频识别demo

parent 54766f8a
...@@ -30,8 +30,10 @@ public class SpeechTranscriberDemo { ...@@ -30,8 +30,10 @@ public class SpeechTranscriberDemo {
public static void main(String[] args) { public static void main(String[] args) {
//本案例使用本地文件模拟发送实时流数据。您在实际使用时,可以实时采集或接收语音流并发送到ASR服务端。 //本案例使用本地文件模拟发送实时流数据。您在实际使用时,可以实时采集或接收语音流并发送到ASR服务端。
String fileLink = "https://gw.alipayobjects.com/os/bmw-prod/0574ee2e-f494-45a5-820f-63aee583045a.wav";
//将上面fileLink文件下载到本地后,替换filepath为本地地址测试
String filepath = "D:\\ffmpeg-4.4-full_build-shared\\bin\\test1.wav"; String filepath = "D:\\ffmpeg-4.4-full_build-shared\\bin\\test1.wav";
SpeechTranscriberDemo transcriberDemo = null; SpeechTranscriberDemo transcriberDemo;
try { try {
transcriberDemo = new SpeechTranscriberDemo(new File(filepath)); transcriberDemo = new SpeechTranscriberDemo(new File(filepath));
transcriberDemo.process(); transcriberDemo.process();
......
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