Browse Source

Merge branch 'new_dev' of https://github.com/deepcloud2048/deep_voice into new_dev

weicu
liwei1dao 1 year ago
parent
commit
dd837d1445
  1. 4
      lib/modules/translation/views/translation_view.dart

4
lib/modules/translation/views/translation_view.dart

@ -1073,6 +1073,7 @@ class TranslationView extends GetView<TranslationController> {
Colors.blue, Colors.blue,
onTap: () async { onTap: () async {
Get.back(); Get.back();
await controller.stopAll();
await controller.changeTranslationMode('simultaneous'); await controller.changeTranslationMode('simultaneous');
await controller.startRecognition(); await controller.startRecognition();
}, },
@ -1084,6 +1085,7 @@ class TranslationView extends GetView<TranslationController> {
Colors.green, Colors.green,
onTap: () async { onTap: () async {
Get.back(); Get.back();
await controller.stopAll();
await controller.changeTranslationMode('faceToFace'); await controller.changeTranslationMode('faceToFace');
await controller.startRecognition(); await controller.startRecognition();
}, },
@ -1096,6 +1098,7 @@ class TranslationView extends GetView<TranslationController> {
onTap: controller.bleManager.isConnected onTap: controller.bleManager.isConnected
? () async { ? () async {
Get.back(); Get.back();
await controller.stopAll();
await controller.changeTranslationMode('audioVideo'); await controller.changeTranslationMode('audioVideo');
await controller.startRecognition(); await controller.startRecognition();
} }
@ -1109,6 +1112,7 @@ class TranslationView extends GetView<TranslationController> {
onTap: controller.bleManager.isConnected onTap: controller.bleManager.isConnected
? () async { ? () async {
Get.back(); Get.back();
await controller.stopAll();
await controller.changeTranslationMode('call'); await controller.changeTranslationMode('call');
await controller.startRecognition(); await controller.startRecognition();
} }

Loading…
Cancel
Save