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 tycho.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.4

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.4
File Size Uploaded Provenance Actions
olign-1.1.4.tar.gz 143.6 kB With provenance Details for olign-1.1.4.tar.gz

Built distribution (wheel)

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

Total release size: 163.4 kB

Release files / olign-1.1.4.tar.gz

Download URL olign-1.1.4.tar.gz
Size 143.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c8be2dad2c3fba45c3a243937a26ea0494f38f40cf96693fd3f92a9910657ea1
BLAKE2b-256 checksum
How to use checksums
404ee21658d1d1c1b421458e11920239471403f91a2e85870ec09629061f4e60
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.4-py3-none-any.whl

Download URL olign-1.1.4-py3-none-any.whl
Size 19.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
23039b9d13ed8f89b4cf051a1d1f862a8a3171f70fdc870a68f6bbc4fd158ace
BLAKE2b-256 checksum
How to use checksums
0ea475f84b65743b373e6d7aecf9defb038844a853f1b85b9a5b915693f37525
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.4

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