添加了在调用recognizeCallback之前停止当前会话的逻辑,以避免潜在的冲突
@ -1076,6 +1076,8 @@ class AgentController extends GetxController {
// }
try {
await AgentService.stopConversation();
await AgentService.recognizeCallback();
if (_bluetoothManager.currentDeviceRx.value != null) {
// await AgentService.restoreOriginalAudioState();