Skip to main content

Audio transcriber powered by the ElevenLabs Scribe AI model.

Project description

:musical_note: Pyscribe

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

[!WARNING] Project is in active development. Standalone binaries are not yet available.
Automated creation of GitHub releases and publishing to PyPI coming soon.

:clipboard: Requirements

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

:rocket: Installation

Prebuilt standalone binary (Windows, macOS, Linux)

Download a standalone binary from the latest release.

Run the tool without installation using uv[^1]

uvx pyscribest "path/or/url.mp3"

Install from PyPI[^2]

pip install pyscribest
pyscribe was taken 🥹

:zap: 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. Command-Line Parameter: --key
  2. Environment Variable: ELEVENLABS_API_KEY
  3. OS Keyring: Secure credential store (automatically saved if you use the --key parameter)

Basic Transcription

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

Successful output is always written to sys.stdout. Everything else prints to sys.stderr.
Use your shell's output redirection operator to write to disk.

pyscribe "Never Gonna Give You Up.webm" > lyrics.txt

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

The pyscribest entrypoint is intended to avoid typing uvx --from pyscribest pyscribe.

CLI Options

  • --full: Include this flag to insert audio event tags like [laughter]
  • --lang: An ISO-639-1 or ISO-639-3 language code[^3] 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 recording.wav

:hammer_and_wrench: Integration

The pyscribe package provides both synchronous and asynchronous interfaces for seamless integration into any project.

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)

[!TIP] The elevenlabs SDK is included as a dependency; no separate installation is required.

:stop_sign: API Limitations

Concurrency

ElevenLabs imposes limitations on concurrent Speech to Text requests.
For example, the free plan only allows 8 transcription requests at the same time.

File Size

ElevenLabs also imposes different file size limits:

  • Local files — up to 3 GB[^4]
  • Remote HTTPS files — up to 2 GB[^5]

Features

Pyscribe focuses on end users and aims to provide a simple interface for the Scribe model.
As such, this tool does not implement all Scribe features, including but not limited to:

  • Webhook support
  • Word-level timestamps
  • Speaker diarization
  • Output in other formats

[^1]: Documentation for uvx [^2]: Project page on PyPI [^3]: Supported Languages [^4]: file Parameter Description [^5]: cloud_storage_url Parameter Description

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.1.0.tar.gz (6.9 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.1.0-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyscribest-1.1.0.tar.gz
  • Upload date:
  • Size: 6.9 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.1.0.tar.gz
Algorithm Hash digest
SHA256 1e9f3d7926b90420546e2c40cc8290acd3134463754704b3b56bd6722bfbf77d
MD5 4191b8ad88f2a456675bce3b43a24b49
BLAKE2b-256 08e3974ceef6ce4a50cbe1cf9a2287dfcb90de84e0272f365131d5af57b56996

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyscribest-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 823ab9d7795510358dd89a892c8ccb27ffeff392ae38cfd5ecf6056dc029afff
MD5 eeefb6b583a77e530fc0f0bdbb1dcf15
BLAKE2b-256 195ad39a029f5c663756be9b014938c77033e8b61528783afc3ca2066ff54d3d

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