Browse Source

修复退出不打断问题

weicu
fdp 1 year ago
parent
commit
3339fb84b6
  1. 2
      lib/modules/translation/controllers/translation_controller.dart
  2. 2
      local_plugins/azure_speech/ios/azure_speech/Sources/azure_speech/AzureSpeechPlugin.swift
  3. 2
      pubspec.yaml

2
lib/modules/translation/controllers/translation_controller.dart

@ -367,7 +367,7 @@ class TranslationController extends GetxController {
@override @override
void onClose() { void onClose() {
stopRecognition(); stopAll();
_recognitionSubscription?.cancel(); _recognitionSubscription?.cancel();
_recognitionSubscription = null; _recognitionSubscription = null;
_voiceInteractionSubscription?.cancel(); _voiceInteractionSubscription?.cancel();

2
local_plugins/azure_speech/ios/azure_speech/Sources/azure_speech/AzureSpeechPlugin.swift

@ -359,7 +359,7 @@ import os.log
let success = azureTtsHelper.flushStream() let success = azureTtsHelper.flushStream()
result(success) result(success)
case "stop": case "stopSpeaking":
let success = azureTtsHelper.stop() let success = azureTtsHelper.stop()
result(success) result(success)

2
pubspec.yaml

@ -55,7 +55,7 @@ dependencies:
uuid: ^4.3.3 uuid: ^4.3.3
record: ^5.2.1 record: ^5.2.1
share_plus: ^11.0.0 share_plus: ^11.0.0
image_picker: ^1.1. image_picker: ^1.1.2
audio_waveforms: ^1.3.0 audio_waveforms: ^1.3.0
font_awesome_flutter: ^10.8.0 font_awesome_flutter: ^10.8.0
lottie: ^3.3.1 lottie: ^3.3.1

Loading…
Cancel
Save