Skip to main content

Audio transcriber using ElevenLabs API.

Project description

🎵 pyscribe

A robust tool to transcribe audio (including music) files and URLs into text using ElevenLabs Scribe AI model.

📋 Requirements

  • 64-bit operating system
  • Python 3.8+ if not using standalone binary
  • ElevenLabs API key

🚀 Installation

Prebuilt standalone binary (Windows, macOS, Linux)

Get a standalone binary from the latest release.

Run the tool directly with uv

uvx pyscribest "path/or/url.mp3"

Install from PyPI

pip install pyscribest

⚡ Usage

[!IMPORTANT]

API key configuration

Log in to your ElevenLabs dashboard and create an API key with access to Speech to Text endpoint.

The script looks for the API key in the following order:

  1. --key command-line parameter
  2. ELEVENLABS_API_KEY environment variable
  3. System keyring (automatically saved if you use the --key parameter)

Basic Transcription

Output is always written to sys.stdout

pyscribe "https://storage.googleapis.com/eleven-public-cdn/audio/marketing/nicole.mp3"

[!NOTE] python -m pyscribe is available as an alternative if you installed with pip

CLI Options

  • --full: Insert audio event tags like [laughter]
  • --lang: Specify an ISO-639-1 or ISO-639-3 language code for improved performance, e.g. de or deu for German
  • --key: ElevenLabs API key (this will be saved to your keyring for future use)
pyscribe --lang deu --full video.webm

🛠 Integration

pyscribe package provides both synchronous and asynchronous interfaces for seamless integration into any workflow

Sync

from elevenlabs import ElevenLabs
from pyscribe import transcribe

client = ElevenLabs(api_key="YOUR API KEY")
text = transcribe(client, "path/or/url.mp3")
print(text)

Async

from elevenlabs import AsyncElevenLabs
from pyscribe import atranscribe

client = AsyncElevenLabs(api_key="YOUR API KEY")
text = await atranscribe(client, "path/or/url.mp3")
print(text)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyscribest-1.0.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyscribest-1.0.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file pyscribest-1.0.0.tar.gz.

File metadata

  • Download URL: pyscribest-1.0.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for pyscribest-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e1cc8dafdf997ce70c7e5cef1961a73cef06d173762fab5a784a6560205dd701
MD5 7667c3c217e0b0cc41ce80d202e562fe
BLAKE2b-256 1e1fcdce272d9294eec4f8d22a3778f8202571cfa3a0d44e8c25e3e13c5fdc04

See more details on using hashes here.

File details

Details for the file pyscribest-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pyscribest-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for pyscribest-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4947af9a31c2e7dbe2c99aa0858b0c6e4c9b5acbd996031641d256cd3ee70988
MD5 ab8c36e4a7eaf7e773d44f2aaad39047
BLAKE2b-256 c370aeaf996626950525af40ee43985a48e03373973786a556bbe69f670e588d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page