Creating summarized chapters from podcasts
The Auto Chapters model summarizes audio data over time into chapters. Chapters makes it easy for users to navigate and find specific information. Each chapter contains the following:
- Summary
- One-line gist
- Headline
- Start and end timestamps
In this step-by-step guide, you'll learn how to apply the model. You'll send the auto_chapters
parameter in your request, and then use chapters
property from the response.
You can also learn the content on this page from Automatic Chapter Detection With AssemblyAI on AssemblyAI's YouTube channel.
Step-by-step instructions
- 1
Create a new file and import the necessary libraries for making an HTTP request.
- 2
Set up the API endpoint and headers. The headers should include your API key.
- 3
Upload your local file to the AssemblyAI API.
- 4
Use the
upload_url
returned by the AssemblyAI API to create a JSON payload containing theaudio_url
parameter and theauto_chapters
parameter set toTrue
. - 5
Make a
POST
request to the AssemblyAI API endpoint with the payload and headers. - 6
After making the request, you'll receive an ID for the transcription. Use it to poll the API every few seconds to check the status of the transcript job. Once the status is
completed
, you can retrieve the transcript from the API response, using thechapters
key to access the results.
Understanding the response
Your automatic chapters are located in the chapters
key of the API response. Each entry contains a summary
of the chapter, a one-line gist
and a chapter headline
, and start
and end
timestamps.
Conclusion
Creating text summaries using our Auto Chapters functionality works on all kinds of different input sources, not just podcasts. For example, you can use it to summarize lecture videos or other long-form content.
If you need more fine-grained control than Auto Chapters offers, you can use AssemblyAI's Summarization model to customize the complexity of your summary.