public interface StreamingAudioConfigOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
AudioEncoding |
getAudioEncoding()
Required.
|
int |
getAudioEncodingValue()
Required.
|
int |
getSampleRateHertz()
Optional.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofint getAudioEncodingValue()
Required. The format of the audio byte stream. For now, streaming only supports PCM and OGG_OPUS. All other encodings will return an error.
.google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];
AudioEncoding getAudioEncoding()
Required. The format of the audio byte stream. For now, streaming only supports PCM and OGG_OPUS. All other encodings will return an error.
.google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];
int getSampleRateHertz()
Optional. The synthesis sample rate (in hertz) for this audio.
int32 sample_rate_hertz = 2 [(.google.api.field_behavior) = OPTIONAL];Copyright © 2025 Google LLC. All rights reserved.