docs/docs/Components/bundles-assemblyai.mdx
import Icon from "@site/src/components/icon";
The AssemblyAI components allow you to apply powerful Speech AI models to your app for tasks like:
For more information about AssemblyAI features and functionality used by AssemblyAI components, see the AssemblyAI API Docs.
An AssemblyAI account and an AssemblyAI API key.
Enter the key in the AssemblyAI API Key field in all Langflow components that require the AssemblyAI key.
Optional: To use LeMUR, you need a paid AssemblyAI account because LeMUR isn't included in the free account.
This component allows you to submit an audio or video file for transcription.
Tip: You can freeze the path of this component to only submit the file once.
Input:
true.true.Output:
This components allows you to poll the transcripts. It checks the status of the transcript every few seconds until the transcription is completed.
Input:
Output:
This component allows you to generate subtitles in SRT or VTT format.
Input:
Output:
subtitles field containing the captions in SRT or VTT format.This component allows you to apply Large Language Models to spoken data using the AssemblyAI LeMUR framework.
LeMUR automatically ingests the transcript as additional context, making it easy to apply LLMs to audio data. You can use it for tasks like summarizing audio, extracting insights, or asking questions.
Input:
Output:
This component can be used as a standalone component to list all previously generated transcripts.
Input:
Output:
Build the flow manually or import a pre-build JSON file:
Input your AssemblyAI API key in all components that require the key (Start Transcript, Poll Transcript, Get Subtitles, LeMUR, List Transcripts).
Select an audio or video file for the Start Transcript component.
Optional: After adding a file to the Start Transcript component, run and freeze the component so you only submit the file once, no matter how many times you run the flow. To do this, click <Icon name="Play" aria-hidden="true" /> Run component to preload the file, and then click <Icon name="Ellipsis" aria-hidden="true" /> Show More and select Freeze to lock the result. Subsequent flow runs use the frozen component's cached output.
Test the transcription by clicking <Icon name="Play" aria-hidden="true" /> Run component on the Parser component. Make sure that the specified template is {text}.
Running one component runs all upstream components as well as the selected component and then stops the flow run. In this case, the Start Transcript and Poll Transcript components are upstream from the Parser component. If you froze the Start Transcript component, the flow sends the cached output from Start Transcript, runs the Poll Transcript component, to get the transcription result. Check the flow logs or inspect the output of the Parser component to see the transcribed text result.
To generate subtitles and run the full flow, click <Icon name="Play" aria-hidden="true" /> Run component on the List Transcript component.
The flow can be customized by:
If you encounter issues: