Sfoglia il codice sorgente

测试tts的录音转换

王苗苗 1 settimana fa
parent
commit
762177d171

+ 2 - 1
slibra-system/src/main/java/com/slibra/business/service/impl/File2Text.java

@@ -161,7 +161,8 @@ public class File2Text {
         final String accessKeySecret = "KhmxTd14SUcXafpFk5yofA43FoeM99";
         final String appKey = "OKt6jogp6fRjHQVp";
 //        String fileLink = "https://gw.alipayobjects.com/os/bmw-prod/0574ee2e-f494-45a5-820f-63aee583045a.wav";
-        String fileLink = "https://static.fuxicarbon.com/test/234527-I-0168-15765398611-S.wav";
+//        String fileLink = "https://static.fuxicarbon.com/test/234527-I-0168-15765398611-S.wav";
+        String fileLink = "http://192.168.100.159/voice/005cad2d-3626-477c-8b95-07b68f339630.wav";
 //        String fileLink = "https://www.w3school.com.cn/i/audio/song.mp3";
         File2Text demo = new File2Text(accessKeyId, accessKeySecret);
         // 第一步:提交录音文件识别请求,获取任务ID用于后续的识别结果轮询。