Class InputAction.Builder

java.lang.Object
com.vonage.client.voice.ncco.InputAction.Builder
Enclosing class:
InputAction

public static class InputAction.Builder extends Object
  • Method Details

    • dtmf

      Parameters:
      dtmf - DTMF settings object to enable DTMF input.
      Returns:
      This builder to keep building the input action.
      Since:
      6.0.0
    • eventUrl

      Parameters:
      eventUrl - Vonage sends the digits pressed by the callee to this URL after timeOut pause in activity or when # is pressed.
      Returns:
      This builder to keep building the input action.
    • eventUrl

      public InputAction.Builder eventUrl(String... eventUrl)
      Parameters:
      eventUrl - Vonage sends the digits pressed by the callee to this URL after timeOut pause in activity or when # is pressed.
      Returns:
      This builder to keep building the input action.
    • eventMethod

      Parameters:
      eventMethod - The HTTP method used to send event information to event_url The default value is POST.
      Returns:
      This builder to keep building the input action.
    • speech

      Parameters:
      speech - Automatic speech recognition settings object to enable speech input. Required if dtmf is not provided.
      Returns:
      This builder to keep building the input action.
      Since:
      6.0.0
    • type

      Parameters:
      type - Acceptable input type, can be set as [ "dtmf" ] for DTMF input only, [ "speech" ] for ASR only, or [ "dtmf", "speech" ] for both.
      Returns:
      This builder to keep building the input action.
    • build

      public InputAction build()
      Returns:
      A new InputAction object from the stored builder options.