interface CreateVoiceRequest {
    store?: boolean;
    voice: VoiceInput;
}

Hierarchy

  • CreateVoiceRequest$
    • CreateVoiceRequest

Properties

Properties

store?: boolean

Optional. Whether the created voice is persisted and managed by Google.

  • When true, Google stores the voice and returns Voice.id (for example, voice_abc123def456), which you can get, list, and delete, and reference by ID in synthesis requests. Stored voices expire after 1 year of inactivity; using a stored voice in speech synthesis or as a base_voice when creating another voice extends its expire_time. Projects are subject to a maximum active stored voice quota; exceeding the quota returns RESOURCE_EXHAUSTED.
  • When false (default), the voice is not stored by Google and Voice.key (for example, voicekey_...) is returned for client-side storage and synthesis. Optional discovery metadata fields on voice are not persisted or returned when store is false.
  • Required to be true when voice.type is "prompted" (otherwise fails with INVALID_ARGUMENT).
voice: VoiceInput

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

prebuilt system voice (returned when listing voices).