
Getting Started Guide
How to Use AssemblyAI
A practical guide to get you up and running with AssemblyAI. Written by Delv Editorial, Delv Team.
Getting started with AssemblyAI
In this guide, you will learn how to use AssemblyAI to transcribe audio files and detect speakers. By the end, you’ll be able to set up your account, make your first API call, and improve your transcription results.Step 1: Sign up and set up
- Go to AssemblyAI's website.
- Click on the Get Started for Free button.
- Fill in the required information to create your account.
- Once you are logged in, navigate to the API Keys section in the dashboard to find your unique API key.
Step 2: Your first transcription
- Prepare an audio file (WAV, MP3, etc.) that you want to transcribe.
- Use a tool like Postman or cURL to make your API call.
- Construct a POST request to
https://api.assemblyai.com/v2/transcriptwith the following JSON body:
{
"audio_url": "YOUR_AUDIO_FILE_URL"
}
- Include your API key in the headers:
Authorization: YOUR_API_KEY
- Send the request. You’ll receive a JSON response containing a
transcript_id. Use this ID to check the status of your transcription by sending a GET request tohttps://api.assemblyai.com/v2/transcript/YOUR_TRANSCRIPT_ID.
Step 3: Get better results
- To enhance your transcription, include optional parameters in your POST request:
"speaker_labels": true to your JSON body.
- For automatic punctuation, add "punctuate": true.
- You can also specify language with "language_code": "en-US" for English.
- Check the status of your transcription by sending a GET request periodically until you see
"status": "completed"in the response.