hasActiveTts static method

bool hasActiveTts()

Check if there's an active TTS model

Returns true if a TTS model has been installed and set as active.

Implementation

static bool hasActiveTts() {
  final manager = FlutterGemmaPlugin.instance.modelManager;
  return manager.activeTtsModel is TtsModelSpec;
}