You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
591 B
18 lines
591 B
import 'package:get/get.dart';
|
|
import '../controllers/translation_controller.dart';
|
|
import '../../../data/services/azure_asr_service.dart';
|
|
import '../../../data/services/azure_tts_service.dart';
|
|
import '../../../data/services/volcano_translation_service.dart';
|
|
|
|
class TranslationBinding implements Bindings {
|
|
@override
|
|
void dependencies() {
|
|
// 注册服务
|
|
Get.put(AzureAsrService(), permanent: true);
|
|
Get.put(AzureTtsService(), permanent: true);
|
|
Get.put(VolcanoTranslationService(), permanent: true);
|
|
|
|
// 注册控制器
|
|
Get.put(TranslationController());
|
|
}
|
|
}
|