getRecommendedSTTModels method
Get recommended STT models
Implementation
Future<List<String>> getRecommendedSTTModels() async {
final models = await getModels();
final sttModels = <String>[];
for (final model in models) {
final canDoSTT = model['can_do_voice_conversion'] as bool?;
if (canDoSTT == true) {
final modelId = model['model_id'] as String?;
if (modelId != null) {
sttModels.add(modelId);
}
}
}
return sttModels;
}