/speakers

Play audio files through speakers

Primary LanguageElixirMIT LicenseMIT

Speakers

This library let's you play audio files through the speakers (default output device). It also gives you the ability handle the file like a media player.

iex> Speakers.add_to_queue("/Users/test/Downloads/audio.mp3")

It uses rust via a NIF under the hood and is essentially a wrapper over the excellent library rodio

Installation

If available in Hex, the package can be installed by adding speakers to your list of dependencies in mix.exs:

def deps do
  [
    {:speakers, "~> 0.1.0"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/speakers.