VoiceOutput: {
    accent?: string;
    context?: string;
    description?: string;
    display_name?: string;
    expire_time?: string;
    gender?: string;
    id?: string;
    key?: string;
    language_code?: string;
    model?: string;
    persona?: string;
    pitch?: Pitch;
    prompted?: PromptedVoice;
    region_code?: string;
    sample_audio?: AudioData;
    type: VoiceType;
    usage?: Usage;
}

A voice resource representing either a custom voice that you create or a

Type declaration

  • Optionalaccent?: string

    Optional. Regional accent descriptor (e.g. "American", "British").

  • Optionalcontext?: string

    Optional. Optimal usage context or domain (e.g. "Conversational",

    "Audiobook", "News").

  • Optionaldescription?: string

    Optional. Descriptive summary of vocal timbre, personality, and tone.

  • Optionaldisplay_name?: string

    Optional. User-provided display name for a stored voice (store = true),

    or the catalog name for a prebuilt voice.

  • Optionalexpire_time?: string

    Output only. The timestamp at which a custom stored voice (store = true)

    or replicated voice key (store = false) expires. For custom stored voices (store = true), this expiration time is extended when the voice is used for speech synthesis or as a base_voice when creating another voice. Unset for prebuilt catalog voices ("prebuilt"), which do not expire.

  • Optionalgender?: string

    Optional. Perceived voice gender presentation (e.g. "female", "male",

    "neutral").

  • Optionalid?: string

    Output only. The unique identifier of the voice.

    • For Google-managed custom voices (store = true), this is a generated ID with prefix voice_ (for example, voice_abc123def456). Pass voices/{id} as the name when getting or deleting the voice, and pass {id} directly to SpeechConfig.voice_config.voice (or SpeechConfig.voice) during speech synthesis.
    • For prebuilt catalog voices ("prebuilt" returned when listing voices), this is the speaker name (for example, Puck or Charon).
    • Unset when the voice is created with store = false.
  • Optionalkey?: string

    Output only. The client-managed voice replication key (with prefix

    voicekey_). Returned only when creating a voice with type "replicated" and store false. Pass this key to SpeechConfig.voice_config.voice (or SpeechConfig.voice) during speech synthesis.

  • Optionallanguage_code?: string

    Optional. Primary BCP-47 language tag (e.g. "en-US", "fr-FR").

  • Optionalmodel?: string

    Optional. The model used to design or replicate the voice.

    If omitted when creating a voice, defaults to the latest supported voice design model. Returned when creating, getting, or listing custom voices ("prompted" and "replicated"); unset for "prebuilt" voices. Created voices can be synthesized across any supported TTS synthesis model.

  • Optionalpersona?: string

    Optional. Intended persona or character archetype (e.g. "Warm, Friendly",

    "Narrator").

  • Optionalpitch?: Pitch
  • Optionalprompted?: PromptedVoice

    Parameters for prompted voice generation.

    Required when creating a voice with type "prompted". Returned when creating, getting, or listing prompted voices.

  • Optionalregion_code?: string

    Optional. ISO 3166-1 alpha-2 or UN M.49 geographic region code (e.g. "US",

    "GB", "001").

  • Optionalsample_audio?: AudioData

    Audio payload used for voice creation.

  • type: VoiceType
  • Optionalusage?: Usage

    Statistics on the interaction request's token usage.

prebuilt system voice (returned when listing voices).