Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2InputAudioConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v2/classes.rb,
lib/google/apis/dialogflow_v2/representations.rb,
lib/google/apis/dialogflow_v2/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2InputAudioConfig

Returns a new instance of GoogleCloudDialogflowV2InputAudioConfig.



11839
11840
11841
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11839

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#audio_encodingString

Corresponds to the JSON property audioEncoding

Returns:

  • (String)


11766
11767
11768
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11766

def audio_encoding
  @audio_encoding
end

#disable_no_speech_recognized_eventBoolean Also known as: disable_no_speech_recognized_event?

Corresponds to the JSON property disableNoSpeechRecognizedEvent

Returns:

  • (Boolean)


11771
11772
11773
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11771

def disable_no_speech_recognized_event
  @disable_no_speech_recognized_event
end

#enable_automatic_punctuationBoolean Also known as: enable_automatic_punctuation?

Corresponds to the JSON property enableAutomaticPunctuation

Returns:

  • (Boolean)


11777
11778
11779
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11777

def enable_automatic_punctuation
  @enable_automatic_punctuation
end

#enable_voice_activity_eventsBoolean Also known as: enable_voice_activity_events?

Corresponds to the JSON property enableVoiceActivityEvents

Returns:

  • (Boolean)


11783
11784
11785
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11783

def enable_voice_activity_events
  @enable_voice_activity_events
end

#enable_word_infoBoolean Also known as: enable_word_info?

Corresponds to the JSON property enableWordInfo

Returns:

  • (Boolean)


11789
11790
11791
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11789

def enable_word_info
  @enable_word_info
end

#language_codeString

Corresponds to the JSON property languageCode

Returns:

  • (String)


11795
11796
11797
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11795

def language_code
  @language_code
end

#modelString

Corresponds to the JSON property model

Returns:

  • (String)


11800
11801
11802
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11800

def model
  @model
end

#model_variantString

Corresponds to the JSON property modelVariant

Returns:

  • (String)


11805
11806
11807
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11805

def model_variant
  @model_variant
end

#opt_out_conformer_model_migrationBoolean Also known as: opt_out_conformer_model_migration?

Corresponds to the JSON property optOutConformerModelMigration

Returns:

  • (Boolean)


11810
11811
11812
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11810

def opt_out_conformer_model_migration
  @opt_out_conformer_model_migration
end

#phrase_hintsArray<String>

Corresponds to the JSON property phraseHints

Returns:

  • (Array<String>)


11816
11817
11818
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11816

def phrase_hints
  @phrase_hints
end

#phrase_setsArray<String>

Corresponds to the JSON property phraseSets

Returns:

  • (Array<String>)


11821
11822
11823
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11821

def phrase_sets
  @phrase_sets
end

#sample_rate_hertzFixnum

Corresponds to the JSON property sampleRateHertz

Returns:

  • (Fixnum)


11826
11827
11828
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11826

def sample_rate_hertz
  @sample_rate_hertz
end

#single_utteranceBoolean Also known as: single_utterance?

Corresponds to the JSON property singleUtterance

Returns:

  • (Boolean)


11831
11832
11833
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11831

def single_utterance
  @single_utterance
end

#speech_contextsArray<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SpeechContext>

Corresponds to the JSON property speechContexts



11837
11838
11839
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11837

def speech_contexts
  @speech_contexts
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11844

def update!(**args)
  @audio_encoding = args[:audio_encoding] if args.key?(:audio_encoding)
  @disable_no_speech_recognized_event = args[:disable_no_speech_recognized_event] if args.key?(:disable_no_speech_recognized_event)
  @enable_automatic_punctuation = args[:enable_automatic_punctuation] if args.key?(:enable_automatic_punctuation)
  @enable_voice_activity_events = args[:enable_voice_activity_events] if args.key?(:enable_voice_activity_events)
  @enable_word_info = args[:enable_word_info] if args.key?(:enable_word_info)
  @language_code = args[:language_code] if args.key?(:language_code)
  @model = args[:model] if args.key?(:model)
  @model_variant = args[:model_variant] if args.key?(:model_variant)
  @opt_out_conformer_model_migration = args[:opt_out_conformer_model_migration] if args.key?(:opt_out_conformer_model_migration)
  @phrase_hints = args[:phrase_hints] if args.key?(:phrase_hints)
  @phrase_sets = args[:phrase_sets] if args.key?(:phrase_sets)
  @sample_rate_hertz = args[:sample_rate_hertz] if args.key?(:sample_rate_hertz)
  @single_utterance = args[:single_utterance] if args.key?(:single_utterance)
  @speech_contexts = args[:speech_contexts] if args.key?(:speech_contexts)
end