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.
27 lines
687 B
27 lines
687 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);
|
|
}
|
|
|
|
Get.lazyPut<TtsTestController>(
|
|
() => TtsTestController(),
|
|
);
|
|
}
|
|
}
|
|
|
|
class AsrTestBinding extends Bindings {
|
|
@override
|
|
void dependencies() {
|
|
Get.lazyPut<AsrTestController>(
|
|
() => AsrTestController(),
|
|
);
|
|
}
|
|
}
|