Extract Transcript Quotes with LeMURs Custom Text Input Parameter
This Colab will demonstrate how to use AssemblyAI’s LeMUR (Leveraging Large Language Models to Understand Recognized Speech) framework to process an audio file and find the best quotes included in it by sending in the timestamped transcript via LeMUR’s input_text
parameter.
Quickstart
Getting Started
Before we begin, make sure you have an AssemblyAI account and an API key. You can sign up for an AssemblyAI account and get your API key from your dashboard.
Step-by-Step Instructions
First, let’s install the AssemblyAI SDK.
Then we’ll import the SDK and set our AssemblyAI API key.
Next, we’ll use AssemblyAI to transcribe a file and save our transcript for later use.
Then we’ll take the timestamped sentences
array from our transcript and provide it to the LeMUR Q&A endpoint to extract the most engaging quotes from this transcript with their associated timestamps.
Example response: