瀏覽代碼

新增通过通话记录ID将录音转换为文本的接口

王苗苗 1 周之前
父節點
當前提交
38c00f31bd

+ 3 - 0
slibra-system/src/main/java/com/slibra/business/service/impl/TCallRecordServiceImpl.java

@@ -157,6 +157,9 @@ public class TCallRecordServiceImpl implements ITCallRecordService
         String url = tCallRecord.getUrl();
         if(StringUtils.isBlank(url))
             throw new ServiceException("此次通话记录,未记录录音文件,无法转换");
+        Long hasParsed = tCallRecord.getHasParsed();
+        if(!Objects.isNull(hasParsed) && 1== hasParsed)
+            throw new ServiceException("此次通话记录已经做过转换了,无需重复转换");
         /*final String accessKeyId = "LTAI5tQ2HmiHCygZkt5BYrYR";
         final String accessKeySecret = "KhmxTd14SUcXafpFk5yofA43FoeM99";
         final String appKey = "OKt6jogp6fRjHQVp";*/