ExplicitDecodingConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Explicitly specified decoding parameters.
Attributes |
|
---|---|
Name | Description |
encoding |
google.cloud.speech_v2.types.ExplicitDecodingConfig.AudioEncoding
Required. Encoding of the audio data sent for recognition. |
sample_rate_hertz |
int
Optional. 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). Note that this field is marked as OPTIONAL for backward compatibility reasons. It is (and has always been) effectively REQUIRED. |
audio_channel_count |
int
Optional. Number of channels present in the audio data sent for recognition. Note that this field is marked as OPTIONAL for backward compatibility reasons. It is (and has always been) effectively REQUIRED. The maximum allowed value is 8. |
Classes
AudioEncoding
AudioEncoding(value)
Supported audio data encodings.