Synchronous Speech to Text
Learn how to transcribe audio with ElevenLabs synchronously
In this tutorial, you’ll learn how to transcribe audio with the ElevenLabs SDK synchronously.
Requirements
- An ElevenLabs account with an API key.
- Python or Node installed on your machine
Setup
Installing the SDK
Before you begin, make sure you have installed the ElevenLabs SDK.
Additionally, install necessary packages to manage your environmental variables:
Next, create a .env
file in your project directory and fill it with your credentials like so:
.env
To convert the audio of a file to text, we’ll use the convert
method of the ElevenLabs SDK.
Convert speech to text
Run the script with: