mp.tasks.audio.VoiceInfo
Stay organized with collections
Save and categorize content based on your preferences.
Metadata for a speaker voice available in a TTS model bundle.
mp.tasks.audio.VoiceInfo(
voice_id: str,
display_name: str,
locale: str,
sample_rate_hz: int,
is_downloaded: bool = True
)
Attributes |
voice_id
|
Unique identifier of the voice (e.g. af_heart).
|
display_name
|
Human-readable display name of the voice.
|
locale
|
BCP-47 locale tag supported by the voice (e.g. en-US).
|
sample_rate_hz
|
Native output PCM sample rate in Hz.
|
is_downloaded
|
Whether the voice weights are locally resident in the bundle.
|
Methods
__eq__
__eq__(
other
)
Return self==value.
Class Variables |
|
is_downloaded
|
True
|
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.
[null,null,["Last updated 2026-11-05 UTC."],[],[]]