Google Cloud Dialogflow Cx V3 Client - Class DtmfSettings (0.1.1)

Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class DtmfSettings.

Define behaviors for DTMF (dual tone multi frequency).

Generated from protobuf message google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings

Namespace

Google \ Cloud \ Dialogflow \ Cx \ V3 \ AdvancedSettings

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ enabled bool

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).

↳ max_digits int

Max length of DTMF digits.

↳ finish_digit string

The digit that terminates a DTMF digit sequence.

getEnabled

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).

Returns
TypeDescription
bool

setEnabled

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).

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getMaxDigits

Max length of DTMF digits.

Returns
TypeDescription
int

setMaxDigits

Max length of DTMF digits.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getFinishDigit

The digit that terminates a DTMF digit sequence.

Returns
TypeDescription
string

setFinishDigit

The digit that terminates a DTMF digit sequence.

Parameter
NameDescription
var string
Returns
TypeDescription
$this