Revert "Revert "删除表sql""

语音识别改用百度接口
This commit is contained in:
DU 2021-04-12 11:02:42 +08:00
parent cc0a01aebb
commit 80349d14c0
2 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ public interface IVoiceService {
os.close();
}
if (saveFile != null) {
// saveFile.delete();
saveFile.delete();
}
}
}

View File

@ -255,7 +255,7 @@ public class ConversationManagerService {
Simulation simulation = this.groupSimulationCache.getSimulationByGroup(group);
Conversation conversation = simulation.getSimulationConversationById(conversationId);
SimulationMember member = simulation.getSimulationMemberByUserId(userVO.getId());
VoiceRecognitionResult recognitionResult = this.iVoiceService.huaweiVoiceRecognition(file, "");
VoiceRecognitionResult recognitionResult = this.iVoiceService.voiceRecognition(file, "");
String upperCaseResult = recognitionResult.getResult().toUpperCase();
String handledContent = this.simulationVoiceHandler.handle(upperCaseResult);
this.chat(simulation, conversation, member, handledContent, recognitionResult.getFilePath());