diff --git a/src/main/java/club/joylink/rtss/services/IVoiceService.java b/src/main/java/club/joylink/rtss/services/IVoiceService.java index 878853b21..38a6202da 100644 --- a/src/main/java/club/joylink/rtss/services/IVoiceService.java +++ b/src/main/java/club/joylink/rtss/services/IVoiceService.java @@ -80,7 +80,7 @@ public interface IVoiceService { os.close(); } if (saveFile != null) { -// saveFile.delete(); + saveFile.delete(); } } } diff --git a/src/main/java/club/joylink/rtss/simulation/cbtc/conversation/ConversationManagerService.java b/src/main/java/club/joylink/rtss/simulation/cbtc/conversation/ConversationManagerService.java index 472e0d610..153c5d34a 100644 --- a/src/main/java/club/joylink/rtss/simulation/cbtc/conversation/ConversationManagerService.java +++ b/src/main/java/club/joylink/rtss/simulation/cbtc/conversation/ConversationManagerService.java @@ -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());