Lingo.Voice.Ogg (Lingo v0.4.2)

Copy Markdown View Source

Reads Opus packets out of Ogg Opus audio (RFC 3533, RFC 7845).

Parsing works on a stream of binary chunks, so files and pipes are read lazily. Pages with a bad checksum are skipped, as are the OpusHead and OpusTags header packets. Chained files, one track after another as radio streams send them, play through.

Summary

Functions

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

Streams the Opus packets of an Ogg Opus file.

Functions

packets(chunks)

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

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

stream!(path)

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

Streams the Opus packets of an Ogg Opus file.