SpeechConfig 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.
Configures speech synthesis.
Signature:
export interface SpeechConfig
Properties
Property |
Type |
Description |
voiceConfig |
VoiceConfig |
(Public Preview) Configures the voice to be used in speech synthesis. |
SpeechConfig.voiceConfig
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 to be used in speech synthesis.
Signature:
voiceConfig?: VoiceConfig;
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\nConfigures speech synthesis.\n\n**Signature:** \n\n export interface SpeechConfig \n\nProperties\n\n| Property | Type | Description |\n|-------------------------------------------------------------|----------------------------------------------------------|-----------------------------------------------------------------------------|\n| [voiceConfig](./ai.speechconfig.md#speechconfigvoiceconfig) | [VoiceConfig](./ai.voiceconfig.md#voiceconfig_interface) | ***(Public Preview)*** Configures the voice to be used in speech synthesis. |\n\nSpeechConfig.voiceConfig 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 to be used in speech synthesis.\n\n**Signature:** \n\n voiceConfig?: VoiceConfig;"]]