Class SpeechTranscriptionConfig
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.videointelligence.v1.SpeechTranscriptionConfig
- All Implemented Interfaces:
SpeechTranscriptionConfigOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class SpeechTranscriptionConfig
extends com.google.protobuf.GeneratedMessage
implements SpeechTranscriptionConfigOrBuilder
Config for SPEECH_TRANSCRIPTION.Protobuf type
google.cloud.videointelligence.v1.SpeechTranscriptionConfig- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classConfig for SPEECH_TRANSCRIPTION.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanintgetAudioTracks(int index) Optional.intOptional.Optional.static SpeechTranscriptionConfigstatic final com.google.protobuf.Descriptors.DescriptorintOptional.booleanOptional.booleanOptional.booleanOptional.booleanOptional.Required.com.google.protobuf.ByteStringRequired.intOptional.com.google.protobuf.Parser<SpeechTranscriptionConfig>intgetSpeechContexts(int index) Optional.intOptional.Optional.getSpeechContextsOrBuilder(int index) Optional.List<? extends SpeechContextOrBuilder>Optional.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(SpeechTranscriptionConfig prototype) protected SpeechTranscriptionConfig.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static SpeechTranscriptionConfigparseDelimitedFrom(InputStream input) static SpeechTranscriptionConfigparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SpeechTranscriptionConfigparseFrom(byte[] data) static SpeechTranscriptionConfigparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SpeechTranscriptionConfigparseFrom(com.google.protobuf.ByteString data) static SpeechTranscriptionConfigparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SpeechTranscriptionConfigparseFrom(com.google.protobuf.CodedInputStream input) static SpeechTranscriptionConfigparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SpeechTranscriptionConfigparseFrom(InputStream input) static SpeechTranscriptionConfigparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SpeechTranscriptionConfigparseFrom(ByteBuffer data) static SpeechTranscriptionConfigparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<SpeechTranscriptionConfig>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
LANGUAGE_CODE_FIELD_NUMBER
public static final int LANGUAGE_CODE_FIELD_NUMBER- See Also:
-
MAX_ALTERNATIVES_FIELD_NUMBER
public static final int MAX_ALTERNATIVES_FIELD_NUMBER- See Also:
-
FILTER_PROFANITY_FIELD_NUMBER
public static final int FILTER_PROFANITY_FIELD_NUMBER- See Also:
-
SPEECH_CONTEXTS_FIELD_NUMBER
public static final int SPEECH_CONTEXTS_FIELD_NUMBER- See Also:
-
ENABLE_AUTOMATIC_PUNCTUATION_FIELD_NUMBER
public static final int ENABLE_AUTOMATIC_PUNCTUATION_FIELD_NUMBER- See Also:
-
AUDIO_TRACKS_FIELD_NUMBER
public static final int AUDIO_TRACKS_FIELD_NUMBER- See Also:
-
ENABLE_SPEAKER_DIARIZATION_FIELD_NUMBER
public static final int ENABLE_SPEAKER_DIARIZATION_FIELD_NUMBER- See Also:
-
DIARIZATION_SPEAKER_COUNT_FIELD_NUMBER
public static final int DIARIZATION_SPEAKER_COUNT_FIELD_NUMBER- See Also:
-
ENABLE_WORD_CONFIDENCE_FIELD_NUMBER
public static final int ENABLE_WORD_CONFIDENCE_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getLanguageCode
Required. *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 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getLanguageCodein interfaceSpeechTranscriptionConfigOrBuilder- Returns:
- The languageCode.
-
getLanguageCodeBytes
public com.google.protobuf.ByteString getLanguageCodeBytes()Required. *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 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getLanguageCodeBytesin interfaceSpeechTranscriptionConfigOrBuilder- Returns:
- The bytes for languageCode.
-
getMaxAlternatives
public 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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMaxAlternativesin interfaceSpeechTranscriptionConfigOrBuilder- Returns:
- The maxAlternatives.
-
getFilterProfanity
public 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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFilterProfanityin interfaceSpeechTranscriptionConfigOrBuilder- Returns:
- The filterProfanity.
-
getSpeechContextsList
Optional. A means to provide context to assist the speech recognition.
repeated .google.cloud.videointelligence.v1.SpeechContext speech_contexts = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSpeechContextsListin interfaceSpeechTranscriptionConfigOrBuilder
-
getSpeechContextsOrBuilderList
Optional. A means to provide context to assist the speech recognition.
repeated .google.cloud.videointelligence.v1.SpeechContext speech_contexts = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSpeechContextsOrBuilderListin interfaceSpeechTranscriptionConfigOrBuilder
-
getSpeechContextsCount
public int getSpeechContextsCount()Optional. A means to provide context to assist the speech recognition.
repeated .google.cloud.videointelligence.v1.SpeechContext speech_contexts = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSpeechContextsCountin interfaceSpeechTranscriptionConfigOrBuilder
-
getSpeechContexts
Optional. A means to provide context to assist the speech recognition.
repeated .google.cloud.videointelligence.v1.SpeechContext speech_contexts = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSpeechContextsin interfaceSpeechTranscriptionConfigOrBuilder
-
getSpeechContextsOrBuilder
Optional. A means to provide context to assist the speech recognition.
repeated .google.cloud.videointelligence.v1.SpeechContext speech_contexts = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSpeechContextsOrBuilderin interfaceSpeechTranscriptionConfigOrBuilder
-
getEnableAutomaticPunctuation
public 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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEnableAutomaticPunctuationin interfaceSpeechTranscriptionConfigOrBuilder- Returns:
- The enableAutomaticPunctuation.
-
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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAudioTracksListin interfaceSpeechTranscriptionConfigOrBuilder- Returns:
- A list containing the audioTracks.
-
getAudioTracksCount
public 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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAudioTracksCountin interfaceSpeechTranscriptionConfigOrBuilder- Returns:
- The count of audioTracks.
-
getAudioTracks
public 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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAudioTracksin interfaceSpeechTranscriptionConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The audioTracks at the given index.
-
getEnableSpeakerDiarization
public 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 response. 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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEnableSpeakerDiarizationin interfaceSpeechTranscriptionConfigOrBuilder- Returns:
- The enableSpeakerDiarization.
-
getDiarizationSpeakerCount
public 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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDiarizationSpeakerCountin interfaceSpeechTranscriptionConfigOrBuilder- Returns:
- The diarizationSpeakerCount.
-
getEnableWordConfidence
public 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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEnableWordConfidencein interfaceSpeechTranscriptionConfigOrBuilder- Returns:
- The enableWordConfidence.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static SpeechTranscriptionConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SpeechTranscriptionConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SpeechTranscriptionConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SpeechTranscriptionConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SpeechTranscriptionConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SpeechTranscriptionConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static SpeechTranscriptionConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static SpeechTranscriptionConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static SpeechTranscriptionConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static SpeechTranscriptionConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected SpeechTranscriptionConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-