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.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| olign-1.2.1.tar.gz | 144.5 kB | With provenance | Details for olign-1.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| olign-1.2.1-py3-none-any.whl | Python 3 | none | any | Details for olign-1.2.1-py3-none-any.whl |
Total release size: 164.8 kB
Release files / olign-1.2.1.tar.gz
| Download URL | olign-1.2.1.tar.gz |
|---|---|
| Size | 144.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c9aaba0462dd5bd619d8a380a95ebc6d855b527b057ce9cf78cff47ed8a9a398
|
|
BLAKE2b-256 checksum How to use checksums |
88cde1bf6c0cab7dc758af0b2bf02eecf8bb40a28b6d934ccb351cc8f20465d1
|
| 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 23, 2026.
Transparency logRelease files / olign-1.2.1-py3-none-any.whl
| Download URL | olign-1.2.1-py3-none-any.whl |
|---|---|
| Size | 20.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1299735c824d1fa66e3f414b533d17e33bf39db31f2a8a4ea0a255756cbeb418
|
|
BLAKE2b-256 checksum How to use checksums |
6509cb186120d15ab348bf60a3128a01d191f320b6ff2a94abd70b887dc1f3dd
|
| 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 23, 2026.
Transparency logSecurity for olign 1.2.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
Both files in this release have been uploaded with provenance metadata.
Attestation for olign-1.2.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 23, 2026.
Transparency logA 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.