AI Mastering API

AI Mastering provides API interface. You can access following functions.

  • Upload/Download audio
  • Do the mastering
  • Change the target loudness
  • Change the mastering level
  • etc...

API Specification

AI Mastering API is defined by Open API Specification. For details, please click following links.

API Client Libraries

Preparation

Please set the following environment variables to try tutorials. You can get the api access token from here.
export AIMASTERING_ACCESS_TOKEN=[API access token]

Javascript (Node)

Tutorial
# clone tutorial repository
git clone git@github.com:ai-mastering/tutorial-node.git
cd tutorial-node

# install dependencies
npm install

# upload test.wav, do the mastering, and download the output as output.wav
node main.js --input test.wav --output output.wav

#For details, please see main.js
Resources

Ruby

Tutorial
# clone tutorial repository
git clone git@github.com:ai-mastering/tutorial-ruby.git
cd tutorial-ruby

# install dependencies
bundle install

# upload test.wav, do the mastering, and download the output as output.wav
bundle exec ruby main.rb --input test.wav --output output.wav

#For details, please see main.rb
Resources

Other languages

API client libraries for other languages are in preparation. We generate client libraries by swagger-codegen. Some may be OK just to generate it, others may require fine tuning depending on the language. So it takes a while. Contributions are welcome!