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.

25 lines
855 B

import 'package:get/get.dart';
import '../controllers/volcano_tts_test_controller.dart';
import '../controllers/azure_asr_test_controller.dart';
import '../../../data/services/volcano_tts_api_service.dart';
class VolcanoTtsTestBinding extends Bindings {
@override
void dependencies() {
// Make sure the VolcanoTtsApiService is registered
if (!Get.isRegistered<VolcanoTtsApiService>()) {
Get.put(VolcanoTtsApiService(), permanent: true);
}
// Use put instead of lazyPut to ensure the controller is created immediately
Get.put<VolcanoTtsTestController>(VolcanoTtsTestController());
}
}
class AzureAsrTestBinding extends Bindings {
@override
void dependencies() {
// Use put instead of lazyPut to ensure the controller is created immediately
Get.put<AzureAsrTestController>(AzureAsrTestController());
}
}