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 starts and ends, in seconds, and with timestamps="phone" where every phone does. 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 and a pauses tier. Add --timestamps phone (twice the price) for a phones tier too.

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.2.2

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.2.2
File Size Uploaded Provenance Actions
olign-1.2.2.tar.gz 144.6 kB With provenance Details for olign-1.2.2.tar.gz

Built distribution (wheel)

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

Total release size: 164.9 kB

Release files / olign-1.2.2.tar.gz

Download URL olign-1.2.2.tar.gz
Size 144.6 kB
Tags Source
SHA-256 checksum
How to use checksums
0b64f8d66e8da9acf75fdc7081467cd31c462e210a3f67ffbe3cecd6bd470076
BLAKE2b-256 checksum
How to use checksums
82abb757035884942f577bad8aa9cb9c63a1e9b833247b5d27b975aaadeeb5b8
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 25, 2026.

Transparency log

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

Download URL olign-1.2.2-py3-none-any.whl
Size 20.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
42b0895a8044851446e24592e596aed359c36f28d0a4bee3b7171dc8ec5c4de3
BLAKE2b-256 checksum
How to use checksums
7e6813ec39a2549817cc09e56a5045136032dced35e0f18d1f957ef419e797cb
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 25, 2026.

Transparency log

Security for olign 1.2.2

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.2.2.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 25, 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