uninstallTts static method

Future<void> uninstallTts()

Uninstall the active TTS model — deletes all its files and clears the active-TTS identity. No-op if none active.

Implementation

static Future<void> uninstallTts() async {
  final manager = FlutterGemmaPlugin.instance.modelManager;
  final spec = manager.activeTtsModel;
  if (spec == null) return;
  await manager.deleteModel(spec);
  await manager.clearActiveTtsIdentity();
}