Class StreamingAudioConfig (2.77.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 2.77.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   final   class  StreamingAudioConfig   extends   GeneratedMessageV3   implements   StreamingAudioConfigOrBuilder  
   Description of the desired output audio data.
 Protobuf type google.cloud.texttospeech.v1.StreamingAudioConfig
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT) 
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int) 
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Fields
   
  AUDIO_ENCODING_FIELD_NUMBER 
  
    
public   static   final   int   AUDIO_ENCODING_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  SAMPLE_RATE_HERTZ_FIELD_NUMBER 
  
    
public   static   final   int   SAMPLE_RATE_HERTZ_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  SPEAKING_RATE_FIELD_NUMBER 
  
    
public   static   final   int   SPEAKING_RATE_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  Static Methods
   
  getDefaultInstance() 
  
    
public   static   StreamingAudioConfig   getDefaultInstance ()  
  
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  newBuilder() 
  
    
public   static   StreamingAudioConfig . Builder   newBuilder ()  
  
  newBuilder(StreamingAudioConfig prototype) 
  
    
public   static   StreamingAudioConfig . Builder   newBuilder ( StreamingAudioConfig   prototype )  
  
  
  parseDelimitedFrom(InputStream input) 
  
    
public   static   StreamingAudioConfig   parseDelimitedFrom ( InputStream   input )  
  
  
  
  parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   StreamingAudioConfig   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(byte[] data) 
  
    
public   static   StreamingAudioConfig   parseFrom ( byte []   data )  
  
    
      
        Parameter  
      
        Name Description  
      
        databyte [] 
     
  
  
  
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   StreamingAudioConfig   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteString data) 
  
    
public   static   StreamingAudioConfig   parseFrom ( ByteString   data )  
  
  
  
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   StreamingAudioConfig   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(CodedInputStream input) 
  
    
public   static   StreamingAudioConfig   parseFrom ( CodedInputStream   input )  
  
  
  
  parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   StreamingAudioConfig   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(InputStream input) 
  
    
public   static   StreamingAudioConfig   parseFrom ( InputStream   input )  
  
  
  
  parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   StreamingAudioConfig   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteBuffer data) 
  
    
public   static   StreamingAudioConfig   parseFrom ( ByteBuffer   data )  
  
  
  
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   StreamingAudioConfig   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parser() 
  
    
public   static   Parser<StreamingAudioConfig>   parser ()  
  
  Methods
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
  
    
      
        Parameter  
      
        Name Description  
      
        objObject  
     
  
  
  Overrides 
  
  getAudioEncoding() 
  
    
public   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];
 
getAudioEncodingValue() 
  
    
public   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  
      
        Type Description  
      
        int The enum numeric value on the wire for audioEncoding.
 
     
  
  getDefaultInstanceForType() 
  
    
public   StreamingAudioConfig   getDefaultInstanceForType ()  
  
  getParserForType() 
  
    
public   Parser<StreamingAudioConfig>   getParserForType ()  
  
  Overrides 
  
  getSampleRateHertz() 
  
    
public   int   getSampleRateHertz ()  
   Optional. The synthesis sample rate (in hertz) for this audio.
 int32 sample_rate_hertz = 2 [(.google.api.field_behavior) = OPTIONAL];
    
      
        Returns  
      
        Type Description  
      
        int The sampleRateHertz.
 
     
  
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  getSpeakingRate() 
  
    
public   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  
      
        Type Description  
      
        double The speakingRate.
 
     
  
  hashCode() 
  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  newBuilderForType() 
  
    
public   StreamingAudioConfig . Builder   newBuilderForType ()  
  
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   StreamingAudioConfig . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
  
  
  Overrides 
  
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Object  
     
  
  Overrides 
  
  toBuilder() 
  
    
public   StreamingAudioConfig . Builder   toBuilder ()  
  
  writeTo(CodedOutputStream output) 
  
    
public   void   writeTo ( CodedOutputStream   output )  
  
  Overrides 
  
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-29 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-29 UTC."],[],[]]