zhoufan месяцев назад: 7
Родитель
Сommit
d46159711a

+ 7 - 1
midware-service/src/main/java/midware/service/eslclient/EslEventListenerAi.java

106
         String zw = text.replaceAll("[^\\u4e00-\\u9fa5]", "");
106
         String zw = text.replaceAll("[^\\u4e00-\\u9fa5]", "");
107
         if (text.contains("人工")) {//人工
107
         if (text.contains("人工")) {//人工
108
             stopAsr(chanId, eslClientService);
108
             stopAsr(chanId, eslClientService);
109
-            eslClientService.transferQueue(chanId);
109
+            eslClientService.playBack("/home/wav/zyyt/转人工.wav", chanId);
110
+            try {
111
+                Thread.sleep(3000);
112
+                eslClientService.transferQueue(chanId);
113
+            } catch (InterruptedException e) {
114
+                throw new RuntimeException(e);
115
+            }
110
         } else if (agains.contains(zw)) {//重听
116
         } else if (agains.contains(zw)) {//重听
111
             eslClientService.playBack(EslCommon.getSessionById(chanId).getVideoPath(), chanId);
117
             eslClientService.playBack(EslCommon.getSessionById(chanId).getVideoPath(), chanId);
112
             try {
118
             try {