VoiceConfig interface
Stay organized with collections
Save and categorize content based on your preferences.
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Configuration for the voice to used in speech synthesis.
Signature:
export interface VoiceConfig
Properties
VoiceConfig.prebuiltVoiceConfig
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Configures the voice using a pre-built voice configuration.
Signature:
prebuiltVoiceConfig?: PrebuiltVoiceConfig;
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 2025-08-28 UTC.
[null,null,["Last updated 2025-08-28 UTC."],[],[],null,["\u003e This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.\n\nConfiguration for the voice to used in speech synthesis.\n\n**Signature:** \n\n export interface VoiceConfig \n\nProperties\n\n| Property | Type | Description |\n|---------------------------------------------------------------------------|----------------------------------------------------------------------------------|------------------------------------------------------------------------------------|\n| [prebuiltVoiceConfig](./ai.voiceconfig.md#voiceconfigprebuiltvoiceconfig) | [PrebuiltVoiceConfig](./ai.prebuiltvoiceconfig.md#prebuiltvoiceconfig_interface) | ***(Public Preview)*** Configures the voice using a pre-built voice configuration. |\n\nVoiceConfig.prebuiltVoiceConfig This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.\n\nConfigures the voice using a pre-built voice configuration.\n\n**Signature:** \n\n prebuiltVoiceConfig?: PrebuiltVoiceConfig;"]]