Home Reference Source
public class | source

VoiceResponse

Extends:

Response → VoiceResponse

Wrapper for voice channel audio responses.

Constructor Summary

Public Constructor
public

constructor(context: Object, inputMethod: VoiceInputMethod, payload: *, options: StreamOptions)

Constructor.

Inherited Summary

From class Response
private

The function handling the message response.

public

respond(): *

Executes the message response handler.

Public Constructors

public constructor(context: Object, inputMethod: VoiceInputMethod, payload: *, options: StreamOptions) source

Constructor.

Override:

Response#constructor

Params:

NameTypeAttributeDescription
context Object

The handler context.

inputMethod VoiceInputMethod

The method of voice input to use.

payload *

The source of the voice input.

options StreamOptions
  • optional
  • default: {}

The options for playing the stream.