AudioTranscriberOptions class final

Options for Google's Audio Transcriber.

Google's task reads its model from a file, so it takes a pinned model or a modelPath, not bytes. In a browser, a modelPath URL keeps a model as large as Parakeet out of the page's memory: a pinned model passes through it as bytes.

Inheritance

Constructors

AudioTranscriberOptions({DownloadAsset? model, String? modelPath, Delegate delegate = Delegate.cpu, int sampleRateHz = 16000, bool enableInterimResults = false, TranscriberModelArchitecture modelArchitecture = TranscriberModelArchitecture.auto, String? prompt, String? cacheDirectory})
Defaults match Google's: 16 kHz input, final results only, the model's own architecture and prompt, no compile cache.

Properties

cacheDirectory → String?
A directory where Google's runtime caches compiled model artifacts between runs. Null, the default, passes no directory, which Google's Python documents as turning the disk cache off; Parakeet wrote no cache with it on a Mac, on the CPU or the GPU, but Google's Text to Speech does with Kokoro, so pass ':nocache', as Google's guides say, to be sure caching is off. Browsers ignore it: Google's 1.2.3 browser runtime has no cache directory option.
final
delegate → Delegate
The processor the task runs on, fixed until it is disposed.
finalinherited
enableInterimResults → bool
Whether a stream also returns segments that later audio may revise.
final
hashCode → int
The hash code for this object.
no setterinherited
model → DownloadAsset?
Pinned official model: the app's bundled copy, or a download when ModelStore.allowDownloads is true. Verified against its SHA-256.
finalinherited
modelArchitecture → TranscriberModelArchitecture
The model family Google routes the model to.
final
modelBytes → Uint8List?
Owned, read-only model bytes. Null when the model is a file.
no setterinherited
modelPath → String?
The model's location, as Google's APIs read it: a file on native platforms and a URL, resolved against the page, in browsers. Null when the model is in memory.
no setterinherited
prompt → String?
A decoding prompt for generative models; null keeps the model's.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sampleRateHz → int
The rate of the audio every AudioData passed to transcribe has. Google resamples it to the model's. 0 means 16000, as in Google's API.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited