ElevenLabs Speech-to-Text

March 5, 2026 · View on GitHub

Transcribe audio to text using ElevenLabs Scribe v2.

Setup

  1. Copy the example env file and add your API key:

    cp .env.example .env
    

    Then edit .env and add your ElevenLabs API key.

  2. Create a virtual environment and install dependencies:

    python3 -m venv .venv
    .venv/bin/pip install -r requirements.txt
    

Run

Transcribe the bundled quickstart sample:

.venv/bin/python main.py

Transcribe a local file:

.venv/bin/python main.py ./audio.mp3