Skip to main content

TranscriPy

Local transcription of voicebot calls and phone recordings into timed turns with speaker labels. Audio stays on your machine.

pip install transcripy
from transcripy import transcribe

result = transcribe(
    "call.wav",
    language="en",
    speakers=True,
    channel_labels=("agent", "customer"),
    hotwords="TranscriPy, Acme",
    initial_prompt="A voicebot call about the TranscriPy product.",
)

for turn in result.turns():
    print(f"[{turn.speaker}] {turn.text}")
transcripy call.wav \
  --language en \
  --speakers \
  --channel-labels agent,customer \
  --hotwords "TranscriPy, Acme" \
  --prompt "A voicebot call about the TranscriPy product." \
  -o call.json

What it is for

  • Stereo call recordings where each party has a channel (agent / customer)
  • Mono mixed calls when you install the optional diarization extra
  • Offline / self-hosted pipelines that must not upload audio to a cloud ASR API

The public contract is simple: one media file in, a Transcript with segments, turns, and optional per-word timings out. Export as text, SRT, VTT, or JSON.

Requirements

  • Python 3.10+
  • faster-whisper (installed with the package)
  • ffmpeg on PATH for video containers and stereo channel split
  • Optional NVIDIA CUDA for --device cuda
  • Optional Hugging Face token for mono speaker diarization (see below)

Speakers

Stereo (recommended for voicebots). --speakers (or speakers=True) splits the two channels and labels them with --channel-labels / channel_labels. Default labels are left and right.

Mono. The same flag runs pyannote and assigns each segment the speaker with the largest time overlap. Overlapping speech and similar voices reduce quality; this is not WhisperX-level alignment.

pip install "transcripy[diarize]"
  1. Accept the user agreements for pyannote/speaker-diarization-3.1 and pyannote/segmentation-3.0.
  2. Create a Hugging Face access token.
  3. Export it as HF_TOKEN (or HUGGING_FACE_HUB_TOKEN).

Defaults

Setting Default Notes
model large-v3 Pass a smaller Whisper name (medium, small, tiny) to trade quality for speed
language auto-detect Prefer an ISO code such as en or pl for call center audio
word_timestamps on Disable with --no-word-timestamps / word_timestamps=False
device cpu Use cuda when a GPU is available

Compared with WhisperX: TranscriPy focuses on a small call-recording API and reliable stereo channel labels. WhisperX is stronger when you need batched GPU throughput and forced word alignment on mixed mono audio.

Non-goals (1.0)

  • Live / streaming microphone transcription
  • Hosted cloud ASR
  • Production HTTP API (the api/ folder in this repo is experimental; not shipped in the wheel)
  • High-throughput batched GPU pipelines
  • Subtitle tooling for films as the primary use case

Install options

pip install transcripy              # library + CLI
pip install "transcripy[diarize]"   # + pyannote for mono speakers
pip install "transcripy[dev]"       # tests and the experimental server deps

Development

git clone https://github.com/niewolski/TranscriPy.git
cd TranscriPy
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
pytest

See CONTRIBUTING.md. Model weight notices are in NOTICE.

Metadata

Release files for transcripy 1.0.0

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

Source distribution (sdist)

Source distribution for transcripy 1.0.0
File Size Uploaded Provenance Actions
transcripy-1.0.0.tar.gz 22.4 kB With provenance Details for transcripy-1.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 38.0 kB

Release files / transcripy-1.0.0.tar.gz

Download URL transcripy-1.0.0.tar.gz
Size 22.4 kB
Tags Source
SHA-256 checksum
How to use checksums
78423b6e7d408c71e794a02791b6cd343b35051944a54e0eec39bf1952f0bd41
BLAKE2b-256 checksum
How to use checksums
2238b5fb36c5c93bfa808bc61d81bc2816b958b2fe232f24314949a9f704cfb7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 10, 2026.

Transparency log

Release files / transcripy-1.0.0-py3-none-any.whl

Download URL transcripy-1.0.0-py3-none-any.whl
Size 15.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c8f685c818b93af4be2e5a809b6505f35c2ca76b5b4948faa57343a2371978b4
BLAKE2b-256 checksum
How to use checksums
7a3baf5ad1a2885ee651cb5580f0f5ac46daec947715890634ca94fd68bf914a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 10, 2026.

Transparency log

Security for transcripy 1.0.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for transcripy-1.0.0.tar.gz

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 Nov 10, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files Full provenance

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