Skip to main content

scriptrs

scriptrs is fast speech-to-text with NVIDIA's Parakeet TDT 0.6B v2 and v3 models. Inference runs in Rust on Apple Core ML or NVIDIA CUDA, with no PyTorch or ONNX Runtime.

pip install scriptrs
Platform Backend
macOS arm64 Core ML
Linux x86_64 (glibc 2.28+) CUDA, on a Turing (RTX 20, T4) or newer NVIDIA GPU
Windows x86_64 CUDA, as on Linux; not yet run on a GPU

The package needs Python 3.11 or newer. One wheel covers every Python version.

Use

import scriptrs

pipeline = scriptrs.Pipeline.from_pretrained("parakeet/v2")  # downloads the model once
result = pipeline.transcribe_file("meeting.mp3")

print(result.text)
for chunk in result.chunks:
    print(f"{chunk.start:7.2f} {chunk.end:7.2f} {chunk.text}")

Choosing a model

Models are named "<family>/<version>". Both Parakeet models come with the same package, and you pick one when you load the pipeline:

Model Languages Pick it when
"parakeet/v2" (default) English only all your audio is English; v2 is slightly more accurate on it
"parakeet/v3" 25 European languages, detected automatically the audio may not be English
english = scriptrs.Pipeline.from_pretrained("parakeet/v2")
multilingual = scriptrs.Pipeline.from_pretrained("parakeet/v3")

scriptrs.Model.PARAKEET_V2 and scriptrs.Model.PARAKEET_V3 work too, and so do NVIDIA's model ids, such as "nvidia/parakeet-tdt-0.6b-v3". Each model downloads separately the first time you load it, so loading only the one you use downloads only that one.

Parakeet v3 detects the language of each window by itself. To fix it, pass an ISO 639-1 code:

result = multilingual.transcribe_file("interview.wav", language="de")
print(scriptrs.Model.PARAKEET_V3.languages)  # ['bg', 'hr', 'cs', ...]

Audio

transcribe_file reads WAV, FLAC, MP3, Ogg Vorbis, and AAC in MP4/M4A, and converts it to 16 kHz mono. Audio already in memory has to be 16 kHz mono float32, such as a NumPy array:

result = pipeline.transcribe(samples, language="en")

Recordings of any length work. Audio longer than one model window is split into overlapping windows and the transcripts are merged. For recordings that are mostly silence or noise, load the pipeline with vad=True to split at detected speech instead.

To transcribe many clips, such as utterances, use transcribe_many. It prepares the next clips while the model runs and, on CUDA, batches the clips' windows together, up to max_batch in one pass (32 by default, at most 64):

results = pipeline.transcribe_many([clip_a, clip_b, clip_c])

Each result has the full text, timed chunks, and every token in tokens with its start, end, and confidence.

Command line

scriptrs transcribe meeting.mp3
scriptrs transcribe interview.wav --model parakeet/v3 --language de --json

With one file, the transcript is printed alone. With several, each one follows a header, as head prints them:

$ scriptrs transcribe a.wav b.wav
==> a.wav <==
First transcript.

==> b.wav <==
Second transcript.

--json prints one JSON object per line, with the file, text, timed chunks, and tokens.

To install only the command line, in its own environment, use uv:

uv tool install scriptrs

CUDA

The Linux and Windows wheels need an NVIDIA driver, but no CUDA toolkit: they install cuBLAS from the nvidia-cublas-cu12 package. The default precision="fp16" is the fastest. "tf32" keeps the weights in FP32, and "fp32" matches NVIDIA NeMo's FP32 output token for token:

pipeline = scriptrs.Pipeline.from_pretrained("parakeet/v3", precision="fp32")

The Windows wheel builds and passes its tests in CI on a runner without a GPU, but nobody has transcribed with it on a Windows GPU yet. It loads the driver's nvcuda.dll and the nvidia-cublas-cu12 package's cublas64_12.dll and cublasLt64_12.dll. If transcription fails there, please open an issue.

Models

from_pretrained() downloads the models from Hugging Face into cache_dir= when given, else the Hugging Face hub cache that HF_HUB_CACHE or HF_HOME sets, else ~/.cache/huggingface/hub. On macOS a model is about 0.6 GB of Core ML models from avencera/scriptrs-models. On Linux and Windows it is about 2.5 GB of weights from avencera/parakeet-tdt-0.6b-v2-cuda or avencera/parakeet-tdt-0.6b-v3-cuda.

To use models you manage yourself, load them with scriptrs.Pipeline.from_dir(path, "parakeet/v2"), using the layout in the scriptrs README.

Errors

Invalid arguments, such as an unknown model name or samples that are not 1-D float32, raise ValueError or TypeError. Everything else that fails raises scriptrs.ScriptrsError. Its code is a stable value, such as unsupported_language, model_download, audio_decode, or cuda, so you can branch on it without parsing the message.

Metadata

Release files for scriptrs 0.5.1

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

Source distribution (sdist)

Source distribution for scriptrs 0.5.1
File Size Uploaded Provenance Actions
scriptrs-0.5.1.tar.gz 599.9 kB With provenance Details for scriptrs-0.5.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for scriptrs 0.5.1
File Interpreter ABI Platform Actions
scriptrs-0.5.1-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details for scriptrs-0.5.1-cp311-abi3-win_amd64.whl
scriptrs-0.5.1-cp311-abi3-manylinux_2_28_x86_64.whl CPython 3.11 abi3 Linux glibc 2.28+ x86-64 Details for scriptrs-0.5.1-cp311-abi3-manylinux_2_28_x86_64.whl
scriptrs-0.5.1-cp311-abi3-macosx_11_0_arm64.whl CPython 3.11 abi3 macOS 11.0+ ARM64 Details for scriptrs-0.5.1-cp311-abi3-macosx_11_0_arm64.whl

Total release size: 9.9 MB

Release files / scriptrs-0.5.1.tar.gz

Download URL scriptrs-0.5.1.tar.gz
Size 599.9 kB
Tags Source
SHA-256 checksum
How to use checksums
6c02f65d9c4a76d0d91382b3ebe57c614c7982d8ea604f627b01d0c043c1f785
BLAKE2b-256 checksum
How to use checksums
a82302ebc3ec7a775b537524f89b676e5db5f83da5c4e55b428e37088d164e4e
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 Nov 24, 2026.

Transparency log

Release files / scriptrs-0.5.1-cp311-abi3-win_amd64.whl

Download URL scriptrs-0.5.1-cp311-abi3-win_amd64.whl
Size 3.1 MB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
a0dcfcdaed8d844790a4425374cf1c68593bdd3ffaf77c79d4c3b6da999e6d58
BLAKE2b-256 checksum
How to use checksums
62eeec7b1f18284afc6c595332a357084d369f07f8561d66e71487972d09f6e2
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 Nov 24, 2026.

Transparency log

Release files / scriptrs-0.5.1-cp311-abi3-manylinux_2_28_x86_64.whl

Download URL scriptrs-0.5.1-cp311-abi3-manylinux_2_28_x86_64.whl
Size 3.7 MB
Tags CPython 3.11 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
df3152c2297bb49c312c98e72a41aa47c0fec4017961ff1266bf622add136214
BLAKE2b-256 checksum
How to use checksums
bca4ce732d7eb173b00eb36786c51a0b433babbe81c7dc4ebda61af5ee891311
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 Nov 24, 2026.

Transparency log

Release files / scriptrs-0.5.1-cp311-abi3-macosx_11_0_arm64.whl

Download URL scriptrs-0.5.1-cp311-abi3-macosx_11_0_arm64.whl
Size 2.6 MB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
0361088054d4f33e432b950e8902e8bde49630d367df235d1b609be3e9798f09
BLAKE2b-256 checksum
How to use checksums
a26f451da1d9d70a05a5f68c7b6a6600f09da9dfab513823c3a07bf908f863a7
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 Nov 24, 2026.

Transparency log

Security for scriptrs 0.5.1

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

All 4 files in this release have been uploaded with provenance metadata.

Select from 4 files

Attestation for scriptrs-0.5.1.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 24, 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

0.5.1 This release

4 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