Skip to main content

EveryVoiceTTS fork of monotonic_align

We forked https://github.com/resemble-ai/monotonic_align in order to publish it to PyPI so that it can be installed without requiring a clone:

pip install ilt-monotonic-align

Original README file from resemble-ai:

Adapted from the MAS in Glow-TTS. I made it installable and added variants.

Installation

pip install git+https://github.com/resemble-ai/monotonic_align.git

Installing monotonic_align doesn't require torch, but using monotonic_align will. Please install PyTorch yourself, as its installation differ from system to system.

How to Use

# Suppose you have:
# 1. a probability matrix of size (batch_size=B, symbol_len=S, mel_lens=T)
#    NOTE: a similarity matrix (a higher score means better) or negative cost will do
#          but may have issues.
# 2. an array of symbol lengths `symbol_lens` of size (batch_size=B)
# 3. an array of mel-spectrogram lengths `mel_lens` of size (batch_size=B)

from monotonic_align import mask_from_lens, maximum_path
mask_ST = mask_from_lens(similarity, symbol_lens, mel_lens)
alignment = maximum_path(similarity, mask_ST)  # (B, S, T)

# NOTE:
# - If `mask` is not specified, the default mask is `True` for all elements.
# - You can specify `topology` if you want to use other variants of alignment algorithms.

Metadata

Release files for ilt-monotonic-align 1.2.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 ilt-monotonic-align 1.2.1
File Size Uploaded Provenance
ilt_monotonic_align-1.2.1.tar.gz 606.7 kB Without provenance Details

Release files / ilt_monotonic_align-1.2.1.tar.gz

Download URL ilt_monotonic_align-1.2.1.tar.gz
Size 606.7 kB
Tags Source
SHA-256 checksum
How to use checksums
db7b5cfb8be76a24655ff75484fae3f8819370f1ab5184e9e64d0681906549e4
BLAKE2b-256 checksum
How to use checksums
f6bb6226f2f506b8f05f670d440c87e212d1eeba0b16e76cf806822bf2542389
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Security for ilt-monotonic-align 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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

1.2.1 This release

1 release file No 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