- Cost-effective language detection
- Ability to detect 99 languages
- Ability to use Nano as fallback if the language is not supported in Best
- Ability to enable Audio Intelligence models if the language is supported
- Ability to use LeMUR with LLM prompts in Spanish for Spanish audio
Before you begin
To complete this tutorial, you need:- Python installed.
- A free AssemblyAI account.
Step-by-step instructions
Install the Python 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 using Nano and returns the language code.transcribe_file()
performs the transcription using Best or Nano depending on the identified language.