Skip to main content

Speech Revolutions — Python SDK

Official Python client for the Speech Revolutions speech-to-text API.

Install

pip install speechrevolutions

For console progress bars, install the optional tqdm extra:

pip install "speechrevolutions[progress]"

Quick start

from speechrevolutions import SpeechRevolutions

client = SpeechRevolutions()  # reads SPEECHREVOLUTIONS_API_KEY or STT_API_KEY
result = client.transcribe("meeting.mp3", speaker_labels=True)
print(result.text)

for u in result.utterances:
    print(f"Speaker {u.speaker}: {u.text}")

Async

from speechrevolutions import AsyncSpeechRevolutions

async with AsyncSpeechRevolutions() as client:
    result = await client.transcribe("meeting.mp3", speaker_labels=True)
    print(result.text)

From a URL (Deepgram-style)

result = client.transcribe_url("https://example.com/audio.mp3")
# or
result = client.transcribe("https://example.com/audio.mp3")

Options as kwargs or config object

# kwargs (ElevenLabs / Deepgram style). `diarize` is an alias for `speaker_labels`.
result = client.transcribe("a.mp3", diarize=True, output_type="json")

# config object (AssemblyAI style)
from speechrevolutions import TranscribeOptions
result = client.transcribe("a.mp3", options=TranscribeOptions(speaker_labels=True))

Defaults: output_type="json", word_timestamps, speaker_labels, nltk all True, tier="standard", custom_vocabulary=None.

Live progress

Unlike AssemblyAI/Deepgram (which give no percentage for pre-recorded audio), you get real-time progress — for both the file upload and the transcription — as a console bar, a callback, or both.

# 1. Console bars (uses tqdm if installed: pip install "speechrevolutions[progress]")
#    Shows an "Uploading" byte bar, then a "Transcribing" bar.
result = client.transcribe("meeting.mp3", progress=True)

# 2. Programmatic — read event.percent (0–100) to drive your own UI / API
def on_progress(event):        # transcription
    print(event.percent, event.step)      # e.g. 42.0 "transcribe"

def on_upload(event):          # upload (event.step == "upload")
    print("upload", event.percent)

result = client.transcribe(
    "meeting.mp3",
    on_progress=on_progress,
    on_upload_progress=on_upload,
)

progress=True and the callbacks compose — the bars render and your callbacks still fire for every event.

Result shape

Default output_type is json. The SDK parses it into a transcript-first object:

Field Like
result.text AssemblyAI / ElevenLabs
result.transcript Deepgram alias
result.words word + start/end/speaker
result.utterances AssemblyAI speaker turns
result.to_deepgram() Deepgram-shaped dict
result.to_dict() normalized JSON
result.content / result.save() raw bytes / file
dg = result.to_deepgram()
print(dg["results"]["channels"][0]["alternatives"][0]["transcript"])

Webhooks & retrieving results later

submit() uploads and enqueues a job and returns its id without waiting — ideal for batch/background work. Collect the result later via a webhook (callback_url, a signed POST — verify X-SR-Signature: sha256=… against the raw bytes) or by polling:

job_id = client.submit("meeting.mp3")       # returns immediately, no waiting
# ...or notify a webhook instead of polling:
client.transcribe("meeting.mp3", callback_url="https://you.example.com/hook")

status = client.get_job_status(job_id)      # .status: processing|completed|failed
if status.is_completed:
    result = client.get_transcript(job_id)  # downloads + parses
page = client.list_jobs(limit=50)           # {"jobs": [...], "next_before": ...}

See examples/ for a full submit/poll/webhook walkthrough.

Robustness

SpeechRevolutions(max_retries=3, retry_backoff=0.5, proxies={"https": "..."}). Transient 429/5xx/network errors are retried (honoring Retry-After). Errors are typed (RateLimitError, AuthenticationError, …) and carry .status_code and .request_id for correlating with support.

Auth

export SPEECHREVOLUTIONS_API_KEY=stt_...
# or
export STT_API_KEY=stt_...

Or SpeechRevolutions(api_key="stt_...").

Other languages

Speech Revolutions also publishes SDKs for JavaScript/TypeScript, Go, and C#/.NET — see docs.speechrevolutions.com for a cross-language feature comparison.

License

MIT

Release files for speechrevolutions 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for speechrevolutions 0.2.3
File Size Uploaded
speechrevolutions-0.2.3.tar.gz 46.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for speechrevolutions 0.2.3
File Interpreter ABI Platform
speechrevolutions-0.2.3-py3-none-any.whl Python 3 none any Details

Total release size: 81.1 kB

Release files / speechrevolutions-0.2.3.tar.gz

Download URL speechrevolutions-0.2.3.tar.gz
Size 46.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6de5f8c286eb694e79ccebf4326fe8322aa1222587abbfc64a8d4eb6017870b9
BLAKE2b-256 checksum
How to use checksums
5dc45320de8ac5f3d38cb704f8cd24e7ee19a45430b8c3429ed6e13a75e604d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 20, 2026.

Transparency log

Release files / speechrevolutions-0.2.3-py3-none-any.whl

Download URL speechrevolutions-0.2.3-py3-none-any.whl
Size 34.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
565e0a89669b9c51bb00025810f64d58ed3d71342f0ed2771145bb6b9bb7b360
BLAKE2b-256 checksum
How to use checksums
be860d3193a1ee144fc8cc4416bdfecc71bb79833c3be08b98470144f71c6a94
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 20, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.3 This release

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page