Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

neutrino_audiomatic

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

neutrino_audiomatic

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Audiomatic

Companion gem to Audiomatic app, provides drop in integration to audio processing services. It provides method which simplyfly sending request to audiomatic.

Installation

Add this line to your application's Gemfile:

gem 'Audiomatic'

And then execute:

$ bundle

Or install it yourself as:

$ gem install Audiomatic

Usage

Audiomatic configuration

For heroku users, configuration is really easy.Just install Audiomatic (url) plugin and paste code below to config/initializer/audiomatic_config.rb:

Audiomatic.config do |c|
  c.processor_host = ENV['AUDIOMATIC_URL']
  c.audiomatic_secret = ENV['AUDIOMATIC_SHARED_SECRET']
end

otherwise you should provide your unique URL and NeutrinoAudiomatic secret:

Audiomatic.config do |c|
  c.processor_host = "https://login:password@audiomatic.radiokitapp.org/api/
  process"
  c.audiomatic_secret = ENV['AUDIOMATIC_SHARED_SECRET']
end

Sending request

Audiomatic_gem provides method to communicate with Audiomatic which simplifies formation request body and senting it. Those methods calls like processors which audiomatic provides. To use it, you need url to file which you want to analyze and endpoint which gets audiomatic answer. Example:

    file_url = "http://mysite.com/path/to/file.mp3"
    callback_url = "http://mysite.com/callbacks/file.mp3"

    Audiomatic::Processor.replaygain(file_url, callback_url: callback_url)

This method return information about success or error during sending your request to Audiomatic server.

avalible method:

  • Audiomatic::Processor.duration
  • Audiomatic::Processor.replaygain
  • Audiomatic::Processor.tags
  • Audiomatic::Processor.webbrowser
  • Audiomatic::Processor.waveform

Processing your data can take a while, a speciality a large files. Thats why Audiomatic works asynchronously - your results will arive in seperate request. You have to provide your onw endpoint to get the Audiomatic answer.

Audimatic sends answer in json

Audiomatic processors and results

ProcessorsResultsFormat
durationdurationInteger [ms]
tagsall-tags-you-setString
replaygainreplaygain-track-peakfload [dB]
replaygain-track-gainfload [dB]
replaygain-reference-levelfload [dB]

License

The gem is available as open source under the terms of the MIT License.

FAQs

Package last updated on 12 Sep 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc