Revert "Revert "删除表sql""
语音识别改用百度接口
This commit is contained in:
parent
cc0a01aebb
commit
80349d14c0
@ -80,7 +80,7 @@ public interface IVoiceService {
|
|||||||
os.close();
|
os.close();
|
||||||
}
|
}
|
||||||
if (saveFile != null) {
|
if (saveFile != null) {
|
||||||
// saveFile.delete();
|
saveFile.delete();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -255,7 +255,7 @@ public class ConversationManagerService {
|
|||||||
Simulation simulation = this.groupSimulationCache.getSimulationByGroup(group);
|
Simulation simulation = this.groupSimulationCache.getSimulationByGroup(group);
|
||||||
Conversation conversation = simulation.getSimulationConversationById(conversationId);
|
Conversation conversation = simulation.getSimulationConversationById(conversationId);
|
||||||
SimulationMember member = simulation.getSimulationMemberByUserId(userVO.getId());
|
SimulationMember member = simulation.getSimulationMemberByUserId(userVO.getId());
|
||||||
VoiceRecognitionResult recognitionResult = this.iVoiceService.huaweiVoiceRecognition(file, "");
|
VoiceRecognitionResult recognitionResult = this.iVoiceService.voiceRecognition(file, "");
|
||||||
String upperCaseResult = recognitionResult.getResult().toUpperCase();
|
String upperCaseResult = recognitionResult.getResult().toUpperCase();
|
||||||
String handledContent = this.simulationVoiceHandler.handle(upperCaseResult);
|
String handledContent = this.simulationVoiceHandler.handle(upperCaseResult);
|
||||||
this.chat(simulation, conversation, member, handledContent, recognitionResult.getFilePath());
|
this.chat(simulation, conversation, member, handledContent, recognitionResult.getFilePath());
|
||||||
|
Loading…
Reference in New Issue
Block a user