Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v3beta1/classes.rb,
lib/google/apis/dialogflow_v3beta1/representations.rb,
lib/google/apis/dialogflow_v3beta1/representations.rb
Overview
Define behaviors for DTMF (dual tone multi frequency).
Instance Attribute Summary collapse
-
#enabled ⇒ Boolean
(also: #enabled?)
If true, incoming audio is processed for DTMF (dual tone multi frequency) events.
-
#endpointing_timeout_duration ⇒ String
Endpoint timeout setting for matching dtmf input to regex.
-
#finish_digit ⇒ String
The digit that terminates a DTMF digit sequence.
-
#interdigit_timeout_duration ⇒ String
Interdigit timeout setting for matching dtmf input to regex.
-
#max_digits ⇒ Fixnum
Max length of DTMF digits.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings
constructor
A new instance of GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings
Returns a new instance of GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings.
3998 3999 4000 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 3998 def initialize(**args) update!(**args) end |
Instance Attribute Details
#enabled ⇒ Boolean Also known as: enabled?
If true, incoming audio is processed for DTMF (dual tone multi frequency)
events. For example, if the caller presses a button on their telephone keypad
and DTMF processing is enabled, Dialogflow will detect the event (e.g. a "3"
was pressed) in the incoming audio and pass the event to the bot to drive
business logic (e.g. when 3 is pressed, return the account balance).
Corresponds to the JSON property enabled
3975 3976 3977 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 3975 def enabled @enabled end |
#endpointing_timeout_duration ⇒ String
Endpoint timeout setting for matching dtmf input to regex.
Corresponds to the JSON property endpointingTimeoutDuration
3981 3982 3983 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 3981 def endpointing_timeout_duration @endpointing_timeout_duration end |
#finish_digit ⇒ String
The digit that terminates a DTMF digit sequence.
Corresponds to the JSON property finishDigit
3986 3987 3988 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 3986 def finish_digit @finish_digit end |
#interdigit_timeout_duration ⇒ String
Interdigit timeout setting for matching dtmf input to regex.
Corresponds to the JSON property interdigitTimeoutDuration
3991 3992 3993 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 3991 def interdigit_timeout_duration @interdigit_timeout_duration end |
#max_digits ⇒ Fixnum
Max length of DTMF digits.
Corresponds to the JSON property maxDigits
3996 3997 3998 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 3996 def max_digits @max_digits end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4003 4004 4005 4006 4007 4008 4009 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4003 def update!(**args) @enabled = args[:enabled] if args.key?(:enabled) @endpointing_timeout_duration = args[:endpointing_timeout_duration] if args.key?(:endpointing_timeout_duration) @finish_digit = args[:finish_digit] if args.key?(:finish_digit) @interdigit_timeout_duration = args[:interdigit_timeout_duration] if args.key?(:interdigit_timeout_duration) @max_digits = args[:max_digits] if args.key?(:max_digits) end |