|
@@ -286,14 +286,14 @@ public class TCallRecordServiceImpl implements ITCallRecordService
|
|
|
log.info("录音文件识别请求成功,task_id: " + taskId);
|
|
|
}
|
|
|
else {
|
|
|
-// log.error("录音文件识别请求失败!");
|
|
|
+ log.error("录音文件识别请求失败!");
|
|
|
// return "";
|
|
|
throw new ServiceException("录音文件识别请求失败!");
|
|
|
}
|
|
|
// 第二步:根据任务ID轮询识别结果。
|
|
|
String result = file2Text.getFileTransResult(taskId);
|
|
|
if (result != null) {
|
|
|
-// log.info("录音文件识别结果查询成功:" + result);
|
|
|
+ log.info("录音文件识别结果查询成功:" + result);
|
|
|
// Ele ele = JSON.parseObject(JSON.parseArray(JSON.parseObject(result).get("Sentences").toString()).get(0).toString(), Ele.class);
|
|
|
// log.info(JSON.toJSONString(ele));
|
|
|
// String text = ele.getText();
|