Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 631 Bytes

File metadata and controls

34 lines (22 loc) · 631 Bytes

ElevenLabs Speech-to-Text — Quickstart Python Example

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