Send feedback
Class ExplicitDecodingConfig (4.7.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 4.7.0 keyboard_arrow_down
public final class ExplicitDecodingConfig extends GeneratedMessageV3 implements ExplicitDecodingConfigOrBuilder
Explicitly specified decoding parameters.
Protobuf type google.cloud.speech.v2.ExplicitDecodingConfig
Static Fields
AUDIO_CHANNEL_COUNT_FIELD_NUMBER
public static final int AUDIO_CHANNEL_COUNT_FIELD_NUMBER
Field Value
ENCODING_FIELD_NUMBER
public static final int ENCODING_FIELD_NUMBER
Field Value
SAMPLE_RATE_HERTZ_FIELD_NUMBER
public static final int SAMPLE_RATE_HERTZ_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static ExplicitDecodingConfig getDefaultInstance ()
Returns
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
newBuilder()
public static ExplicitDecodingConfig . Builder newBuilder ()
Returns
newBuilder(ExplicitDecodingConfig prototype)
public static ExplicitDecodingConfig . Builder newBuilder ( ExplicitDecodingConfig prototype )
Parameter
Returns
public static ExplicitDecodingConfig parseDelimitedFrom ( InputStream input )
Parameter
Returns
Exceptions
public static ExplicitDecodingConfig parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static ExplicitDecodingConfig parseFrom ( byte [] data )
Parameter
Name Description data
byte []
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ExplicitDecodingConfig parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static ExplicitDecodingConfig parseFrom ( ByteString data )
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ExplicitDecodingConfig parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static ExplicitDecodingConfig parseFrom ( CodedInputStream input )
Parameter
Returns
Exceptions
public static ExplicitDecodingConfig parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static ExplicitDecodingConfig parseFrom ( InputStream input )
Parameter
Returns
Exceptions
public static ExplicitDecodingConfig parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static ExplicitDecodingConfig parseFrom ( ByteBuffer data )
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ExplicitDecodingConfig parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parser()
public static Parser<ExplicitDecodingConfig> parser ()
Returns
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Returns
Overrides
getAudioChannelCount()
public int getAudioChannelCount ()
Number of channels present in the audio data sent for recognition.
Supported for the following encodings:
LINEAR16: Headerless 16-bit signed little-endian PCM samples.
MULAW: Headerless 8-bit companded mulaw samples.
ALAW: Headerless 8-bit companded alaw samples.
int32 audio_channel_count = 3;
Returns
Type Description int
The audioChannelCount.
getDefaultInstanceForType()
public ExplicitDecodingConfig getDefaultInstanceForType ()
Returns
getEncoding()
public ExplicitDecodingConfig . AudioEncoding getEncoding ()
Required. Encoding of the audio data sent for recognition.
.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
getEncodingValue()
public 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
Type Description int
The enum numeric value on the wire for encoding.
getParserForType()
public Parser<ExplicitDecodingConfig> getParserForType ()
Returns
Overrides
getSampleRateHertz()
public int getSampleRateHertz ()
Sample rate in Hertz of the audio data sent for recognition. 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).
Supported for the following encodings:
LINEAR16: Headerless 16-bit signed little-endian PCM samples.
MULAW: Headerless 8-bit companded mulaw samples.
ALAW: Headerless 8-bit companded alaw samples.
int32 sample_rate_hertz = 2;
Returns
Type Description int
The sampleRateHertz.
getSerializedSize()
public int getSerializedSize ()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields ()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
newBuilderForType()
public ExplicitDecodingConfig . Builder newBuilderForType ()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ExplicitDecodingConfig . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Parameter
Returns
Overrides
toBuilder()
public ExplicitDecodingConfig . Builder toBuilder ()
Returns
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Parameter
Overrides
Exceptions
Send feedback
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-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]