Skip to content

libersys/rtp-ogg-opus

Repository files navigation

rtp-ogg-opus

RTP Ogg/Opus Tools for NodeJS

Introduction

This module contains five useful transform streams to work with RTP and Ogg/Opus. This classes are based on native bindings to libopus 1.3.1 and libogg 1.3.4. The core of this library is based on opus-tools 0.2.

  • OggOpusToRtp: used to read ogg/opus files or streams and send them through RTP.
  • RtpDecoder: used to decode RTP packets into streams (payload).
  • RtpEncoder: used to encode streams into RTP packets.
  • RtpOpusToPcm: used to read RTP Opus encoded packets and convert them to Linear PCM.
  • RtpToOggOpus: used to read RTP Opus encoded packets and encapsulate them in Ogg containers.

Installation

npm install rtp-ogg-opus

Usage

Check out our examples project.