VoiceDataStream

VoiceDataStream

Represents a voice data stream

Constructor

new VoiceDataStream()

Properties:
Name Type Description
type String

The targeted voice data type for the stream, either "opus" or "pcm"

Source:

Extends

  • EventEmitter

Events

data

Fired when a voice data packet is received

Properties:
Name Type Description
data Buffer

The voice data

userID String

The user who sent the voice packet

timestamp Number

The intended timestamp of the packet

sequence Number

The intended sequence number of the packet

Source: