tasks-audio package
Stay organized with collections
Save and categorize content based on your preferences.
Classes
| Class |
Description |
| AudioClassifier |
Performs audio classification. |
| AudioTranscriber |
MediaPipe Audio Task that performs automatic speech recognition (ASR) in unary and streaming modes via WASM SIMD or WebGPU. |
| FilesetResolver |
Resolves the files required for the MediaPipe Task APIs.The returned filesets require that the Wasm files are published without renaming. If this is not possible, you can invoke the MediaPipe Tasks APIs using a manually created WasmFileset. |
| TextToSpeech |
MediaPipe Audio Task that performs neural text-to-speech synthesis in unary and streaming modes via WASM SIMD or WebGPU. |
| TextToSpeechStream |
Active streaming synthesis session returned by TextToSpeech.synthesizeStream(). Supports both pull-based readNext() and for await (const chunk of stream) iteration, as well as incremental text input via pushText() and finishInput(). |
Interfaces
Type Aliases
AudioTranscriberModelArchitecture
Model architecture family for AudioTranscriber.
Signature:
export declare type AudioTranscriberModelArchitecture = "AUTO" | "OMNI" | "TINY_GEMMA";
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-06 UTC.
[null,null,["Last updated 2026-11-06 UTC."],[],[]]