|
|
@ -102,9 +102,6 @@ public class ImContentServiceImpl extends ServiceImpl<ImContentMapper, ImContent |
|
|
|
if (voiceFile.delete()) { |
|
|
|
if (voiceFile.delete()) { |
|
|
|
System.out.println("已成功删除临时文件!"); |
|
|
|
System.out.println("已成功删除临时文件!"); |
|
|
|
} |
|
|
|
} |
|
|
|
if (StrUtil.isBlank(transcriptionResult.getText())) { |
|
|
|
|
|
|
|
throw new CheckedException("Ai语音转文字为空解析失败!"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
imContent.setContent(transcriptionResult.getText()); |
|
|
|
imContent.setContent(transcriptionResult.getText()); |
|
|
|
ImContent content = askChatCompletion(imContent); |
|
|
|
ImContent content = askChatCompletion(imContent); |
|
|
|