Uploading audio files for transcription

    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 audio file directly to the API. All uploads are immediately deleted after transcription, we do not store uploads.

    Upload your Audio File

    If you're not using our code examples, keep in mind the API expects the upload to be streamed to the API using Chunked Transfer Encoding. Most http libraries have a nice interface for handling this. For example, in Python the requests library has a simple way to do Chunked Transfer Encoding uploads.

    Once your upload finishes, you'll get back a JSON response like this:

    {"upload_url": "https://cdn.assemblyai.com/upload/ccbbbfaf-f319-4455-9556-272d48faaf7f"}

    The "upload_url" is a private URL, accessible only to our backend servers, that you can submit to the /v2/transcript endpoint to be transcribed.

    Submit your Upload for Transcription

    Now that your audio file is uploaded, you can submit it for transcription just like any normal audio file.

    For more info on the complete transcription process, check out the Quickstart tutorial.