Lingo.Voice.FFmpeg (Lingo v0.4.2)

Copy Markdown View Source

Plays anything ffmpeg can read: it transcodes the input to Ogg Opus in an external ffmpeg process and streams the Opus packets out of its output.

ffmpeg must be on the PATH; no native code is linked into the VM.

Summary

Functions

Streams the Opus packets of input, a file path or URL.

Functions

stream(input, opts \\ [])

@spec stream(
  String.t(),
  keyword()
) :: Enumerable.t()

Streams the Opus packets of input, a file path or URL.

Options:

  • :bitrate - Opus bitrate in bits per second, defaults to 64000
  • :ffmpeg - path to the ffmpeg executable