Skip to main content

Monotonically align text and speech

Project description

Monotonic Alignment Search (MAS)

PyPI - License PyPI - Python Version PyPI - Version GithubActions GithubActions

Implementation of MAS from Glow-TTS for easy reuse in other projects.

Installation

pip install monotonic-alignment-search

Wheels are provided for Linux, Mac, and Windows.

Usage

MAS can find the most probable alignment between a text sequence t_x and a speech sequence t_y.

from monotonic_alignment_search import maximum_path

# value (torch.Tensor): [batch_size, t_x, t_y]
# mask  (torch.Tensor): [batch_size, t_x, t_y]
path = maximum_path(value, mask, implementation="cython")

The implementation argument allows choosing from one of the following implementations:

  • cython (default): Cython-optimised
  • numpy: pure Numpy

References

This implementation is taken from the original Glow-TTS repository. Consider citing the Glow-TTS paper when using this project:

@inproceedings{kim2020_glowtts,
    title={Glow-{TTS}: A Generative Flow for Text-to-Speech via Monotonic Alignment Search},
    author={Jaehyeon Kim and Sungwon Kim and Jungil Kong and Sungroh Yoon},
    booktitle={Proceedings of Neur{IPS}},
    year={2020},
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

monotonic_alignment_search-0.1.1.tar.gz (157.5 kB view details)

Uploaded Source

Built Distributions

monotonic_alignment_search-0.1.1-cp313-cp313-win_amd64.whl (227.8 kB view details)

Uploaded CPython 3.13 Windows x86-64

monotonic_alignment_search-0.1.1-cp313-cp313-musllinux_1_2_x86_64.whl (629.8 kB view details)

Uploaded CPython 3.13 musllinux: musl 1.2+ x86-64

monotonic_alignment_search-0.1.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (601.1 kB view details)

Uploaded CPython 3.13 manylinux: glibc 2.17+ x86-64

monotonic_alignment_search-0.1.1-cp313-cp313-macosx_11_0_arm64.whl (228.5 kB view details)

Uploaded CPython 3.13 macOS 11.0+ ARM64

monotonic_alignment_search-0.1.1-cp312-cp312-win_amd64.whl (228.0 kB view details)

Uploaded CPython 3.12 Windows x86-64

monotonic_alignment_search-0.1.1-cp312-cp312-musllinux_1_2_x86_64.whl (635.5 kB view details)

Uploaded CPython 3.12 musllinux: musl 1.2+ x86-64

monotonic_alignment_search-0.1.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (602.7 kB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

monotonic_alignment_search-0.1.1-cp312-cp312-macosx_11_0_arm64.whl (229.3 kB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

monotonic_alignment_search-0.1.1-cp311-cp311-win_amd64.whl (227.0 kB view details)

Uploaded CPython 3.11 Windows x86-64

monotonic_alignment_search-0.1.1-cp311-cp311-musllinux_1_2_x86_64.whl (642.6 kB view details)

Uploaded CPython 3.11 musllinux: musl 1.2+ x86-64

monotonic_alignment_search-0.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (612.8 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

monotonic_alignment_search-0.1.1-cp311-cp311-macosx_11_0_arm64.whl (228.5 kB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

monotonic_alignment_search-0.1.1-cp310-cp310-win_amd64.whl (227.0 kB view details)

Uploaded CPython 3.10 Windows x86-64

monotonic_alignment_search-0.1.1-cp310-cp310-musllinux_1_2_x86_64.whl (605.9 kB view details)

Uploaded CPython 3.10 musllinux: musl 1.2+ x86-64

monotonic_alignment_search-0.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (577.9 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

monotonic_alignment_search-0.1.1-cp310-cp310-macosx_11_0_arm64.whl (228.6 kB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

monotonic_alignment_search-0.1.1-cp39-cp39-win_amd64.whl (227.5 kB view details)

Uploaded CPython 3.9 Windows x86-64

monotonic_alignment_search-0.1.1-cp39-cp39-musllinux_1_2_x86_64.whl (608.5 kB view details)

Uploaded CPython 3.9 musllinux: musl 1.2+ x86-64

monotonic_alignment_search-0.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (581.0 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

monotonic_alignment_search-0.1.1-cp39-cp39-macosx_11_0_arm64.whl (229.1 kB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

File details

Details for the file monotonic_alignment_search-0.1.1.tar.gz.

File metadata

File hashes

Hashes for monotonic_alignment_search-0.1.1.tar.gz
Algorithm Hash digest
SHA256 fba746083f4d0eb5fcd4708935b3c8aee40472c34057ab91f8c5ef1d0398ae78
MD5 bf2bdcd279f82d6da67d74bc648ea256
BLAKE2b-256 ca3d658a7f792233b2f8ab82c467bfb282ab4696e76249b5557ef2aea30c887f

See more details on using hashes here.

Provenance

The following attestation bundles were made for monotonic_alignment_search-0.1.1.tar.gz:

Publisher: pypi-release.yml on eginhard/monotonic_alignment_search

Attestations:

File details

Details for the file monotonic_alignment_search-0.1.1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for monotonic_alignment_search-0.1.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 43c2dc749c842f83c611098ba4f806b4899f713eab696ff9d385de454cf6176a
MD5 dcfc0415e886d8bbd3e1fb654855cbad
BLAKE2b-256 3e0753f1ac3cc1332f6146a70e0a6d521c130b07d80c1874372ca4f5f3abda1c

See more details on using hashes here.

Provenance

The following attestation bundles were made for monotonic_alignment_search-0.1.1-cp313-cp313-win_amd64.whl:

Publisher: pypi-release.yml on eginhard/monotonic_alignment_search

Attestations:

File details

Details for the file monotonic_alignment_search-0.1.1-cp313-cp313-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for monotonic_alignment_search-0.1.1-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 64ffc5ffad3877f4c48d45de44eedc3685e02b8317e23427ee0afd60c708ba1c
MD5 ab11d25ee1b78607547ca7ac8558e729
BLAKE2b-256 7179112a080dffb27bc86d66fd8065d73938cfdc361a5f96dc3617967f166d52

See more details on using hashes here.

Provenance

The following attestation bundles were made for monotonic_alignment_search-0.1.1-cp313-cp313-musllinux_1_2_x86_64.whl:

Publisher: pypi-release.yml on eginhard/monotonic_alignment_search

Attestations:

File details

Details for the file monotonic_alignment_search-0.1.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for monotonic_alignment_search-0.1.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4756ea37fc02ef3519915becb79e52aa8a967cef24144aec54b1ae1bbb36318d
MD5 bc43ed866b636d3b0878384a1ec4dd91
BLAKE2b-256 05943d3fe6862b9375af5fe2994ef1972c949b6ea543803d5af1f428a4df85fd

See more details on using hashes here.

Provenance

The following attestation bundles were made for monotonic_alignment_search-0.1.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: pypi-release.yml on eginhard/monotonic_alignment_search

Attestations:

File details

Details for the file monotonic_alignment_search-0.1.1-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for monotonic_alignment_search-0.1.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1bde0cf56a616a52b4724af3213338743c7ee017764d64dfd5bcf9a1acf12ef9
MD5 932b3d4ee0686bab1a38852f5b3038e8
BLAKE2b-256 80abb5f08a21ce46a479a33ab1117690088790122640943ac782459928824864

See more details on using hashes here.

Provenance

The following attestation bundles were made for monotonic_alignment_search-0.1.1-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: pypi-release.yml on eginhard/monotonic_alignment_search

Attestations:

File details

Details for the file monotonic_alignment_search-0.1.1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for monotonic_alignment_search-0.1.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ed0bfa82cd02c76775a939f7c4c601e3f44d7f6ea38bec7f4e3a078b51253ffe
MD5 5fb1dec8344df99034804ff7f7f8cae1
BLAKE2b-256 51deb034a8a25cb70552d4cb26c509f371644762c07395ed5aaf78e494184a9b

See more details on using hashes here.

Provenance

The following attestation bundles were made for monotonic_alignment_search-0.1.1-cp312-cp312-win_amd64.whl:

Publisher: pypi-release.yml on eginhard/monotonic_alignment_search

Attestations:

File details

Details for the file monotonic_alignment_search-0.1.1-cp312-cp312-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for monotonic_alignment_search-0.1.1-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 8ee23842edde76797652e6142d2797e253a76d507f4a03e3d4d22e12513a9a12
MD5 b902c6a0ade8b97e9ae6bf94e6df658c
BLAKE2b-256 6f60abd826e649bb87d661a884414b1640a23454ae1f02c5f95ab31128b0e900

See more details on using hashes here.

Provenance

The following attestation bundles were made for monotonic_alignment_search-0.1.1-cp312-cp312-musllinux_1_2_x86_64.whl:

Publisher: pypi-release.yml on eginhard/monotonic_alignment_search

Attestations:

File details

Details for the file monotonic_alignment_search-0.1.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for monotonic_alignment_search-0.1.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1df657ec59e2f43b73d9a3e04db924e3c52bd0caf4b146528a2e37737b2f4f37
MD5 6a37378d7ad6e2bf740a6f5fbcb0c8f5
BLAKE2b-256 213d87907d7742800f6eddccff0545abe5e19cb8a06142a8808f2326f9aafdb1

See more details on using hashes here.

Provenance

The following attestation bundles were made for monotonic_alignment_search-0.1.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: pypi-release.yml on eginhard/monotonic_alignment_search

Attestations:

File details

Details for the file monotonic_alignment_search-0.1.1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for monotonic_alignment_search-0.1.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ef44fbaf496afe17ffd9c9305041f1f6be03b1d51921cdcdab9c72972b6690d4
MD5 4145de0b66a3e3a57ceb1e836b23ab67
BLAKE2b-256 2cdc34c33ef4b075500f663a29d0404280c1cfd4ec7735cd7f976ab7569dca31

See more details on using hashes here.

Provenance

The following attestation bundles were made for monotonic_alignment_search-0.1.1-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: pypi-release.yml on eginhard/monotonic_alignment_search

Attestations:

File details

Details for the file monotonic_alignment_search-0.1.1-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for monotonic_alignment_search-0.1.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 bd034cce32f49548cca692e7ede1fbbef864f32c9ff8f65d5ece5bca03820259
MD5 d75cae3c31e14c858ae677bc39a2a320
BLAKE2b-256 face680cf255cbe0e560a6e5b7480dc5831b4610708dfb210f987ea6fdc5f785

See more details on using hashes here.

Provenance

The following attestation bundles were made for monotonic_alignment_search-0.1.1-cp311-cp311-win_amd64.whl:

Publisher: pypi-release.yml on eginhard/monotonic_alignment_search

Attestations:

File details

Details for the file monotonic_alignment_search-0.1.1-cp311-cp311-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for monotonic_alignment_search-0.1.1-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 4e7e7ddf10bb21378bb7aa46d482dafe91bad5bee3a0ebe2ee6beb1cd73d4d55
MD5 3f59e893c9645cfb3fbc0e0a1cc9327e
BLAKE2b-256 e489b1c4ce220498ead5c1bfe80f46a10a93d930bb6a3aea50fe1fca280a42b6

See more details on using hashes here.

Provenance

The following attestation bundles were made for monotonic_alignment_search-0.1.1-cp311-cp311-musllinux_1_2_x86_64.whl:

Publisher: pypi-release.yml on eginhard/monotonic_alignment_search

Attestations:

File details

Details for the file monotonic_alignment_search-0.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for monotonic_alignment_search-0.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 73426bcb0534edbbbc521dfc6950c0e20f29b733ff408c2798e08cff96013a08
MD5 c07de06db376981fb022e30626d4c83e
BLAKE2b-256 8117391e3ee84877d57d290ad1d4c63e747491b02d224382d23840b2cf94ca50

See more details on using hashes here.

Provenance

The following attestation bundles were made for monotonic_alignment_search-0.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: pypi-release.yml on eginhard/monotonic_alignment_search

Attestations:

File details

Details for the file monotonic_alignment_search-0.1.1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for monotonic_alignment_search-0.1.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b5794955ce23192feb65dfdb6e30f58c1852cd6c4ef01a7408bc0f1c4567b7af
MD5 00578f7aea884b6bef7811098cf0b6e3
BLAKE2b-256 a00802510a4d02be0e0f16f3d7d53ca664dafe55224727dde2d366fe21d58e7b

See more details on using hashes here.

Provenance

The following attestation bundles were made for monotonic_alignment_search-0.1.1-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: pypi-release.yml on eginhard/monotonic_alignment_search

Attestations:

File details

Details for the file monotonic_alignment_search-0.1.1-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for monotonic_alignment_search-0.1.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b670251e6344b78cc6151906bdb601003192d970fba6828e64d9a7e906fafe02
MD5 91c05a3ef824f97c4c07e2fb276e49d4
BLAKE2b-256 70704de23d8ae1f7a124b4faa9b506ad1d8ee48cae451e16129152be3b9c8d87

See more details on using hashes here.

Provenance

The following attestation bundles were made for monotonic_alignment_search-0.1.1-cp310-cp310-win_amd64.whl:

Publisher: pypi-release.yml on eginhard/monotonic_alignment_search

Attestations:

File details

Details for the file monotonic_alignment_search-0.1.1-cp310-cp310-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for monotonic_alignment_search-0.1.1-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 529af4fef36c7322e32f8b1841f78b4375332b6a889102884350f5300de487cf
MD5 a1364611e98a23b052436d0c004e253c
BLAKE2b-256 73b01e96e6faa2c99db9c96fca576d444345a107db0f7802ec7ef4a900d90ddb

See more details on using hashes here.

Provenance

The following attestation bundles were made for monotonic_alignment_search-0.1.1-cp310-cp310-musllinux_1_2_x86_64.whl:

Publisher: pypi-release.yml on eginhard/monotonic_alignment_search

Attestations:

File details

Details for the file monotonic_alignment_search-0.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for monotonic_alignment_search-0.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 68f17a219266213a5ef3cb29cd22599d63de8494286c1e2175546ffa44266ca1
MD5 5511a78b984e1f89f0988576e780072b
BLAKE2b-256 4257e2fd9ffd638c60525c03b135be9a1672d265cf2a6712315d7d531e4d948a

See more details on using hashes here.

Provenance

The following attestation bundles were made for monotonic_alignment_search-0.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: pypi-release.yml on eginhard/monotonic_alignment_search

Attestations:

File details

Details for the file monotonic_alignment_search-0.1.1-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for monotonic_alignment_search-0.1.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 78a1804d426b21985b458715a112c14659ac5ed10863e520df8f0ecd8ec339b7
MD5 260def8a4c76e3b3b3fe82edeae5dc01
BLAKE2b-256 f1734ea9ddf3c5c4e3d0d40694ccf0df492875a596475bc72e3d21cac655cb48

See more details on using hashes here.

Provenance

The following attestation bundles were made for monotonic_alignment_search-0.1.1-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: pypi-release.yml on eginhard/monotonic_alignment_search

Attestations:

File details

Details for the file monotonic_alignment_search-0.1.1-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for monotonic_alignment_search-0.1.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8d1948e6893022787f5d14e55c391b2f7c505059eed066e5428a0e6ab625875b
MD5 62e4e09ec8c5858f832817e67351a40e
BLAKE2b-256 cb07af6e83a678c9aa696405a3357f5fce68bf3d7065a638966915a687d27547

See more details on using hashes here.

Provenance

The following attestation bundles were made for monotonic_alignment_search-0.1.1-cp39-cp39-win_amd64.whl:

Publisher: pypi-release.yml on eginhard/monotonic_alignment_search

Attestations:

File details

Details for the file monotonic_alignment_search-0.1.1-cp39-cp39-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for monotonic_alignment_search-0.1.1-cp39-cp39-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 dc19f7e687ac455d55fe6069bb68338d2abbbd1c781816704575239a3a6de4af
MD5 94aa764fd48ef85f50a26053b706636b
BLAKE2b-256 c66fec6baf340300b2aa25e4892de09f51f5a7e25215ca33ab061824167fa371

See more details on using hashes here.

Provenance

The following attestation bundles were made for monotonic_alignment_search-0.1.1-cp39-cp39-musllinux_1_2_x86_64.whl:

Publisher: pypi-release.yml on eginhard/monotonic_alignment_search

Attestations:

File details

Details for the file monotonic_alignment_search-0.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for monotonic_alignment_search-0.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3fc32d35a1cf335e69c3df30afd99756bb22d7bb1e58a1daa890a3773f392633
MD5 165f8b1bc34509dadca62a9972bd0af7
BLAKE2b-256 138dd4a320aa4747cd1a46f544b80dc6b70ed00b66c7cfc7102baaf4ff3abf6d

See more details on using hashes here.

Provenance

The following attestation bundles were made for monotonic_alignment_search-0.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: pypi-release.yml on eginhard/monotonic_alignment_search

Attestations:

File details

Details for the file monotonic_alignment_search-0.1.1-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for monotonic_alignment_search-0.1.1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 11d99d41d018dd31a64bbbb9e3f5ab2aebde801360e34bf6171a58e2ee88be1c
MD5 487e85a71a3161f0d5d7f1c3848d77e1
BLAKE2b-256 4ae71587c64eca4c0131f90d1d9d81b2aa30254bffb64de15e8800edeb698bba

See more details on using hashes here.

Provenance

The following attestation bundles were made for monotonic_alignment_search-0.1.1-cp39-cp39-macosx_11_0_arm64.whl:

Publisher: pypi-release.yml on eginhard/monotonic_alignment_search

Attestations:

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page