Dialogflow V2 API - Class Google::Cloud::Dialogflow::V2::InputAudioConfig (v1.0.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_automatic_punctuation

def enable_automatic_punctuation() -> ::Boolean
Returns
  • (::Boolean) — Enable automatic punctuation option at the speech backend.

#enable_automatic_punctuation=

def enable_automatic_punctuation=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Enable automatic punctuation option at the speech backend.
Returns
  • (::Boolean) — Enable automatic punctuation option at the speech backend.

#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) — Optional. Which Speech model to select for the given request. For more information, see Speech models.

#model=

def model=(value) -> ::String
Parameter
  • value (::String) — Optional. Which Speech model to select for the given request. For more information, see Speech models.
Returns
  • (::String) — Optional. Which Speech model to select for the given request. For more information, see Speech models.

#model_variant

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

#model_variant=

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

#opt_out_conformer_model_migration

def opt_out_conformer_model_migration() -> ::Boolean
Returns
  • (::Boolean) —

    If true, the request will opt out for STT conformer model migration. This field will be deprecated once force migration takes place in June

    1. Please refer to Dialogflow ES Speech model migration.

#opt_out_conformer_model_migration=

def opt_out_conformer_model_migration=(value) -> ::Boolean
Parameter
  • value (::Boolean) —

    If true, the request will opt out for STT conformer model migration. This field will be deprecated once force migration takes place in June

    1. Please refer to Dialogflow ES Speech model migration.
Returns
  • (::Boolean) —

    If true, the request will opt out for STT conformer model migration. This field will be deprecated once force migration takes place in June

    1. Please refer to Dialogflow ES Speech model migration.

#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