Dialogflow V2 API - Class Google::Cloud::Dialogflow::V2::InputAudioConfig (v0.19.0)

Reference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::InputAudioConfig.

Instructs the speech recognizer how to process the audio content.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#audio_encoding

def audio_encoding() -> ::Google::Cloud::Dialogflow::V2::AudioEncoding
Returns

#audio_encoding=

def audio_encoding=(value) -> ::Google::Cloud::Dialogflow::V2::AudioEncoding
Parameter
Returns

#disable_no_speech_recognized_event

def disable_no_speech_recognized_event() -> ::Boolean
Returns

#disable_no_speech_recognized_event=

def disable_no_speech_recognized_event=(value) -> ::Boolean
Parameter
Returns

#enable_word_info

def enable_word_info() -> ::Boolean
Returns
  • (::Boolean) — If true, Dialogflow returns SpeechWordInfo in 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.

#enable_word_info=

def enable_word_info=(value) -> ::Boolean
Parameter
  • value (::Boolean) — If true, Dialogflow returns SpeechWordInfo in 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.
Returns
  • (::Boolean) — If true, Dialogflow returns SpeechWordInfo in 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.

#language_code

def language_code() -> ::String
Returns
  • (::String) — Required. The language of the supplied audio. Dialogflow does not do translations. See Language Support 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.

#language_code=

def language_code=(value) -> ::String
Parameter
  • value (::String) — Required. The language of the supplied audio. Dialogflow does not do translations. See Language Support 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.
Returns
  • (::String) — Required. The language of the supplied audio. Dialogflow does not do translations. See Language Support 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.

#model

def model() -> ::String
Returns
  • (::String) — Which Speech model to select for the given request. Select the model best suited to your domain to get best results. If a model is not explicitly specified, then we auto-select a model based on the parameters in the InputAudioConfig. 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 for more details.

#model=

def model=(value) -> ::String
Parameter
  • value (::String) — Which Speech model to select for the given request. Select the model best suited to your domain to get best results. If a model is not explicitly specified, then we auto-select a model based on the parameters in the InputAudioConfig. 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 for more details.
Returns
  • (::String) — Which Speech model to select for the given request. Select the model best suited to your domain to get best results. If a model is not explicitly specified, then we auto-select a model based on the parameters in the InputAudioConfig. 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 for more details.

#model_variant

def model_variant() -> ::Google::Cloud::Dialogflow::V2::SpeechModelVariant
Returns

#model_variant=

def model_variant=(value) -> ::Google::Cloud::Dialogflow::V2::SpeechModelVariant
Parameter
Returns

#phrase_hints

def phrase_hints() -> ::Array<::String>
Returns

#phrase_hints=

def phrase_hints=(value) -> ::Array<::String>
Parameter
Returns

#sample_rate_hertz

def sample_rate_hertz() -> ::Integer
Returns

#sample_rate_hertz=

def sample_rate_hertz=(value) -> ::Integer
Parameter
  • value (::Integer) — Required. Sample rate (in Hertz) of the audio content sent in the query. Refer to Cloud Speech API documentation for more details.
Returns

#single_utterance

def single_utterance() -> ::Boolean
Returns
  • (::Boolean) — If false (default), recognition does not cease until the client closes the stream. If true, the recognizer will detect a single spoken utterance in input audio. Recognition ceases when it detects the audio's voice has stopped or paused. In this case, once a detected intent is received, the client should close the stream and start a new request with a new stream as needed. Note: This setting is relevant only for streaming methods. Note: When specified, InputAudioConfig.single_utterance takes precedence over StreamingDetectIntentRequest.single_utterance.

#single_utterance=

def single_utterance=(value) -> ::Boolean
Parameter
  • value (::Boolean) — If false (default), recognition does not cease until the client closes the stream. If true, the recognizer will detect a single spoken utterance in input audio. Recognition ceases when it detects the audio's voice has stopped or paused. In this case, once a detected intent is received, the client should close the stream and start a new request with a new stream as needed. Note: This setting is relevant only for streaming methods. Note: When specified, InputAudioConfig.single_utterance takes precedence over StreamingDetectIntentRequest.single_utterance.
Returns
  • (::Boolean) — If false (default), recognition does not cease until the client closes the stream. If true, the recognizer will detect a single spoken utterance in input audio. Recognition ceases when it detects the audio's voice has stopped or paused. In this case, once a detected intent is received, the client should close the stream and start a new request with a new stream as needed. Note: This setting is relevant only for streaming methods. Note: When specified, InputAudioConfig.single_utterance takes precedence over StreamingDetectIntentRequest.single_utterance.

#speech_contexts

def speech_contexts() -> ::Array<::Google::Cloud::Dialogflow::V2::SpeechContext>
Returns

#speech_contexts=

def speech_contexts=(value) -> ::Array<::Google::Cloud::Dialogflow::V2::SpeechContext>
Parameter
Returns