installTts static method
Start building a TTS (text-to-speech) model installation
Returns a type-safe builder for installing TTS models (a bundle of files, see TtsInstallationBuilder.ofType). The model will be automatically set as the active TTS model after installation.
Example:
await FlutterGemma.installTts()
.fromNetwork('https://example.com/matcha/', token: 'hf_...')
.ofType(TtsModelType.matcha)
.withProgress((p) => print('$p%'))
.install();
Implementation
static TtsInstallationBuilder installTts() {
return TtsInstallationBuilder();
}