Skip to main content

olign

olign is the Python package and command line for Olign, the forced alignment API from Olewave. You send English speech, with its transcript if you have one. Olign tells you where every word and every phone starts and ends, in seconds. Without a transcript, Olign transcribes the audio first and then aligns it.

Each result also lists the pauses between the words and the phrases they form, and word_edges="audible" times words the way a listener hears them, for dubbing and subtitles.

Install

The package runs on Python 3.9 or later and needs nothing beyond the standard library.

pip install olign

The package's version is the Olign release it was made with: Olign, its API and this package share one version number.

Sign up at dashboard.olewave.com. No invitation code is needed, and a new account starts with 300 free credits. Save a card under Billing for 3,000 more: 1,000 minutes of audio at the launch promotion's price. Saving it charges nothing. Then create an API key under Profile → API keys and put it in OLIGN_KEY.

export OLIGN_KEY=gvk_your_key

Command line

One line uploads a recording and writes a Praat TextGrid with a words, a phones and a pauses tier.

olign align talk.mp3 --transcript talk.txt --textgrid

Leave out --transcript and Olign transcribes the audio first. Swap --textgrid for --srt or --vtt to get subtitles instead.

Python

olign.Client submits the job and polls it until the words are ready. This example aligns short1.wav, a 4.5-second clip from the repo.

import olign

client = olign.Client()  # reads OLIGN_KEY
result = client.align("short1.wav", transcript="what is better a fruit or hamburger")

for w in result.words:
    print(f"{w.word:<10} {w.begin:5.2f} {w.end:5.2f}")

result.to_srt("short1.srt")

Each line is a word with its start and end in seconds. Here are the first three.

what        0.47  0.75
is          0.84  1.13
better      1.21  1.89

Pricing

You pay in prepaid credits, and 1,000 credits cost $1. A minute of audio is 3 credits during the launch promotion ($0.18 an hour) and 3.5 after it ($0.21 an hour). Saving a card adds 3,000 free credits, and credits never expire.

Learn more

The documentation, the source and more examples are on GitHub.

Metadata

Release files for olign 1.1.5

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

Source distribution (sdist)

Source distribution for olign 1.1.5
File Size Uploaded Provenance Actions
olign-1.1.5.tar.gz 143.6 kB With provenance Details for olign-1.1.5.tar.gz

Built distribution (wheel)

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

Total release size: 163.4 kB

Release files / olign-1.1.5.tar.gz

Download URL olign-1.1.5.tar.gz
Size 143.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f6e5c8b88d83a762cc26e52d9f584863cfafdc67cedbf1a4522d028e6ffea1e9
BLAKE2b-256 checksum
How to use checksums
32c7b773d72a181b73628b9386b465c4d4bd062c39754f46b364f95d327b901a
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 21, 2026.

Transparency log

Release files / olign-1.1.5-py3-none-any.whl

Download URL olign-1.1.5-py3-none-any.whl
Size 19.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
55e3ad84d8552e9a194cf90b11605efa79cb904114ca602a4d4647ee5bc12bfb
BLAKE2b-256 checksum
How to use checksums
dc19dd1ba5dfe77398aced170fafa8d94f5af4ef972eae0849286722d0fd2acb
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 21, 2026.

Transparency log

Security for olign 1.1.5

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 olign-1.1.5.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 21, 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.

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