Endpoints
POST /upload
Upload an audio file for future processing.
- Form data:
file=@path/to/file.wav - Optional url params:
?inputExt=wav: Overrides input extension
Response:
Examples
Simple example:
Now we can use this fileId in a request to /remove-noise. See below for how.
POST /remove-noise
Submit an input to the API for noise removal.
- JSON body:
Response:
Examples
Using fileId from /upload:
Reduce noise by 90% using fileId from /upload:
Remove noise from a remote video:
Remove noise from audio within S3 using presigned URLs (read more here):
GET /remove-noise/<jobId>/status
Retrieve the status of a job. Response possibilities:
Examples
Here is an example:
So, now we would be able to download our file by prepending https://api.audo.ai/v1/:
WEBSOCKET /wss/remove-noise/<jobId>/status
Retrieve the status of a job in realtime without polling. This is a completely optional alternative method to find the status of a job.
- Message format: Each message is a json encoded object in the exact same representation as the endpoint above:
- Finally, don't forget to include the authentication header when connecting via
x-api-key: $AUDO_API_KEY.
Examples
Here is an example that uses websocat:
So, same as before, we can now download our file by prepending https://api.audo.ai/v1/: