From 36fe506168a70357cb5e859bcf49fb50c4027abe Mon Sep 17 00:00:00 2001 From: fdp <1286779656@qq.com> Date: Fri, 11 Jul 2025 10:30:22 +0800 Subject: [PATCH] 1 --- lib/modules/meeting/controllers/meeting_controller.dart | 1 - .../Sources/agent_service/AgentServiceImpl.swift | 7 +++++-- .../Sources/agent_service/AgentServicePlugin.swift | 6 +++++- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/lib/modules/meeting/controllers/meeting_controller.dart b/lib/modules/meeting/controllers/meeting_controller.dart index 363383c13..dc5acfd37 100644 --- a/lib/modules/meeting/controllers/meeting_controller.dart +++ b/lib/modules/meeting/controllers/meeting_controller.dart @@ -319,7 +319,6 @@ class MeetingController extends GetxController { } else { FilePickerResult? result = await FilePicker.platform.pickFiles( withData: true, - type: FileType.audio, ); if (result != null) { PlatformFile file = result.files.first; diff --git a/local_plugins/agent_service/ios/agent_service/Sources/agent_service/AgentServiceImpl.swift b/local_plugins/agent_service/ios/agent_service/Sources/agent_service/AgentServiceImpl.swift index 0dc9119f6..251984c27 100644 --- a/local_plugins/agent_service/ios/agent_service/Sources/agent_service/AgentServiceImpl.swift +++ b/local_plugins/agent_service/ios/agent_service/Sources/agent_service/AgentServiceImpl.swift @@ -290,8 +290,7 @@ class AgentServiceImpl: NSObject { startIdleCheck() } } - - func startRecognition(useBle: Bool = false) -> Bool { + func startRecognition(useBle: Bool = false) -> Bool { if !isInitialized { sendError("服务未初始化", code: "NOT_INITIALIZED") return false @@ -326,6 +325,10 @@ class AgentServiceImpl: NSObject { return true } + func recognizeCallback(useBle: Bool = false) -> Bool { + + return true + } func stopRecognition() -> Bool { if !isRecognizing { diff --git a/local_plugins/agent_service/ios/agent_service/Sources/agent_service/AgentServicePlugin.swift b/local_plugins/agent_service/ios/agent_service/Sources/agent_service/AgentServicePlugin.swift index 7c3b415f7..e3ad6b106 100644 --- a/local_plugins/agent_service/ios/agent_service/Sources/agent_service/AgentServicePlugin.swift +++ b/local_plugins/agent_service/ios/agent_service/Sources/agent_service/AgentServicePlugin.swift @@ -43,6 +43,10 @@ public class AgentServicePlugin: NSObject, FlutterPlugin { case "startConversation": impl.startRecognition() result(true) + + case "recognizeCallback": + impl.recognizeCallback() + result(true) case "stopConversation": impl.stopRecognition() @@ -157,4 +161,4 @@ extension AgentServiceEventHandler: AgentServiceListener { } } } -} \ No newline at end of file +}