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.
26 lines
764 B
26 lines
764 B
import 'package:get/get.dart';
|
|
import '../controllers/translation_controller.dart';
|
|
import '../../../data/services/azure_asr_service.dart';
|
|
import '../../../data/services/volcano_translation_service.dart';
|
|
import '../../../data/services/volcano_tts_service.dart';
|
|
|
|
class TranslationBinding implements Bindings {
|
|
@override
|
|
void dependencies() {
|
|
// Ensure services are registered
|
|
if (!Get.isRegistered<AzureAsrService>()) {
|
|
Get.put(AzureAsrService());
|
|
}
|
|
|
|
if (!Get.isRegistered<VolcanoTranslationService>()) {
|
|
Get.put(VolcanoTranslationService());
|
|
}
|
|
|
|
if (!Get.isRegistered<VolcanoTtsService>()) {
|
|
Get.put(VolcanoTtsService());
|
|
}
|
|
|
|
// Register the controller
|
|
Get.put(TranslationController());
|
|
}
|
|
}
|