installStt static method

SttInstallationBuilder installStt()

Start building an STT (speech-to-text) model installation

Returns a type-safe builder for installing STT models (requires model + tokenizer + SttInstallationBuilder.ofType). The model will be automatically set as the active STT model after installation.

Example:

await FlutterGemma.installStt()
  .modelFromNetwork('https://example.com/model.tflite', token: 'hf_...')
  .tokenizerFromNetwork('https://example.com/tokenizer.json', token: 'hf_...')
  .ofType(SttModelType.moonshine)
  .withModelProgress((p) => print('Model: $p%'))
  .withTokenizerProgress((p) => print('Tokenizer: $p%'))
  .install();

Implementation

static SttInstallationBuilder installStt() {
  return SttInstallationBuilder();
}