Reference documentation and code samples for the Gemini Enterprise for Customer Experience V1 API class Google::Cloud::Ces::V1::SynthesizeSpeechConfig.
Configuration for how the agent response should be synthesized.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#instruction
def instruction() -> ::String- (::String) — Optional. The instruction used to synthesize speech when using a generative model.
#instruction=
def instruction=(value) -> ::String- value (::String) — Optional. The instruction used to synthesize speech when using a generative model.
- (::String) — Optional. The instruction used to synthesize speech when using a generative model.
#model
def model() -> ::String-
(::String) —
Optional. The model used to synthesize audio. Currently supported values:
- "gemini-3.1-flash-tts-preview" If empty, Chirp3-HD is used.
#model=
def model=(value) -> ::String-
value (::String) —
Optional. The model used to synthesize audio. Currently supported values:
- "gemini-3.1-flash-tts-preview" If empty, Chirp3-HD is used.
-
(::String) —
Optional. The model used to synthesize audio. Currently supported values:
- "gemini-3.1-flash-tts-preview" If empty, Chirp3-HD is used.
#speaking_rate
def speaking_rate() -> ::Float- (::Float) — Optional. The speaking rate/speed in the range [0.25, 2.0]. 1.0 is the normal native speed supported by the specific voice. 2.0 is twice as fast, and 0.5 is half as fast. Values outside of the range [0.25, 2.0] will return an error.
#speaking_rate=
def speaking_rate=(value) -> ::Float- value (::Float) — Optional. The speaking rate/speed in the range [0.25, 2.0]. 1.0 is the normal native speed supported by the specific voice. 2.0 is twice as fast, and 0.5 is half as fast. Values outside of the range [0.25, 2.0] will return an error.
- (::Float) — Optional. The speaking rate/speed in the range [0.25, 2.0]. 1.0 is the normal native speed supported by the specific voice. 2.0 is twice as fast, and 0.5 is half as fast. Values outside of the range [0.25, 2.0] will return an error.
#voice
def voice() -> ::String-
(::String) — Optional. The name of the voice. If not set, the service will choose a
voice based on the other parameters such as language_code.
For the list of available voices, please refer to Supported voices and languages from Cloud Text-to-Speech.
#voice=
def voice=(value) -> ::String-
value (::String) — Optional. The name of the voice. If not set, the service will choose a
voice based on the other parameters such as language_code.
For the list of available voices, please refer to Supported voices and languages from Cloud Text-to-Speech.
-
(::String) — Optional. The name of the voice. If not set, the service will choose a
voice based on the other parameters such as language_code.
For the list of available voices, please refer to Supported voices and languages from Cloud Text-to-Speech.
#voice_sample_gcs_uri
def voice_sample_gcs_uri() -> ::String-
(::String) — Optional. The Cloud Storage URI to the audio sample for voice cloning. The
audio sample should be a mono-channel, 24kHz WAV file.
Note: Please make sure the CES service agent
service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.comhasstorage.objects.getpermission to the Cloud Storage object.
#voice_sample_gcs_uri=
def voice_sample_gcs_uri=(value) -> ::String-
value (::String) — Optional. The Cloud Storage URI to the audio sample for voice cloning. The
audio sample should be a mono-channel, 24kHz WAV file.
Note: Please make sure the CES service agent
service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.comhasstorage.objects.getpermission to the Cloud Storage object.
-
(::String) — Optional. The Cloud Storage URI to the audio sample for voice cloning. The
audio sample should be a mono-channel, 24kHz WAV file.
Note: Please make sure the CES service agent
service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.comhasstorage.objects.getpermission to the Cloud Storage object.