Skip to main content
Open on GitHub

AssemblyAI

AssemblyAI builds Speech AI models for tasks like speech-to-text, speaker diarization, speech summarization, and more. AssemblyAIโ€™s Speech AI models include accurate speech-to-text for voice data (such as calls, virtual meetings, and podcasts), speaker detection, sentiment analysis, chapter detection, PII redaction.

Installation and Setupโ€‹

Get your API key.

Install the assemblyai package.

pip install -U assemblyai

Document Loaderโ€‹

AssemblyAI Audio Transcriptโ€‹

The AssemblyAIAudioTranscriptLoader transcribes audio files with the AssemblyAI API and loads the transcribed text into documents.

See a usage example.

from langchain_community.document_loaders import AssemblyAIAudioTranscriptLoader

AssemblyAI Audio Loader By Idโ€‹

The AssemblyAIAudioLoaderById uses the AssemblyAI API to get an existing transcription and loads the transcribed text into one or more Documents, depending on the specified format.

from langchain_community.document_loaders import AssemblyAIAudioLoaderById

Was this page helpful?