Transcribe audio files with Streaming
This guide shows you how to transcribe audio files using our Streaming API. The Streaming API is capable of transcribing WAV audio files. It can also handle audio files with different sample rates.
Quickstart
Step-by-step guide
Before we begin, make sure you have an AssemblyAI account and an API key. You can sign up and get your API key from your dashboard.
Install/import packages & set API key
Install the package assemblyai.
Import packages.
Websocket Event Handlers
Create the streaming client
Helper functions for streaming files
Create a helper function to stream your file.
Connect the client
Stream the file
The session will terminate once the file is finished streaming.