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
805 B
25 lines
805 B
import 'package:get/get.dart';
|
|
import '../controllers/tts_test_controller.dart';
|
|
import '../controllers/asr_test_controller.dart';
|
|
import '../../../data/services/volcano_tts_api_service.dart';
|
|
|
|
class TtsTestBinding 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<TtsTestController>(TtsTestController());
|
|
}
|
|
}
|
|
|
|
class AsrTestBinding extends Bindings {
|
|
@override
|
|
void dependencies() {
|
|
// Use put instead of lazyPut to ensure the controller is created immediately
|
|
Get.put<AsrTestController>(AsrTestController());
|
|
}
|
|
}
|