Creating summarized chapters from podcasts
The Auto Chapters approach uses LLM Gateway to summarize audio data over time into chapters. Chapters make it easy for users to navigate and find specific information.
Each chapter contains the following:
- Summary
- One-line gist
- Headline
- Start and end timestamps
The auto_chapters parameter on the transcription API is deprecated. Use LLM Gateway as shown below for more flexible and powerful chapter summaries.
In this step-by-step guide, you’ll learn how to generate chapter summaries using LLM Gateway. You’ll transcribe your audio, retrieve the paragraphs, and then use LLM Gateway to generate chapter summaries.
Get started
Before we begin, make sure you have an AssemblyAI account and an API key. You can sign up for a free account and get your API key from your dashboard.
Here’s an audio example for this guide:
Step-by-step instructions
Understanding the response
The LLM Gateway returns a summary for each chapter group. You can customize the output format by adjusting the prompt. For example, you can request a JSON response:
Conclusion
Creating chapter summaries using LLM Gateway gives you full control over the format and content of each chapter. You can customize the prompt to match your needs, use different models, and even use Structured Outputs for consistent JSON formatting.
This approach works on all kinds of input sources, not just podcasts. For example, you can use it to summarize lecture videos or other long-form content.
Next steps
- Auto Chapters - Learn more about generating chapter summaries
- LLM Gateway Overview - Explore all available models and features
- Structured Outputs - Constrain responses to a specific JSON schema