Send feedback
mp.tasks.audio.AudioTranscriberOptions
Stay organized with collections
Save and categorize content based on your preferences.
Options for MediaPipe AudioTranscriber task.
mp . tasks . audio . AudioTranscriberOptions (
base_options : mp . tasks . BaseOptions ,
sample_rate_hz : int = 16000 ,
enable_interim_results : bool = False ,
model_architecture : mp . tasks . audio . ModelArchitecture = ModelArchitecture . AUTO ,
prompt : Optional [ str ] = None ,
cache_dir : Optional [ str ] = None
)
Attributes
base_options
Base options for the MediaPipe task (model path and delegate).
sample_rate_hz
Input PCM audio sample rate in Hz.
enable_interim_results
Whether to emit interim hypotheses during streaming.
model_architecture
ASR model family routing (AUTO, OMNI, or
TINY_GEMMA).
prompt
Optional decoding prompt override; None uses the model default.
cache_dir
Optional directory path for compiled weight/program caches;
None disables disk caching.
Methods
__eq__
__eq__ (
other
)
Return self==value.
Class Variables
cache_dir
None
enable_interim_results
False
model_architecture
<ModelArchitecture.AUTO: 0>
prompt
None
sample_rate_hz
16000
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-11-05 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-11-05 UTC."],[],[]]