public interface TranslateSpeechConfigOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
String |
getAlternativeSourceLanguageCodes(int index)
Optional.
|
com.google.protobuf.ByteString |
getAlternativeSourceLanguageCodesBytes(int index)
Optional.
|
int |
getAlternativeSourceLanguageCodesCount()
Optional.
|
List<String> |
getAlternativeSourceLanguageCodesList()
Optional.
|
String |
getAudioEncoding()
Required.
|
com.google.protobuf.ByteString |
getAudioEncodingBytes()
Required.
|
String |
getModel()
Optional.
|
com.google.protobuf.ByteString |
getModelBytes()
Optional.
|
int |
getSampleRateHertz()
Optional.
|
String |
getSourceLanguageCode()
Required.
|
com.google.protobuf.ByteString |
getSourceLanguageCodeBytes()
Required.
|
String |
getTargetLanguageCode()
Required.
|
com.google.protobuf.ByteString |
getTargetLanguageCodeBytes()
Required.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofString getAudioEncoding()
Required. Encoding of audio data. Supported formats: - `linear16` Uncompressed 16-bit signed little-endian samples (Linear PCM).
string audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];com.google.protobuf.ByteString getAudioEncodingBytes()
Required. Encoding of audio data. Supported formats: - `linear16` Uncompressed 16-bit signed little-endian samples (Linear PCM).
string audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];String getSourceLanguageCode()
Required. Source language code (BCP-47) of the input audio.
string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED];com.google.protobuf.ByteString getSourceLanguageCodeBytes()
Required. Source language code (BCP-47) of the input audio.
string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED];List<String> getAlternativeSourceLanguageCodesList()
Optional. A list of up to 3 additional language codes (BCP-47), listing possible alternative languages of the supplied audio. If alternative source languages are listed, speech translation result will translate in the most likely language detected including the main source_language_code. The translated result will include the language code of the language detected in the audio.
repeated string alternative_source_language_codes = 6 [(.google.api.field_behavior) = OPTIONAL];
int getAlternativeSourceLanguageCodesCount()
Optional. A list of up to 3 additional language codes (BCP-47), listing possible alternative languages of the supplied audio. If alternative source languages are listed, speech translation result will translate in the most likely language detected including the main source_language_code. The translated result will include the language code of the language detected in the audio.
repeated string alternative_source_language_codes = 6 [(.google.api.field_behavior) = OPTIONAL];
String getAlternativeSourceLanguageCodes(int index)
Optional. A list of up to 3 additional language codes (BCP-47), listing possible alternative languages of the supplied audio. If alternative source languages are listed, speech translation result will translate in the most likely language detected including the main source_language_code. The translated result will include the language code of the language detected in the audio.
repeated string alternative_source_language_codes = 6 [(.google.api.field_behavior) = OPTIONAL];
index - The index of the element to return.com.google.protobuf.ByteString getAlternativeSourceLanguageCodesBytes(int index)
Optional. A list of up to 3 additional language codes (BCP-47), listing possible alternative languages of the supplied audio. If alternative source languages are listed, speech translation result will translate in the most likely language detected including the main source_language_code. The translated result will include the language code of the language detected in the audio.
repeated string alternative_source_language_codes = 6 [(.google.api.field_behavior) = OPTIONAL];
index - The index of the value to return.String getTargetLanguageCode()
Required. Target language code (BCP-47) of the output.
string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED];com.google.protobuf.ByteString getTargetLanguageCodeBytes()
Required. Target language code (BCP-47) of the output.
string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED];int getSampleRateHertz()
Optional. Sample rate in Hertz of the audio data. 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 can only be omitted for `FLAC` and `WAV` audio files.
int32 sample_rate_hertz = 4 [(.google.api.field_behavior) = OPTIONAL];String getModel()
Optional.
string model = 5 [(.google.api.field_behavior) = OPTIONAL];com.google.protobuf.ByteString getModelBytes()
Optional.
string model = 5 [(.google.api.field_behavior) = OPTIONAL];Copyright © 2020 Google LLC. All rights reserved.