Audiograms
Audiogram is an Elixir library for generating Audiograms based en FFmpeg, FFmpeg is the leading multimedia framework, able to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created., for knowing more about this, read the next official page Ffmpeg.
This API was developed based on the architecture Application Layering - A Pattern for Extensible Elixir Application Design.
This library needs the next required inputs: audio, an image, a start time, and end time to cut the audio, also like optional a resolution and color to the audiogram. The API first cuts the audio according to the time, then takes that resulting audio and together with the image generates an audiogram. All this process is asynchronous and concurrent.
The library also lets to get the audiograms by status, the status is: registered, processing, completed, and failed.
Installation
The following operating system dependencies are required:
- ffmpeg: Use the next link to install FFmpeg download in your operating system.
- wget: Downloads files from the web.
- grep: Searches text and strings in a given file.
- awk: Searches words with a pattern.
- sh: Executes commands read from a command line string.
- ps: Displays information related to the processes running in the system.
If available in Hex, the package can be installed
by adding audiograms to your list of dependencies in mix.exs:
def deps do
[
{:audiograms, "~> 0.1.1"}
]
endDocumentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/audiograms.