Package com.google.cloud.dialogflow.v2
Class SpeechToTextConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SpeechToTextConfig.Builder>
com.google.cloud.dialogflow.v2.SpeechToTextConfig.Builder
- All Implemented Interfaces:
SpeechToTextConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SpeechToTextConfig
public static final class SpeechToTextConfig.Builder
extends com.google.protobuf.GeneratedMessage.Builder<SpeechToTextConfig.Builder>
implements SpeechToTextConfigOrBuilder
Configures speech transcription for [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile].Protobuf type
google.cloud.dialogflow.v2.SpeechToTextConfig-
Method Summary
Modifier and TypeMethodDescriptionaddAllPhraseSets(Iterable<String> values) List of names of Cloud Speech phrase sets that are used for transcription.addPhraseSets(String value) List of names of Cloud Speech phrase sets that are used for transcription.addPhraseSetsBytes(com.google.protobuf.ByteString value) List of names of Cloud Speech phrase sets that are used for transcription.build()clear()Audio encoding of the audio content to process.If `true`, Dialogflow returns [SpeechWordInfo][google.cloud.dialogflow.v2.SpeechWordInfo] in [StreamingRecognitionResult][google.cloud.dialogflow.v2.StreamingRecognitionResult] with information about the recognized speech words, e.g. start and end time offsets.The language of the supplied audio.Which Speech model to select.List of names of Cloud Speech phrase sets that are used for transcription.Sample rate (in Hertz) of the audio content sent in the query.The speech model used in speech to text.Use timeout based endpointing, interpreting endpointer sensitivity as seconds of timeout value.Audio encoding of the audio content to process.intAudio encoding of the audio content to process.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanIf `true`, Dialogflow returns [SpeechWordInfo][google.cloud.dialogflow.v2.SpeechWordInfo] in [StreamingRecognitionResult][google.cloud.dialogflow.v2.StreamingRecognitionResult] with information about the recognized speech words, e.g. start and end time offsets.The language of the supplied audio.com.google.protobuf.ByteStringThe language of the supplied audio.getModel()Which Speech model to select.com.google.protobuf.ByteStringWhich Speech model to select.getPhraseSets(int index) List of names of Cloud Speech phrase sets that are used for transcription.com.google.protobuf.ByteStringgetPhraseSetsBytes(int index) List of names of Cloud Speech phrase sets that are used for transcription.intList of names of Cloud Speech phrase sets that are used for transcription.com.google.protobuf.ProtocolStringListList of names of Cloud Speech phrase sets that are used for transcription.intSample rate (in Hertz) of the audio content sent in the query.The speech model used in speech to text.intThe speech model used in speech to text.booleanUse timeout based endpointing, interpreting endpointer sensitivity as seconds of timeout value.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(SpeechToTextConfig other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAudioEncoding(AudioEncoding value) Audio encoding of the audio content to process.setAudioEncodingValue(int value) Audio encoding of the audio content to process.setEnableWordInfo(boolean value) If `true`, Dialogflow returns [SpeechWordInfo][google.cloud.dialogflow.v2.SpeechWordInfo] in [StreamingRecognitionResult][google.cloud.dialogflow.v2.StreamingRecognitionResult] with information about the recognized speech words, e.g. start and end time offsets.setLanguageCode(String value) The language of the supplied audio.setLanguageCodeBytes(com.google.protobuf.ByteString value) The language of the supplied audio.Which Speech model to select.setModelBytes(com.google.protobuf.ByteString value) Which Speech model to select.setPhraseSets(int index, String value) List of names of Cloud Speech phrase sets that are used for transcription.setSampleRateHertz(int value) Sample rate (in Hertz) of the audio content sent in the query.The speech model used in speech to text.setSpeechModelVariantValue(int value) The speech model used in speech to text.setUseTimeoutBasedEndpointing(boolean value) Use timeout based endpointing, interpreting endpointer sensitivity as seconds of timeout value.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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.Builder<SpeechToTextConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<SpeechToTextConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<SpeechToTextConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SpeechToTextConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SpeechToTextConfig.Builder>
-
mergeFrom
public SpeechToTextConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SpeechToTextConfig.Builder>- Throws:
IOException
-
getSpeechModelVariantValue
public int getSpeechModelVariantValue()The speech model used in speech to text. `SPEECH_MODEL_VARIANT_UNSPECIFIED`, `USE_BEST_AVAILABLE` will be treated as `USE_ENHANCED`. It can be overridden in [AnalyzeContentRequest][google.cloud.dialogflow.v2.AnalyzeContentRequest] and [StreamingAnalyzeContentRequest][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest] request. If enhanced model variant is specified and an enhanced version of the specified model for the language does not exist, then it would emit an error.
.google.cloud.dialogflow.v2.SpeechModelVariant speech_model_variant = 1;- Specified by:
getSpeechModelVariantValuein interfaceSpeechToTextConfigOrBuilder- Returns:
- The enum numeric value on the wire for speechModelVariant.
-
setSpeechModelVariantValue
The speech model used in speech to text. `SPEECH_MODEL_VARIANT_UNSPECIFIED`, `USE_BEST_AVAILABLE` will be treated as `USE_ENHANCED`. It can be overridden in [AnalyzeContentRequest][google.cloud.dialogflow.v2.AnalyzeContentRequest] and [StreamingAnalyzeContentRequest][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest] request. If enhanced model variant is specified and an enhanced version of the specified model for the language does not exist, then it would emit an error.
.google.cloud.dialogflow.v2.SpeechModelVariant speech_model_variant = 1;- Parameters:
value- The enum numeric value on the wire for speechModelVariant to set.- Returns:
- This builder for chaining.
-
getSpeechModelVariant
The speech model used in speech to text. `SPEECH_MODEL_VARIANT_UNSPECIFIED`, `USE_BEST_AVAILABLE` will be treated as `USE_ENHANCED`. It can be overridden in [AnalyzeContentRequest][google.cloud.dialogflow.v2.AnalyzeContentRequest] and [StreamingAnalyzeContentRequest][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest] request. If enhanced model variant is specified and an enhanced version of the specified model for the language does not exist, then it would emit an error.
.google.cloud.dialogflow.v2.SpeechModelVariant speech_model_variant = 1;- Specified by:
getSpeechModelVariantin interfaceSpeechToTextConfigOrBuilder- Returns:
- The speechModelVariant.
-
setSpeechModelVariant
The speech model used in speech to text. `SPEECH_MODEL_VARIANT_UNSPECIFIED`, `USE_BEST_AVAILABLE` will be treated as `USE_ENHANCED`. It can be overridden in [AnalyzeContentRequest][google.cloud.dialogflow.v2.AnalyzeContentRequest] and [StreamingAnalyzeContentRequest][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest] request. If enhanced model variant is specified and an enhanced version of the specified model for the language does not exist, then it would emit an error.
.google.cloud.dialogflow.v2.SpeechModelVariant speech_model_variant = 1;- Parameters:
value- The speechModelVariant to set.- Returns:
- This builder for chaining.
-
clearSpeechModelVariant
The speech model used in speech to text. `SPEECH_MODEL_VARIANT_UNSPECIFIED`, `USE_BEST_AVAILABLE` will be treated as `USE_ENHANCED`. It can be overridden in [AnalyzeContentRequest][google.cloud.dialogflow.v2.AnalyzeContentRequest] and [StreamingAnalyzeContentRequest][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest] request. If enhanced model variant is specified and an enhanced version of the specified model for the language does not exist, then it would emit an error.
.google.cloud.dialogflow.v2.SpeechModelVariant speech_model_variant = 1;- Returns:
- This builder for chaining.
-
getModel
Which Speech model to select. Select the model best suited to your domain to get best results. If a model is not explicitly specified, then Dialogflow auto-selects a model based on other parameters in the SpeechToTextConfig and Agent settings. If enhanced speech model is enabled for the agent and an enhanced version of the specified model for the language does not exist, then the speech is recognized using the standard version of the specified model. Refer to [Cloud Speech API documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model) for more details. If you specify a model, the following models typically have the best performance: - phone_call (best for Agent Assist and telephony) - latest_short (best for Dialogflow non-telephony) - command_and_search Leave this field unspecified to use [Agent Speech settings](https://cloud.google.com/dialogflow/cx/docs/concept/agent#settings-speech) for model selection.
string model = 2;- Specified by:
getModelin interfaceSpeechToTextConfigOrBuilder- Returns:
- The model.
-
getModelBytes
public com.google.protobuf.ByteString getModelBytes()Which Speech model to select. Select the model best suited to your domain to get best results. If a model is not explicitly specified, then Dialogflow auto-selects a model based on other parameters in the SpeechToTextConfig and Agent settings. If enhanced speech model is enabled for the agent and an enhanced version of the specified model for the language does not exist, then the speech is recognized using the standard version of the specified model. Refer to [Cloud Speech API documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model) for more details. If you specify a model, the following models typically have the best performance: - phone_call (best for Agent Assist and telephony) - latest_short (best for Dialogflow non-telephony) - command_and_search Leave this field unspecified to use [Agent Speech settings](https://cloud.google.com/dialogflow/cx/docs/concept/agent#settings-speech) for model selection.
string model = 2;- Specified by:
getModelBytesin interfaceSpeechToTextConfigOrBuilder- Returns:
- The bytes for model.
-
setModel
Which Speech model to select. Select the model best suited to your domain to get best results. If a model is not explicitly specified, then Dialogflow auto-selects a model based on other parameters in the SpeechToTextConfig and Agent settings. If enhanced speech model is enabled for the agent and an enhanced version of the specified model for the language does not exist, then the speech is recognized using the standard version of the specified model. Refer to [Cloud Speech API documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model) for more details. If you specify a model, the following models typically have the best performance: - phone_call (best for Agent Assist and telephony) - latest_short (best for Dialogflow non-telephony) - command_and_search Leave this field unspecified to use [Agent Speech settings](https://cloud.google.com/dialogflow/cx/docs/concept/agent#settings-speech) for model selection.
string model = 2;- Parameters:
value- The model to set.- Returns:
- This builder for chaining.
-
clearModel
Which Speech model to select. Select the model best suited to your domain to get best results. If a model is not explicitly specified, then Dialogflow auto-selects a model based on other parameters in the SpeechToTextConfig and Agent settings. If enhanced speech model is enabled for the agent and an enhanced version of the specified model for the language does not exist, then the speech is recognized using the standard version of the specified model. Refer to [Cloud Speech API documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model) for more details. If you specify a model, the following models typically have the best performance: - phone_call (best for Agent Assist and telephony) - latest_short (best for Dialogflow non-telephony) - command_and_search Leave this field unspecified to use [Agent Speech settings](https://cloud.google.com/dialogflow/cx/docs/concept/agent#settings-speech) for model selection.
string model = 2;- Returns:
- This builder for chaining.
-
setModelBytes
Which Speech model to select. Select the model best suited to your domain to get best results. If a model is not explicitly specified, then Dialogflow auto-selects a model based on other parameters in the SpeechToTextConfig and Agent settings. If enhanced speech model is enabled for the agent and an enhanced version of the specified model for the language does not exist, then the speech is recognized using the standard version of the specified model. Refer to [Cloud Speech API documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model) for more details. If you specify a model, the following models typically have the best performance: - phone_call (best for Agent Assist and telephony) - latest_short (best for Dialogflow non-telephony) - command_and_search Leave this field unspecified to use [Agent Speech settings](https://cloud.google.com/dialogflow/cx/docs/concept/agent#settings-speech) for model selection.
string model = 2;- Parameters:
value- The bytes for model to set.- Returns:
- This builder for chaining.
-
getPhraseSetsList
public com.google.protobuf.ProtocolStringList getPhraseSetsList()List of names of Cloud Speech phrase sets that are used for transcription. For phrase set limitations, please refer to [Cloud Speech API quotas and limits](https://cloud.google.com/speech-to-text/quotas#content).
repeated string phrase_sets = 4 [(.google.api.resource_reference) = { ... }- Specified by:
getPhraseSetsListin interfaceSpeechToTextConfigOrBuilder- Returns:
- A list containing the phraseSets.
-
getPhraseSetsCount
public int getPhraseSetsCount()List of names of Cloud Speech phrase sets that are used for transcription. For phrase set limitations, please refer to [Cloud Speech API quotas and limits](https://cloud.google.com/speech-to-text/quotas#content).
repeated string phrase_sets = 4 [(.google.api.resource_reference) = { ... }- Specified by:
getPhraseSetsCountin interfaceSpeechToTextConfigOrBuilder- Returns:
- The count of phraseSets.
-
getPhraseSets
List of names of Cloud Speech phrase sets that are used for transcription. For phrase set limitations, please refer to [Cloud Speech API quotas and limits](https://cloud.google.com/speech-to-text/quotas#content).
repeated string phrase_sets = 4 [(.google.api.resource_reference) = { ... }- Specified by:
getPhraseSetsin interfaceSpeechToTextConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The phraseSets at the given index.
-
getPhraseSetsBytes
public com.google.protobuf.ByteString getPhraseSetsBytes(int index) List of names of Cloud Speech phrase sets that are used for transcription. For phrase set limitations, please refer to [Cloud Speech API quotas and limits](https://cloud.google.com/speech-to-text/quotas#content).
repeated string phrase_sets = 4 [(.google.api.resource_reference) = { ... }- Specified by:
getPhraseSetsBytesin interfaceSpeechToTextConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the phraseSets at the given index.
-
setPhraseSets
List of names of Cloud Speech phrase sets that are used for transcription. For phrase set limitations, please refer to [Cloud Speech API quotas and limits](https://cloud.google.com/speech-to-text/quotas#content).
repeated string phrase_sets = 4 [(.google.api.resource_reference) = { ... }- Parameters:
index- The index to set the value at.value- The phraseSets to set.- Returns:
- This builder for chaining.
-
addPhraseSets
List of names of Cloud Speech phrase sets that are used for transcription. For phrase set limitations, please refer to [Cloud Speech API quotas and limits](https://cloud.google.com/speech-to-text/quotas#content).
repeated string phrase_sets = 4 [(.google.api.resource_reference) = { ... }- Parameters:
value- The phraseSets to add.- Returns:
- This builder for chaining.
-
addAllPhraseSets
List of names of Cloud Speech phrase sets that are used for transcription. For phrase set limitations, please refer to [Cloud Speech API quotas and limits](https://cloud.google.com/speech-to-text/quotas#content).
repeated string phrase_sets = 4 [(.google.api.resource_reference) = { ... }- Parameters:
values- The phraseSets to add.- Returns:
- This builder for chaining.
-
clearPhraseSets
List of names of Cloud Speech phrase sets that are used for transcription. For phrase set limitations, please refer to [Cloud Speech API quotas and limits](https://cloud.google.com/speech-to-text/quotas#content).
repeated string phrase_sets = 4 [(.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
addPhraseSetsBytes
List of names of Cloud Speech phrase sets that are used for transcription. For phrase set limitations, please refer to [Cloud Speech API quotas and limits](https://cloud.google.com/speech-to-text/quotas#content).
repeated string phrase_sets = 4 [(.google.api.resource_reference) = { ... }- Parameters:
value- The bytes of the phraseSets to add.- Returns:
- This builder for chaining.
-
getAudioEncodingValue
public int getAudioEncodingValue()Audio encoding of the audio content to process.
.google.cloud.dialogflow.v2.AudioEncoding audio_encoding = 6;- Specified by:
getAudioEncodingValuein interfaceSpeechToTextConfigOrBuilder- Returns:
- The enum numeric value on the wire for audioEncoding.
-
setAudioEncodingValue
Audio encoding of the audio content to process.
.google.cloud.dialogflow.v2.AudioEncoding audio_encoding = 6;- Parameters:
value- The enum numeric value on the wire for audioEncoding to set.- Returns:
- This builder for chaining.
-
getAudioEncoding
Audio encoding of the audio content to process.
.google.cloud.dialogflow.v2.AudioEncoding audio_encoding = 6;- Specified by:
getAudioEncodingin interfaceSpeechToTextConfigOrBuilder- Returns:
- The audioEncoding.
-
setAudioEncoding
Audio encoding of the audio content to process.
.google.cloud.dialogflow.v2.AudioEncoding audio_encoding = 6;- Parameters:
value- The audioEncoding to set.- Returns:
- This builder for chaining.
-
clearAudioEncoding
Audio encoding of the audio content to process.
.google.cloud.dialogflow.v2.AudioEncoding audio_encoding = 6;- Returns:
- This builder for chaining.
-
getSampleRateHertz
public int getSampleRateHertz()Sample rate (in Hertz) of the audio content sent in the query. Refer to [Cloud Speech API documentation](https://cloud.google.com/speech-to-text/docs/basics) for more details.
int32 sample_rate_hertz = 7;- Specified by:
getSampleRateHertzin interfaceSpeechToTextConfigOrBuilder- Returns:
- The sampleRateHertz.
-
setSampleRateHertz
Sample rate (in Hertz) of the audio content sent in the query. Refer to [Cloud Speech API documentation](https://cloud.google.com/speech-to-text/docs/basics) for more details.
int32 sample_rate_hertz = 7;- Parameters:
value- The sampleRateHertz to set.- Returns:
- This builder for chaining.
-
clearSampleRateHertz
Sample rate (in Hertz) of the audio content sent in the query. Refer to [Cloud Speech API documentation](https://cloud.google.com/speech-to-text/docs/basics) for more details.
int32 sample_rate_hertz = 7;- Returns:
- This builder for chaining.
-
getLanguageCode
The language of the supplied audio. Dialogflow does not do translations. See [Language Support](https://cloud.google.com/dialogflow/docs/reference/language) for a list of the currently supported language codes. Note that queries in the same session do not necessarily need to specify the same language. If not specified, the default language configured at [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile] is used.
string language_code = 8;- Specified by:
getLanguageCodein interfaceSpeechToTextConfigOrBuilder- Returns:
- The languageCode.
-
getLanguageCodeBytes
public com.google.protobuf.ByteString getLanguageCodeBytes()The language of the supplied audio. Dialogflow does not do translations. See [Language Support](https://cloud.google.com/dialogflow/docs/reference/language) for a list of the currently supported language codes. Note that queries in the same session do not necessarily need to specify the same language. If not specified, the default language configured at [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile] is used.
string language_code = 8;- Specified by:
getLanguageCodeBytesin interfaceSpeechToTextConfigOrBuilder- Returns:
- The bytes for languageCode.
-
setLanguageCode
The language of the supplied audio. Dialogflow does not do translations. See [Language Support](https://cloud.google.com/dialogflow/docs/reference/language) for a list of the currently supported language codes. Note that queries in the same session do not necessarily need to specify the same language. If not specified, the default language configured at [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile] is used.
string language_code = 8;- Parameters:
value- The languageCode to set.- Returns:
- This builder for chaining.
-
clearLanguageCode
The language of the supplied audio. Dialogflow does not do translations. See [Language Support](https://cloud.google.com/dialogflow/docs/reference/language) for a list of the currently supported language codes. Note that queries in the same session do not necessarily need to specify the same language. If not specified, the default language configured at [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile] is used.
string language_code = 8;- Returns:
- This builder for chaining.
-
setLanguageCodeBytes
The language of the supplied audio. Dialogflow does not do translations. See [Language Support](https://cloud.google.com/dialogflow/docs/reference/language) for a list of the currently supported language codes. Note that queries in the same session do not necessarily need to specify the same language. If not specified, the default language configured at [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile] is used.
string language_code = 8;- Parameters:
value- The bytes for languageCode to set.- Returns:
- This builder for chaining.
-
getEnableWordInfo
public boolean getEnableWordInfo()If `true`, Dialogflow returns [SpeechWordInfo][google.cloud.dialogflow.v2.SpeechWordInfo] in [StreamingRecognitionResult][google.cloud.dialogflow.v2.StreamingRecognitionResult] with information about the recognized speech words, e.g. start and end time offsets. If false or unspecified, Speech doesn't return any word-level information.
bool enable_word_info = 9;- Specified by:
getEnableWordInfoin interfaceSpeechToTextConfigOrBuilder- Returns:
- The enableWordInfo.
-
setEnableWordInfo
If `true`, Dialogflow returns [SpeechWordInfo][google.cloud.dialogflow.v2.SpeechWordInfo] in [StreamingRecognitionResult][google.cloud.dialogflow.v2.StreamingRecognitionResult] with information about the recognized speech words, e.g. start and end time offsets. If false or unspecified, Speech doesn't return any word-level information.
bool enable_word_info = 9;- Parameters:
value- The enableWordInfo to set.- Returns:
- This builder for chaining.
-
clearEnableWordInfo
If `true`, Dialogflow returns [SpeechWordInfo][google.cloud.dialogflow.v2.SpeechWordInfo] in [StreamingRecognitionResult][google.cloud.dialogflow.v2.StreamingRecognitionResult] with information about the recognized speech words, e.g. start and end time offsets. If false or unspecified, Speech doesn't return any word-level information.
bool enable_word_info = 9;- Returns:
- This builder for chaining.
-
getUseTimeoutBasedEndpointing
public boolean getUseTimeoutBasedEndpointing()Use timeout based endpointing, interpreting endpointer sensitivity as seconds of timeout value.
bool use_timeout_based_endpointing = 11;- Specified by:
getUseTimeoutBasedEndpointingin interfaceSpeechToTextConfigOrBuilder- Returns:
- The useTimeoutBasedEndpointing.
-
setUseTimeoutBasedEndpointing
Use timeout based endpointing, interpreting endpointer sensitivity as seconds of timeout value.
bool use_timeout_based_endpointing = 11;- Parameters:
value- The useTimeoutBasedEndpointing to set.- Returns:
- This builder for chaining.
-
clearUseTimeoutBasedEndpointing
Use timeout based endpointing, interpreting endpointer sensitivity as seconds of timeout value.
bool use_timeout_based_endpointing = 11;- Returns:
- This builder for chaining.
-