Home Reference Source
public class | source

OpusVoiceResponse

Extends:

ResponseVoiceResponse → OpusVoiceResponse

Wrapper for Opus voice responses.

Constructor Summary

Public Constructor
public

constructor(context: Object, stream: ReadableStream, 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, stream: ReadableStream, options: StreamOptions) source

Constructor.

Override:

VoiceResponse#constructor

Params:

NameTypeAttributeDescription
context Object

The handler context.

stream ReadableStream

The Opus stream.

options StreamOptions
  • optional
  • default: {}

The options for playing the stream.