Migration guide: OpenAI to AssemblyAI
Migration guide: OpenAI to AssemblyAI
Migration guide: OpenAI to AssemblyAI
This guide walks through the process of migrating from OpenAI to AssemblyAI for transcribing pre-recorded audio.
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.
Below is a side-by-side comparison of a basic snippet to transcribe a local file by OpenAI and AssemblyAI:
Here are helpful things to know about our transcribe method:
transcript.textspeech_models=["universal-3-pro", "universal-2"] for the highest accuracyWhen migrating from OpenAI to AssemblyAI, you’ll first need to handle authentication and SDK setup:
Get your API key from your AssemblyAI dashboard
To follow this guide, install AssemblyAI’s Python SDK by typing this code into your terminal:
pip install assemblyai
Things to know:
Here are helpful things to know when migrating your audio input handling:
Key differences:
aai.TranscriptionConfig to specify any extra features that you wish to usetranscript.utterances. To see the full transcript response object, refer to our API Reference.