|
|
|
@ -498,7 +498,7 @@ class AgentController extends GetxController with WidgetsBindingObserver { |
|
|
|
switch (event.type) { |
|
|
|
case AgentServiceEventType.recognitionStarted: |
|
|
|
isListening.value = true; |
|
|
|
isTextInputMode.value = false; |
|
|
|
//isTextInputMode.value = false; |
|
|
|
Logger.i(TAG, '订阅代理服务事件识别开始'); |
|
|
|
// isTextInputMode.refresh(); |
|
|
|
// 只标记识别开始,不添加消息 |
|
|
|
@ -937,7 +937,7 @@ class AgentController extends GetxController with WidgetsBindingObserver { |
|
|
|
|
|
|
|
// 注意:这里不需要调用startVoiceInput(),因为原生层已经启动了语音识别 |
|
|
|
// 我们只需要同步Flutter层的状态 |
|
|
|
isTextInputMode.value = false; |
|
|
|
//isTextInputMode.value = false; |
|
|
|
|
|
|
|
Logger.i(TAG, 'BLE唤醒状态已设置,等待原生层语音识别结果'); |
|
|
|
} |
|
|
|
|