flutter_gemma_speech library

On-device speech for flutter_gemma (STT now; TTS/voice later), via the LiteRT C API + dart:ffi.

Opt-in. Add to pubspec.yaml and pass an instance to FlutterGemma.initialize(sttBackends: [LiteRtSttBackend()]).

import 'package:flutter_gemma/flutter_gemma.dart';
import 'package:flutter_gemma_speech/flutter_gemma_speech.dart';

await FlutterGemma.initialize(
  sttBackends: [LiteRtSttBackend()],
);

Classes

LiteRtSttBackend
Web stub for LiteRtSttBackend — the STT web arm is a follow-on (see the design spec's "Out of scope"). Registers cleanly so initialize doesn't break on web, but building a model throws.