πŸ”ŠAudio

To upload an audio to the Audio API, send a POST request to the API endpoint.

API Endpoint

URL: https://api.fivemerr.com/v1/media/audios

Authorization

You can access the API using one of the following methods:

  • Include the Authorization header with your API key.

  • Include the apiKey as a query parameter in the URL.

Supported Request Formats

The API supports the following request formats:

  • form-data

  • json

  • x-www-form-urlencoded

Each request must include the appropriate header to be accepted.

Form Data Requests

Body

The request body should be a form-data object containing a file named file or data.

Response

The response JSON body takes the following shape:

Example with Node.js (with Axios)

Example with Python

JSON Requests

Body

The request body should be a JSON string containing a key named file or data. Data should be encoded as base64 in the following format.

Example with Node.js (with Axios)

x-www-form-urlencoded Requests

Body

The request body should be x-www-form-urlencoded containing a key named file or data. Data should be encoded as base64 in the following format.

Example with Node.js (with Axios)

Supported Audio Types

If you need any other added, let us know.

  • MPEG - .mpeg Files with the extension .mp1, .mp2, .mp3 must use audio/mpeg mimetype. audio/mp3 doesn't exist as such, it is a common mime type but it's official approach is to use the audio/mpeg.

    • MP4- .mp3

    • MP3- .mp4

  • WAV - .wav

  • OGG - .ogg

  • AAC - .aac

  • FLAC - .flac

  • WMA - .wma

  • AIFF - .aiff or .aif

  • PCM - .pcm

  • AMR - .amr

Last updated