public interface ExplicitDecodingConfigOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
int |
getAudioChannelCount()
Number of channels present in the audio data sent for recognition.
|
ExplicitDecodingConfig.AudioEncoding |
getEncoding()
Required.
|
int |
getEncodingValue()
Required.
|
int |
getSampleRateHertz()
Sample rate in Hertz of the audio data sent for recognition.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofint getEncodingValue()
Required. Encoding of the audio data sent for recognition.
.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED];
ExplicitDecodingConfig.AudioEncoding getEncoding()
Required. Encoding of the audio data sent for recognition.
.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED];
int getSampleRateHertz()
Sample rate in Hertz of the audio data sent for recognition. Valid values are: 8000-48000. 16000 is optimal. For best results, set the sampling rate of the audio source to 16000 Hz. If that's not possible, use the native sample rate of the audio source (instead of re-sampling). Supported for the following encodings: * LINEAR16: Headerless 16-bit signed little-endian PCM samples. * MULAW: Headerless 8-bit companded mulaw samples. * ALAW: Headerless 8-bit companded alaw samples.
int32 sample_rate_hertz = 2;int getAudioChannelCount()
Number of channels present in the audio data sent for recognition. Supported for the following encodings: * LINEAR16: Headerless 16-bit signed little-endian PCM samples. * MULAW: Headerless 8-bit companded mulaw samples. * ALAW: Headerless 8-bit companded alaw samples. The maximum allowed value is 8.
int32 audio_channel_count = 3;Copyright © 2024 Google LLC. All rights reserved.