Documentations
Audio source separation(Beta)
Service: https://arts.api.yating.tw/v1
You can use it to remove background music, including instruments and vocals. Make sure you upload the audio file to a cloud storage service before making a request.
After processing, you’ll get a new audio file uri.If your audio files aren't accessible via a URL already (like in an S3 bucket, static file server, or via an API like Twilio), you can upload your files directly to the Yating, please see 4. Upload audio file.
Make a source separation request
Request
URL: /sourceSeparations
Method: POST
Header
Name
| Type
| Info
|
*key | String
| |
*Content-Type | String
| Only “application/json”
|
Body
Name
| Type
| Info
|
*audioUri | string
| Only mp3, wav, mp4 and mov. |
|
Response
|
Get status
After you submit audio files for processing, the "status" key will go from "pending" to "ongoing" and finally to "completed". If something goes wrong, it goes to "error". You can make a GET request, as shown below, to check for updates on the status.
You'll have to make repeated GET requests until your status is "completed" or "error". Once the status key is shown as "completed", you can get a new audio uri in step3.
Request
URL: /sourceSeparations?page=1&perPage=10&status=pending
Method: GET
Header
Name
| Type
| Info
|
*key | String
| Bearer {key}
|
Query parameter
Name
| Info
|
page
| number
|
perPage
| number
|
status
| pending, ongoing, completed, error. if no value, get all list
|
Response
|
Get new audio uri
Once the status key is shown as "completed", you are able to query the new audio uri in path. These results will be preserved up to 24 hours after the competition.
Request
URL: /sourceSeparations/{source_separation_id}
Method: GET
Header
Name
| Type
| Info
|
*key | String
| Bearer {key}
|
Query parameter
Name
| Info
|
source_separation_id | string, uid. |
Response
|
Upload audio file
Once your upload finishes, you'll get back a JSON response that includes an url. The url points to a private URL, accessible only to Yating backend servers. The file url will be preserved up to 24 hours after being uploaded.
Request
URL: /uploads
Method: POST
cURL sample
|
Python sample
|
Limits
Max concurrent requests per key:1