Interface ExplicitDecodingConfigOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
ExplicitDecodingConfig, ExplicitDecodingConfig.Builder

@Generated public interface ExplicitDecodingConfigOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Optional.
    Required.
    int
    Required.
    int
    Optional.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getEncodingValue

      int getEncodingValue()
       Required. Encoding of the audio data sent for recognition.
       
      .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The enum numeric value on the wire for encoding.
    • getEncoding

       Required. Encoding of the audio data sent for recognition.
       
      .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The encoding.
    • getSampleRateHertz

      int getSampleRateHertz()
       Optional. Sample rate in Hertz of the audio data sent for recognition.
       Valid values are: 8000-48000, and 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 resampling).
       Note that this field is marked as OPTIONAL for backward compatibility
       reasons. It is (and has always been) effectively REQUIRED.
       
      int32 sample_rate_hertz = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The sampleRateHertz.
    • getAudioChannelCount

      int getAudioChannelCount()
       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.
       
      int32 audio_channel_count = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The audioChannelCount.