modelSupportsTTS method

Future<bool> modelSupportsTTS(
  1. String modelId
)

Check if a model supports TTS

Implementation

Future<bool> modelSupportsTTS(String modelId) async {
  final modelInfo = await getModelInfo(modelId);
  if (modelInfo == null) return false;

  final canDoTTS = modelInfo['can_do_text_to_speech'] as bool?;
  return canDoTTS ?? false;
}