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:
--keycommand-line parameterELEVENLABS_API_KEYenvironment variable- System keyring (automatically saved if you use the
--keyparameter)
Basic Transcription
Output is always written to sys.stdout
pyscribe "https://storage.googleapis.com/eleven-public-cdn/audio/marketing/nicole.mp3"
[!NOTE]
python -m pyscribeis 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.deordeufor 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1cc8dafdf997ce70c7e5cef1961a73cef06d173762fab5a784a6560205dd701
|
|
| MD5 |
7667c3c217e0b0cc41ce80d202e562fe
|
|
| BLAKE2b-256 |
1e1fcdce272d9294eec4f8d22a3778f8202571cfa3a0d44e8c25e3e13c5fdc04
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4947af9a31c2e7dbe2c99aa0858b0c6e4c9b5acbd996031641d256cd3ee70988
|
|
| MD5 |
ab8c36e4a7eaf7e773d44f2aaad39047
|
|
| BLAKE2b-256 |
c370aeaf996626950525af40ee43985a48e03373973786a556bbe69f670e588d
|