Table of Contents

Class MultiInputAction

Namespace
Vonage.Voice.Nccos
Assembly
Vonage.dll

Represents an NCCO Input action that collects user input via DTMF keypad tones, automatic speech recognition (ASR), or both.

public class MultiInputAction : NccoAction
Inheritance
MultiInputAction
Inherited Members

Properties

Action

The type of NCCO action to execute.

public override NccoAction.ActionType Action { get; }

Property Value

NccoAction.ActionType

Dtmf

DTMF settings. Should be specified to enable DTMF input.

[JsonProperty("dtmf")]
public DtmfSettings Dtmf { get; set; }

Property Value

DtmfSettings

EventMethod

The HTTP method used to send event information to event_url The default value is POST.

[JsonProperty("eventMethod")]
public string EventMethod { get; set; }

Property Value

string

EventUrl

Vonage sends the digits pressed by the callee to this URL 1) after timeOut pause in activity or when # is pressed for DTMF or 2) after user stops speaking or 30 seconds of speech for speech input.

[JsonProperty("eventUrl")]
public string[] EventUrl { get; set; }

Property Value

string[]

Mode

Input processing mode, currently only applicable to DTMF. Valid values are synchronous (the default) and asynchronous. If set to asynchronous, all DTMF settings must be left blank. In asynchronous mode, digits are sent one at a time to the event webhook in real time. In the default synchronous mode, this is controlled by the DTMF settings instead and the inputs are sent in batch.

[JsonProperty("mode")]
[JsonConverter(typeof(StringEnumConverter))]
public MultiInputAction.InputMode Mode { get; set; }

Property Value

MultiInputAction.InputMode

Speech

Speech recognition settings. Should be specified to enable speech input.

[JsonProperty("speech")]
public SpeechSettings Speech { get; set; }

Property Value

SpeechSettings

Type

Acceptable input type. Can be set as [ "dtmf" ] for DTMF input only, [ "speech" ] for ASR only, or [ "dtmf", "speech" ] for both. Is required.

[JsonProperty("type")]
public IEnumerable<NccoInputType> Type { get; set; }

Property Value

IEnumerable<NccoInputType>