Lingo.Voice.WebM (Lingo v0.4.2)

Copy Markdown View Source

Reads Opus packets out of WebM and Matroska audio, the container YouTube and most streaming sites serve Opus in.

Parsing works on a stream of binary chunks. Container elements are entered rather than read whole, so live streams with clusters of unknown size work, and only the first Opus track's blocks are kept: everything else is skipped without being buffered.

Summary

Functions

Turns a stream of WebM data chunks into a stream of Opus packets.

Streams the Opus packets of a WebM or Matroska file.

Functions

packets(chunks)

@spec packets(Enumerable.t()) :: Enumerable.t()

Turns a stream of WebM data chunks into a stream of Opus packets.

stream!(path)

@spec stream!(Path.t()) :: Enumerable.t()

Streams the Opus packets of a WebM or Matroska file.