Interface StreamingAudioConfigOrBuilder

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

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

    Modifier and Type
    Method
    Description
    Required.
    int
    Required.
    int
    Optional.
    double
    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

    • getAudioEncodingValue

      int getAudioEncodingValue()
       Required. The format of the audio byte stream.
       Streaming supports PCM, ALAW, MULAW and OGG_OPUS. All other encodings
       return an error.
       
      .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The enum numeric value on the wire for audioEncoding.
    • getAudioEncoding

      AudioEncoding getAudioEncoding()
       Required. The format of the audio byte stream.
       Streaming supports PCM, ALAW, MULAW and OGG_OPUS. All other encodings
       return an error.
       
      .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The audioEncoding.
    • getSampleRateHertz

      int getSampleRateHertz()
       Optional. The synthesis sample rate (in hertz) for this audio.
       
      int32 sample_rate_hertz = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The sampleRateHertz.
    • getSpeakingRate

      double getSpeakingRate()
       Optional. Input only. Speaking rate/speed, in the range [0.25, 2.0]. 1.0 is
       the normal native speed supported by the specific voice. 2.0 is twice as
       fast, and 0.5 is half as fast. If unset(0.0), defaults to the native 1.0
       speed. Any other values < 0.25 or > 2.0 will return an error.
       
      double speaking_rate = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
      Returns:
      The speakingRate.