sampleRateHertz property

  1. @TagNumber(2)
int sampleRateHertz

Sample rate in Hertz of the audio data sent in all RecognitionAudio messages. 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). This field is optional for FLAC and WAV audio files, but is required for all other audio formats. For details, see google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.

Implementation

@$pb.TagNumber(2)
$core.int get sampleRateHertz => $_getIZ(1);
  1. @TagNumber(2)
void sampleRateHertz=(int v)

Implementation

@$pb.TagNumber(2)
set sampleRateHertz($core.int v) {
  $_setSignedInt32(1, v);
}