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
void onClose() {
stopRecognition();
stopAll();
_recognitionSubscription?.cancel();
_recognitionSubscription = null;
_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()
result(success)
case "stop":
case "stopSpeaking":
let success = azureTtsHelper.stop()
result(success)

2
pubspec.yaml

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

Loading…
Cancel
Save