Get started
Before we begin, make sure you have an AssemblyAI account and an API key. You can sign up for a free account and get your API key from your dashboard.Step-by-step instructions
Install the SDK:assemblyai package and set your API key:
Transcriber. Note that here we don’t pass in a global TranscriptionConfig, but later apply different ones during the transcribe() call.
detect_language()performs language detection on the first 60 seconds of the audio and returns the language code.transcribe_file()performs the transcription. For this, the identified language is applied and either Universal-3 Pro or Universal-2 is used depending on the supported language.