Skip to main content

Monotonically align text and speech

Project description

Monotonic Alignment Search (MAS)

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

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)

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.0.tar.gz (156.2 kB view details)

Uploaded Source

Built Distributions

monotonic_alignment_search-0.1.0-cp313-cp313-win_amd64.whl (226.6 kB view details)

Uploaded CPython 3.13 Windows x86-64

monotonic_alignment_search-0.1.0-cp313-cp313-musllinux_1_2_x86_64.whl (628.6 kB view details)

Uploaded CPython 3.13 musllinux: musl 1.2+ x86-64

monotonic_alignment_search-0.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (599.9 kB view details)

Uploaded CPython 3.13 manylinux: glibc 2.17+ x86-64

monotonic_alignment_search-0.1.0-cp313-cp313-macosx_11_0_arm64.whl (227.2 kB view details)

Uploaded CPython 3.13 macOS 11.0+ ARM64

monotonic_alignment_search-0.1.0-cp312-cp312-win_amd64.whl (226.8 kB view details)

Uploaded CPython 3.12 Windows x86-64

monotonic_alignment_search-0.1.0-cp312-cp312-musllinux_1_2_x86_64.whl (634.3 kB view details)

Uploaded CPython 3.12 musllinux: musl 1.2+ x86-64

monotonic_alignment_search-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (601.5 kB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

monotonic_alignment_search-0.1.0-cp312-cp312-macosx_11_0_arm64.whl (228.1 kB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

monotonic_alignment_search-0.1.0-cp311-cp311-win_amd64.whl (225.8 kB view details)

Uploaded CPython 3.11 Windows x86-64

monotonic_alignment_search-0.1.0-cp311-cp311-musllinux_1_2_x86_64.whl (641.3 kB view details)

Uploaded CPython 3.11 musllinux: musl 1.2+ x86-64

monotonic_alignment_search-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (611.6 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

monotonic_alignment_search-0.1.0-cp311-cp311-macosx_11_0_arm64.whl (227.3 kB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

monotonic_alignment_search-0.1.0-cp310-cp310-win_amd64.whl (225.7 kB view details)

Uploaded CPython 3.10 Windows x86-64

monotonic_alignment_search-0.1.0-cp310-cp310-musllinux_1_2_x86_64.whl (604.6 kB view details)

Uploaded CPython 3.10 musllinux: musl 1.2+ x86-64

monotonic_alignment_search-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (576.7 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

monotonic_alignment_search-0.1.0-cp310-cp310-macosx_11_0_arm64.whl (227.3 kB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

monotonic_alignment_search-0.1.0-cp39-cp39-win_amd64.whl (226.3 kB view details)

Uploaded CPython 3.9 Windows x86-64

monotonic_alignment_search-0.1.0-cp39-cp39-musllinux_1_2_x86_64.whl (607.3 kB view details)

Uploaded CPython 3.9 musllinux: musl 1.2+ x86-64

monotonic_alignment_search-0.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (579.7 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

monotonic_alignment_search-0.1.0-cp39-cp39-macosx_11_0_arm64.whl (227.8 kB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for monotonic_alignment_search-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1db193ba6e1aae3e80bb1c1c909851295c4e688842fa591ffa88e43c31fb8aab
MD5 1524fd72d1ea46670372f77224fdf78f
BLAKE2b-256 b7e9de99ef35984e07ee62d235b6862e53151b5ed318ffecf9db7dbf45d3bbf9

See more details on using hashes here.

Provenance

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

Publisher: pypi-release.yml on eginhard/monotonic_alignment_search

Attestations:

File details

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

File metadata

File hashes

Hashes for monotonic_alignment_search-0.1.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 337fd50d6eeb910fc15022a2caba0fc5c17573eef4ffd38e3910dfcef832bd25
MD5 77c6cc311c7f9bdcff51a9452d49ba47
BLAKE2b-256 a204a37471722989512146ffc5c5df3317416a5b0289f75159a15283fe6c1c58

See more details on using hashes here.

Provenance

The following attestation bundles were made for monotonic_alignment_search-0.1.0-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.0-cp313-cp313-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for monotonic_alignment_search-0.1.0-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 bae505e3f37ce58c4f2f64d406d4a1491e08cc6653f4971d7d34de3aabfa1ba6
MD5 9dc648a3318c6db75a863631ad07691c
BLAKE2b-256 0a870fbbb39857b97e6efdf38db16b967599cbc9c44b4bc430e1f52bd8b11490

See more details on using hashes here.

Provenance

The following attestation bundles were made for monotonic_alignment_search-0.1.0-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.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for monotonic_alignment_search-0.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4b2ba6c5175ff7b1c8856527080f892dba0228c3712a9881524272e2592cf425
MD5 3fa0c4fc0f65d5e30f1cdc5c2b9d7132
BLAKE2b-256 299002bd5ce626d8a480e9f235b0557f02644ef22d0049f3c92e52b577a76990

See more details on using hashes here.

Provenance

The following attestation bundles were made for monotonic_alignment_search-0.1.0-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.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for monotonic_alignment_search-0.1.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 91f1ab32889379bcfae2577ab3c8621c1f0be42ed4b4d1ffe8f0c2605d7c02c9
MD5 49fe8468f45a52aa6a046baa19053cbd
BLAKE2b-256 4c4afcf8c6585c904391579d31e2cbe9b754cbf4280882219fc3fea98ed86611

See more details on using hashes here.

Provenance

The following attestation bundles were made for monotonic_alignment_search-0.1.0-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.0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for monotonic_alignment_search-0.1.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c9c4b7def4430657b2422ab5404d57faf2c07d33b4cf866ea2d44b62fe2dc582
MD5 495c894bbdef5ac4f9b31ea63e6258c8
BLAKE2b-256 75360fe115ed36282350461b2f10eaa81c8bdc5e3954798f41ce468f8a6c5864

See more details on using hashes here.

Provenance

The following attestation bundles were made for monotonic_alignment_search-0.1.0-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.0-cp312-cp312-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for monotonic_alignment_search-0.1.0-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 b938dee62d6042644491e1fcad5b43211283ec7638d874d13391a797c0b8eb24
MD5 ee1beac6c7ee3842f2de92b7f292858f
BLAKE2b-256 e453eec62950208057adc9964895f759c0762b5dbab963c3cecd6ce88cee58d4

See more details on using hashes here.

Provenance

The following attestation bundles were made for monotonic_alignment_search-0.1.0-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.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for monotonic_alignment_search-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4c30367e8a78225d80c9088f978e78e3ccc99a6f5da41b4fbd48eb67635cca41
MD5 bdfc737a6787858105e963f89c4bfbe8
BLAKE2b-256 2302644f87ec11b4d168c7c10e721daa8a1a876ae2a3c193d904a44dd625b108

See more details on using hashes here.

Provenance

The following attestation bundles were made for monotonic_alignment_search-0.1.0-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.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for monotonic_alignment_search-0.1.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c58006a4a84eb5b9a5c2f269831be9958a8ce5f51388800a73d2fd8cf1283d35
MD5 bbc48b91f2afd90a3c040696cae15ed2
BLAKE2b-256 f0d36d5d966bb75c20d6b90b8a0979ec707f92e7c472db30a18ef3b724396101

See more details on using hashes here.

Provenance

The following attestation bundles were made for monotonic_alignment_search-0.1.0-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.0-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for monotonic_alignment_search-0.1.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8dd3b585e1a9d96edceb88305e69e54bb94b37e2e4bb46f493f6080bcc9d6f81
MD5 f37895317f73cf6ed9546a322a34d2e8
BLAKE2b-256 ac46aa329931917d542f1083155e900e4870af95a5017acb5a0571466997655a

See more details on using hashes here.

Provenance

The following attestation bundles were made for monotonic_alignment_search-0.1.0-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.0-cp311-cp311-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for monotonic_alignment_search-0.1.0-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 0afe6bf9d091c7377801ca41c3c70cf149421c859bfd2888d3624caae4f9494a
MD5 970ea394f0231008b8aa0714b3199c9b
BLAKE2b-256 d1a60ed94044ccbc3d09a9dae99357aa0f2ec80a306f860720bfdb2f3b513c7c

See more details on using hashes here.

Provenance

The following attestation bundles were made for monotonic_alignment_search-0.1.0-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.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for monotonic_alignment_search-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 647b2e19e84c4e35a3336b7a29570ef695f31a90379d6366248a416da37f7686
MD5 350c85544216216c14b71906b8a6c330
BLAKE2b-256 67e7922ba7f570948f90e22880f0ae93261cdd97833afd608f1237c80705f98a

See more details on using hashes here.

Provenance

The following attestation bundles were made for monotonic_alignment_search-0.1.0-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.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for monotonic_alignment_search-0.1.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e87ed3b9edf9d34d109d968cb2bac88a0dd03cfc457fc4c07ec7b180256b5c6a
MD5 3a99058f691a37ee5fcddf79507bc156
BLAKE2b-256 f2de6920bf0a9dfae9213c9d73f802b9a1d93a9857446b868df103d7496ce407

See more details on using hashes here.

Provenance

The following attestation bundles were made for monotonic_alignment_search-0.1.0-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.0-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for monotonic_alignment_search-0.1.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 68e41cfbfa9b31a3799d20a2d2ce77ee49e4946a34cc471253f9dc3ae1b57a94
MD5 c2b9c9cbf947247713364c1bb2eb3928
BLAKE2b-256 886a1b8273f45e1c8a1027989517a875c43b7ef3742a66fc3e1ab89102ee7653

See more details on using hashes here.

Provenance

The following attestation bundles were made for monotonic_alignment_search-0.1.0-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.0-cp310-cp310-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for monotonic_alignment_search-0.1.0-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 e626921ec154ff8ac5199fe08a890d2a962743e0ce3e9026a396299f38391f68
MD5 cb118f658fe86c3316d4968b2dba6a28
BLAKE2b-256 9afc2532773564ba2835d313f1b27a37662b57570feac0b0c80083aa169c5f40

See more details on using hashes here.

Provenance

The following attestation bundles were made for monotonic_alignment_search-0.1.0-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.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for monotonic_alignment_search-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9922ac972b4bb7f0a563a6e409638b659bdcc60d350b62a5a7cf0fbfc829fb4d
MD5 c2a522aa317abb13c5d981f002db8640
BLAKE2b-256 2326f594399e5b6df1b2fb430db40029149118f9bdb503e464264c6b0943646e

See more details on using hashes here.

Provenance

The following attestation bundles were made for monotonic_alignment_search-0.1.0-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.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for monotonic_alignment_search-0.1.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b518b689a5ec143934c37af51ae0a209a27cfe47ec79dd41744833172aad89fa
MD5 3dece8bb34112b4014acc7a5f0d735a2
BLAKE2b-256 ec001efd5019b12cf428d1aa847e55fbdd70c3e838486f1686ac99b39e24d140

See more details on using hashes here.

Provenance

The following attestation bundles were made for monotonic_alignment_search-0.1.0-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.0-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for monotonic_alignment_search-0.1.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3d783b768246b7d48de958809834e77f091d63f35dba414e8c27367ee4bfafb1
MD5 c8adcc218fb4fac341894b137d79da47
BLAKE2b-256 adc7f9426c257aeeda05c1008c28766be19c350903f08a52dc67f2bdd835a713

See more details on using hashes here.

Provenance

The following attestation bundles were made for monotonic_alignment_search-0.1.0-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.0-cp39-cp39-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for monotonic_alignment_search-0.1.0-cp39-cp39-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 d8e9a34c016a7bda4c8e9c2c1c9383b8e22347581ca395671b284fdf33d589da
MD5 9eaf60e1442ecb025cc9b3796e97a156
BLAKE2b-256 485754580eb0edd9c922c9ecdbfb14534570ffb447a0ca17e00bcb54ad692add

See more details on using hashes here.

Provenance

The following attestation bundles were made for monotonic_alignment_search-0.1.0-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.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for monotonic_alignment_search-0.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8a4b0d82bd21cc03c4ebdb31e70f29f973637de18d038e8b6b96fc1255ee8e46
MD5 c699f0ad606d6b5ca22ecbc09431bbe7
BLAKE2b-256 413f0cb7c693a7026a057c804f5c11dc6501d59fe2572ff8a4ddb4cf2e22fe9a

See more details on using hashes here.

Provenance

The following attestation bundles were made for monotonic_alignment_search-0.1.0-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.0-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for monotonic_alignment_search-0.1.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c0443afd2a1dd011226b9ecf22c0de84f9929000a79c750f2638ea6cc75da4ee
MD5 42b5d9b957e7fd41a0e9eeb8518a5f84
BLAKE2b-256 3af4eab483736958cb17c4247fb9b01ff3ee77256a7cae00c46a675c2910d958

See more details on using hashes here.

Provenance

The following attestation bundles were made for monotonic_alignment_search-0.1.0-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