To apply LLMs to speech, you first need to transcribe the audio to text, which is what the AssemblyAI integration for LangChain helps you with.
ASSEMBLYAI_API_KEY
environment variable or the apiKey
options parameter.
AudioTranscriptParagraphsLoader
or AudioTranscriptSentencesLoader
to split the transcript into paragraphs or sentences.audio_file
is a local file path, the loader will upload it to AssemblyAI for you.audio_file
can also be a video file. See the list of supported file types in the FAQ doc.apiKey
option, the loader will use the ASSEMBLYAI_API_KEY
environment variable.audio
. Find the full list of request parameters in the AssemblyAI API docs.AudioSubtitleLoader
to get srt
or vtt
subtitles as a document.