public final class SpeechTranscriptionConfig extends com.google.protobuf.GeneratedMessageV3 implements SpeechTranscriptionConfigOrBuilder
Config for SPEECH_TRANSCRIPTION.Protobuf type
google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfig| Modifier and Type | Class and Description |
|---|---|
static class |
SpeechTranscriptionConfig.Builder
Config for SPEECH_TRANSCRIPTION.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
AUDIO_TRACKS_FIELD_NUMBER |
static int |
DIARIZATION_SPEAKER_COUNT_FIELD_NUMBER |
static int |
ENABLE_AUTOMATIC_PUNCTUATION_FIELD_NUMBER |
static int |
ENABLE_SPEAKER_DIARIZATION_FIELD_NUMBER |
static int |
ENABLE_WORD_CONFIDENCE_FIELD_NUMBER |
static int |
FILTER_PROFANITY_FIELD_NUMBER |
static int |
LANGUAGE_CODE_FIELD_NUMBER |
static int |
MAX_ALTERNATIVES_FIELD_NUMBER |
static int |
SPEECH_CONTEXTS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getAudioTracks(int index)
*Optional* For file formats, such as MXF or MKV, supporting multiple audio
tracks, specify up to two tracks.
|
int |
getAudioTracksCount()
*Optional* For file formats, such as MXF or MKV, supporting multiple audio
tracks, specify up to two tracks.
|
List<Integer> |
getAudioTracksList()
*Optional* For file formats, such as MXF or MKV, supporting multiple audio
tracks, specify up to two tracks.
|
static SpeechTranscriptionConfig |
getDefaultInstance() |
SpeechTranscriptionConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
int |
getDiarizationSpeakerCount()
*Optional*
If set, specifies the estimated number of speakers in the conversation.
|
boolean |
getEnableAutomaticPunctuation()
*Optional* If 'true', adds punctuation to recognition result hypotheses.
|
boolean |
getEnableSpeakerDiarization()
*Optional* If 'true', enables speaker detection for each recognized word in
the top alternative of the recognition result using a speaker_tag provided
in the WordInfo.
|
boolean |
getEnableWordConfidence()
*Optional* If `true`, the top result includes a list of words and the
confidence for those words.
|
boolean |
getFilterProfanity()
*Optional* If set to `true`, the server will attempt to filter out
profanities, replacing all but the initial character in each filtered word
with asterisks, e.g.
|
String |
getLanguageCode()
*Required* The language of the supplied audio as a
[BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
|
com.google.protobuf.ByteString |
getLanguageCodeBytes()
*Required* The language of the supplied audio as a
[BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
|
int |
getMaxAlternatives()
*Optional* Maximum number of recognition hypotheses to be returned.
|
com.google.protobuf.Parser<SpeechTranscriptionConfig> |
getParserForType() |
int |
getSerializedSize() |
SpeechContext |
getSpeechContexts(int index)
*Optional* A means to provide context to assist the speech recognition.
|
int |
getSpeechContextsCount()
*Optional* A means to provide context to assist the speech recognition.
|
List<SpeechContext> |
getSpeechContextsList()
*Optional* A means to provide context to assist the speech recognition.
|
SpeechContextOrBuilder |
getSpeechContextsOrBuilder(int index)
*Optional* A means to provide context to assist the speech recognition.
|
List<? extends SpeechContextOrBuilder> |
getSpeechContextsOrBuilderList()
*Optional* A means to provide context to assist the speech recognition.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static SpeechTranscriptionConfig.Builder |
newBuilder() |
static SpeechTranscriptionConfig.Builder |
newBuilder(SpeechTranscriptionConfig prototype) |
SpeechTranscriptionConfig.Builder |
newBuilderForType() |
protected SpeechTranscriptionConfig.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static SpeechTranscriptionConfig |
parseDelimitedFrom(InputStream input) |
static SpeechTranscriptionConfig |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SpeechTranscriptionConfig |
parseFrom(byte[] data) |
static SpeechTranscriptionConfig |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SpeechTranscriptionConfig |
parseFrom(ByteBuffer data) |
static SpeechTranscriptionConfig |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SpeechTranscriptionConfig |
parseFrom(com.google.protobuf.ByteString data) |
static SpeechTranscriptionConfig |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SpeechTranscriptionConfig |
parseFrom(com.google.protobuf.CodedInputStream input) |
static SpeechTranscriptionConfig |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SpeechTranscriptionConfig |
parseFrom(InputStream input) |
static SpeechTranscriptionConfig |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<SpeechTranscriptionConfig> |
parser() |
SpeechTranscriptionConfig.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newInstance, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int LANGUAGE_CODE_FIELD_NUMBER
public static final int MAX_ALTERNATIVES_FIELD_NUMBER
public static final int FILTER_PROFANITY_FIELD_NUMBER
public static final int SPEECH_CONTEXTS_FIELD_NUMBER
public static final int ENABLE_AUTOMATIC_PUNCTUATION_FIELD_NUMBER
public static final int AUDIO_TRACKS_FIELD_NUMBER
public static final int ENABLE_SPEAKER_DIARIZATION_FIELD_NUMBER
public static final int DIARIZATION_SPEAKER_COUNT_FIELD_NUMBER
public static final int ENABLE_WORD_CONFIDENCE_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getLanguageCode()
*Required* The language of the supplied audio as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example: "en-US". See [Language Support](https://cloud.google.com/speech/docs/languages) for a list of the currently supported language codes.
string language_code = 1;getLanguageCode in interface SpeechTranscriptionConfigOrBuilderpublic com.google.protobuf.ByteString getLanguageCodeBytes()
*Required* The language of the supplied audio as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example: "en-US". See [Language Support](https://cloud.google.com/speech/docs/languages) for a list of the currently supported language codes.
string language_code = 1;getLanguageCodeBytes in interface SpeechTranscriptionConfigOrBuilderpublic int getMaxAlternatives()
*Optional* Maximum number of recognition hypotheses to be returned. Specifically, the maximum number of `SpeechRecognitionAlternative` messages within each `SpeechTranscription`. The server may return fewer than `max_alternatives`. Valid values are `0`-`30`. A value of `0` or `1` will return a maximum of one. If omitted, will return a maximum of one.
int32 max_alternatives = 2;getMaxAlternatives in interface SpeechTranscriptionConfigOrBuilderpublic boolean getFilterProfanity()
*Optional* If set to `true`, the server will attempt to filter out profanities, replacing all but the initial character in each filtered word with asterisks, e.g. "f***". If set to `false` or omitted, profanities won't be filtered out.
bool filter_profanity = 3;getFilterProfanity in interface SpeechTranscriptionConfigOrBuilderpublic List<SpeechContext> getSpeechContextsList()
*Optional* A means to provide context to assist the speech recognition.
repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4;
getSpeechContextsList in interface SpeechTranscriptionConfigOrBuilderpublic List<? extends SpeechContextOrBuilder> getSpeechContextsOrBuilderList()
*Optional* A means to provide context to assist the speech recognition.
repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4;
getSpeechContextsOrBuilderList in interface SpeechTranscriptionConfigOrBuilderpublic int getSpeechContextsCount()
*Optional* A means to provide context to assist the speech recognition.
repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4;
getSpeechContextsCount in interface SpeechTranscriptionConfigOrBuilderpublic SpeechContext getSpeechContexts(int index)
*Optional* A means to provide context to assist the speech recognition.
repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4;
getSpeechContexts in interface SpeechTranscriptionConfigOrBuilderpublic SpeechContextOrBuilder getSpeechContextsOrBuilder(int index)
*Optional* A means to provide context to assist the speech recognition.
repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4;
getSpeechContextsOrBuilder in interface SpeechTranscriptionConfigOrBuilderpublic boolean getEnableAutomaticPunctuation()
*Optional* If 'true', adds punctuation to recognition result hypotheses. This feature is only available in select languages. Setting this for requests in other languages has no effect at all. The default 'false' value does not add punctuation to result hypotheses. NOTE: "This is currently offered as an experimental service, complimentary to all users. In the future this may be exclusively available as a premium feature."
bool enable_automatic_punctuation = 5;getEnableAutomaticPunctuation in interface SpeechTranscriptionConfigOrBuilderpublic List<Integer> getAudioTracksList()
*Optional* For file formats, such as MXF or MKV, supporting multiple audio tracks, specify up to two tracks. Default: track 0.
repeated int32 audio_tracks = 6;getAudioTracksList in interface SpeechTranscriptionConfigOrBuilderpublic int getAudioTracksCount()
*Optional* For file formats, such as MXF or MKV, supporting multiple audio tracks, specify up to two tracks. Default: track 0.
repeated int32 audio_tracks = 6;getAudioTracksCount in interface SpeechTranscriptionConfigOrBuilderpublic int getAudioTracks(int index)
*Optional* For file formats, such as MXF or MKV, supporting multiple audio tracks, specify up to two tracks. Default: track 0.
repeated int32 audio_tracks = 6;getAudioTracks in interface SpeechTranscriptionConfigOrBuilderpublic boolean getEnableSpeakerDiarization()
*Optional* If 'true', enables speaker detection for each recognized word in the top alternative of the recognition result using a speaker_tag provided in the WordInfo. Note: When this is true, we send all the words from the beginning of the audio for the top alternative in every consecutive responses. This is done in order to improve our speaker tags as our models learn to identify the speakers in the conversation over time.
bool enable_speaker_diarization = 7;getEnableSpeakerDiarization in interface SpeechTranscriptionConfigOrBuilderpublic int getDiarizationSpeakerCount()
*Optional* If set, specifies the estimated number of speakers in the conversation. If not set, defaults to '2'. Ignored unless enable_speaker_diarization is set to true.
int32 diarization_speaker_count = 8;getDiarizationSpeakerCount in interface SpeechTranscriptionConfigOrBuilderpublic boolean getEnableWordConfidence()
*Optional* If `true`, the top result includes a list of words and the confidence for those words. If `false`, no word-level confidence information is returned. The default is `false`.
bool enable_word_confidence = 9;getEnableWordConfidence in interface SpeechTranscriptionConfigOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static SpeechTranscriptionConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SpeechTranscriptionConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SpeechTranscriptionConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SpeechTranscriptionConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SpeechTranscriptionConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SpeechTranscriptionConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SpeechTranscriptionConfig parseFrom(InputStream input) throws IOException
IOExceptionpublic static SpeechTranscriptionConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SpeechTranscriptionConfig parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static SpeechTranscriptionConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SpeechTranscriptionConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static SpeechTranscriptionConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic SpeechTranscriptionConfig.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static SpeechTranscriptionConfig.Builder newBuilder()
public static SpeechTranscriptionConfig.Builder newBuilder(SpeechTranscriptionConfig prototype)
public SpeechTranscriptionConfig.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected SpeechTranscriptionConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static SpeechTranscriptionConfig getDefaultInstance()
public static com.google.protobuf.Parser<SpeechTranscriptionConfig> parser()
public com.google.protobuf.Parser<SpeechTranscriptionConfig> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public SpeechTranscriptionConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2019 Google LLC. All rights reserved.