RtpLinearPcm interface

A description of a LinearPCM stream being delivered via RTP

Signature:

export interface RtpLinearPcm

Properties

Property Type Description

bitDepth

RtpLinearPcmBitDepth

The bit depth of the stream. 24-bit input is reduced to 16-bit (with rounding) on the way in: Norsk’s raw audio carries 16-bit samples.

channelLayout

ChannelLayout

The channel layotu the stream

kind

"linearpcm"

packetDurationMs?

number

(Optional) How much audio to gather into one frame, in milliseconds. Combined with the sender’s packet size this decides how many RTP packets make a frame. Unset = 40ms.

sampleRate

SampleRate

The sample rate of the stream