Skip to main content

revonorm

Text normalization for TTS — converts written text (numbers, currency, dates, times, symbols) into spoken words across 5 languages: ms, id, en, zh, zh_my.

pip install revonorm

Use

from revonorm import normalize_text

normalize_text('Harga RM10.50 sahaja', 'ms')   # "Harga sepuluh ringgit lima puluh sen sahaja"
normalize_text('It costs $5.50', 'en')         # "It costs five dollar fifty cents"
normalize_text('价格是RM50,温度25C', 'zh')     # "价格是五十令吉,温度二十五摄氏度"
normalize_text('Rp5rb dan 5jt', 'id')          # "lima ribu rupiah dan lima juta"

API

normalize_text(text, language, profile=None, disable=None)str

Language is required. Unknown codes raise ValueError.

Option What it does
profile "minimal", "basic", "standard", "aggressive"
disable Features to turn off, e.g. ["acronyms", "measurements"]

normalize(text, language, options_json="")str

The same pipeline with config as JSON — pronunciation overrides live here:

normalize('top up RevoPay RM30K', 'ms', '{"pronunciations": {"*": {"RevoPay": "revo pay"}}}')
# "top up revo pay tiga puluh ribu ringgit"

normalize('sambung WiFi', 'ms', '{"pronunciations": {"*": {"WiFi": null}}}')
# "sambung WiFi"  (null = leave as written)

Pronunciations: "*" applies to all languages; a language code scopes it; null deletes the term.

supported_languages()list[str]

supported_languages()   # ['en', 'id', 'ms', 'zh', 'zh_my']

Relationship to revo-norm

revonorm (this package) and revo-norm (pure Python) expose the same normalize_text(text, language=...) API and produce identical output. Consumers can switch between them without code changes.

Download files

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

Source Distribution

revonorm-0.8.4.tar.gz (47.6 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

revonorm-0.8.4-cp313-cp313-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.13Windows x86-64

revonorm-0.8.4-cp313-cp313-manylinux_2_28_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

revonorm-0.8.4-cp313-cp313-manylinux_2_28_aarch64.whl (1.4 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ ARM64

revonorm-0.8.4-cp313-cp313-macosx_11_0_arm64.whl (1.3 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

revonorm-0.8.4-cp312-cp312-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.12Windows x86-64

revonorm-0.8.4-cp312-cp312-manylinux_2_28_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

revonorm-0.8.4-cp312-cp312-manylinux_2_28_aarch64.whl (1.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

revonorm-0.8.4-cp312-cp312-macosx_11_0_arm64.whl (1.3 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

revonorm-0.8.4-cp311-cp311-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.11Windows x86-64

revonorm-0.8.4-cp311-cp311-manylinux_2_28_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

revonorm-0.8.4-cp311-cp311-manylinux_2_28_aarch64.whl (1.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

revonorm-0.8.4-cp311-cp311-macosx_11_0_arm64.whl (1.3 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

revonorm-0.8.4-cp310-cp310-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.10Windows x86-64

revonorm-0.8.4-cp310-cp310-manylinux_2_28_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

revonorm-0.8.4-cp310-cp310-manylinux_2_28_aarch64.whl (1.4 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ ARM64

revonorm-0.8.4-cp310-cp310-macosx_11_0_arm64.whl (1.3 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

revonorm-0.8.4-cp39-cp39-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.9Windows x86-64

revonorm-0.8.4-cp39-cp39-manylinux_2_28_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64

revonorm-0.8.4-cp39-cp39-manylinux_2_28_aarch64.whl (1.4 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ ARM64

revonorm-0.8.4-cp39-cp39-macosx_11_0_arm64.whl (1.3 MB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

File details

Details for the file revonorm-0.8.4.tar.gz.

File metadata

  • Download URL: revonorm-0.8.4.tar.gz
  • Upload date:
  • Size: 47.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: maturin/1.15.0

File hashes

Hashes for revonorm-0.8.4.tar.gz
Algorithm Hash digest
SHA256 77d0fe607d06f99de5c4795cebe301de6940036b98a2faccc1de2e2afe43d978
MD5 1d230c31e5ee8e5a540f52c5cf910614
BLAKE2b-256 015a98be3f2d165bde9aa21277c7aacbe3a3c93dca6c3afca50ecb25b54484cf

See more details on using hashes here.

File details

Details for the file revonorm-0.8.4-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for revonorm-0.8.4-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 55f686419a93502a17c4a03b96cb68aceb3187ddcc8e51cafa735927175d838c
MD5 f9adba231d200236b429dae3602d8de7
BLAKE2b-256 8ce607ecc2f251452fe80449fc621f2e52a6ca55fabce645a2538f02a3f3da9e

See more details on using hashes here.

File details

Details for the file revonorm-0.8.4-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for revonorm-0.8.4-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6bf8481eeb0250485e9c3ec1a58316c799bcc138da189668149d433f083e77ce
MD5 e563aa8f5fe176ed0ed9aa10ced8baaa
BLAKE2b-256 738e7653d9733a894d4aac2f764ea40dbaae0431327c9a166d6b4b6d0e7bba98

See more details on using hashes here.

File details

Details for the file revonorm-0.8.4-cp313-cp313-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for revonorm-0.8.4-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 0c266072c7aa334d2e19dd5879814932143bcd1434ed9bfe891628ea5c87e533
MD5 3bfd701d79ce30a0e87c28e5387bf6d1
BLAKE2b-256 426829925de8af80b7c9dd4c5f71bfcf6dd174af1c3185188c7277d4e0bc882b

See more details on using hashes here.

File details

Details for the file revonorm-0.8.4-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for revonorm-0.8.4-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 edd6a15be313369b6a6795fb734a4614cef6c484df949ef8bf413001630c6fd5
MD5 bae8a61b48be8b31d045229e373ac17e
BLAKE2b-256 56de9bc6b6fbe3e1b6d6382c8148a94c220a91016a26ddd58b6eb11676cbc265

See more details on using hashes here.

File details

Details for the file revonorm-0.8.4-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for revonorm-0.8.4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ad112f47de7446ebfd3088bf5ea3e5db8b066da67dabb9b1180117774b714b14
MD5 99dd6742cebff8de68b2e6467de2ef6e
BLAKE2b-256 ffb9423d6ae82fa032c2cf50f28cee732dcf7454247aa3a06338f89ba6a12433

See more details on using hashes here.

File details

Details for the file revonorm-0.8.4-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for revonorm-0.8.4-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2a626ac8da2ea4efa27c1378f2bebe29d9979c38cd2db992bbf8bd37e7729c82
MD5 8b4a2843f817b269f80a97ada4828504
BLAKE2b-256 1d1b72241cd3857467a0aca3da3a78791e5fdabec761a648e0916140775d0010

See more details on using hashes here.

File details

Details for the file revonorm-0.8.4-cp312-cp312-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for revonorm-0.8.4-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 1ef7e1ecebe056f7fa9ad059e70bead311c9d99a62c8c0c70db00f660009b74d
MD5 ff30c2a658bd40fc80374eaadb3ad40a
BLAKE2b-256 e6d19ba6aea4249ab49695c7b8d9f17de851e35ec0ac53e3df9bfe7a9f821083

See more details on using hashes here.

File details

Details for the file revonorm-0.8.4-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for revonorm-0.8.4-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ceedc68ec8a22fa56adb486c6e435ceed5f98261a6bf8fffc6df3937ef6f2c5d
MD5 181670bdb275c9c290438efee1b94ffc
BLAKE2b-256 e1c9613b7652a7b158eb0bfe309e7fcb609acc6fb23ead9acf3cdaafd9141441

See more details on using hashes here.

File details

Details for the file revonorm-0.8.4-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for revonorm-0.8.4-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f88c3ad37cd5453c9c0f878ca2cdea5bece3aad62162fdd880235f7c9a73fe38
MD5 bc842e87c742e66d3cfb53fd55266278
BLAKE2b-256 eacba4b1009135213ee557b3db34ca912c1e004df5360c78490c38c9a2a10000

See more details on using hashes here.

File details

Details for the file revonorm-0.8.4-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for revonorm-0.8.4-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c483026af7f7f92ad397db13832ae3eee6ccc04596b1f9e75a8f9a7af3d7e826
MD5 e72c77b68f6b67e10acd7be3cb107c29
BLAKE2b-256 7c425f9622c36bac44e9b13a929f378b10611d301bad3e45f7ff46545b27c150

See more details on using hashes here.

File details

Details for the file revonorm-0.8.4-cp311-cp311-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for revonorm-0.8.4-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 6840c9a47820c8413c0eceacd230ad456c73f581e6ad18de5c3bfb1701c879b9
MD5 a6e673c8e12a251811c8f40198594c49
BLAKE2b-256 c6372033d14c314c4b42f223322153581ce2e5d423dfaf41a7c35709727525c4

See more details on using hashes here.

File details

Details for the file revonorm-0.8.4-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for revonorm-0.8.4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8ca876b7b4a725077dab1c0735d3c61aa0e437c3ce8c21451e81a7d7b2feaef1
MD5 b78c26568cd5d1c624f4d10b36402084
BLAKE2b-256 413476ad8611937eeb26a6c2d4699ed22fe7dd98169a8ec81f2e069ae7b494fe

See more details on using hashes here.

File details

Details for the file revonorm-0.8.4-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for revonorm-0.8.4-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f2a711ab4ee59af7bee5b09e18fe1f030325e1d950cd5bd57aaddd9a4de91e7d
MD5 6e4354803d62de75682a95cfc87e839d
BLAKE2b-256 353be2b7570240af0654d8c8879d287e6e495f88c16a4c4c5ee07d015a219207

See more details on using hashes here.

File details

Details for the file revonorm-0.8.4-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for revonorm-0.8.4-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 12b2625a6f2c7a5ff878e0fba680e574787847381024313e6b1717b51201b04e
MD5 cb28a936ea1b0f4fbb81b26b0e1c78e3
BLAKE2b-256 f1ec9293db8a8b9fe6c8c5ec0540685f6aa0df1ddae6692f7c3e8ff4e68a0232

See more details on using hashes here.

File details

Details for the file revonorm-0.8.4-cp310-cp310-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for revonorm-0.8.4-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 bdbd4fb0c7ffe7cd461f02f3817c8a3e6449e3853e62e6e57a3bd1d2bab70a3a
MD5 ca14f228e93c94931ce49ee7d53d46d8
BLAKE2b-256 13def50e62e79699a04ac71694a2a1815a2f8e415892a80e3664c172c0c29ee2

See more details on using hashes here.

File details

Details for the file revonorm-0.8.4-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for revonorm-0.8.4-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e314f59e0844ef8b2ebdbc3f2ea90e90b5407ae483e55028e9ffeef7fc906c21
MD5 2ea8e3709be69e3fc6f77d02072261ee
BLAKE2b-256 0a74c86d2e0e86b8704b031b4dfa5d37510aeee7b906b02ac254a045f4d5fb81

See more details on using hashes here.

File details

Details for the file revonorm-0.8.4-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: revonorm-0.8.4-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: maturin/1.15.0

File hashes

Hashes for revonorm-0.8.4-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a4c66db7dd28c2ded69917032dee2ae454d986995687cc145ed03d08564bd77c
MD5 a1a78aae2b9e764c00dc708c1cbae7ee
BLAKE2b-256 62ba0c47091d678206a56b2701a3092691ab66c1c3a0877cf4474c4c5972f1b9

See more details on using hashes here.

File details

Details for the file revonorm-0.8.4-cp39-cp39-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for revonorm-0.8.4-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 03228eeb7eb7ab3f14e4560f7dd75741fe691e29787b5e937f9b055e7461d766
MD5 3eca83a8005293e716967884b88bfd7d
BLAKE2b-256 483a5995cdfca80a37fd1cf56d5ca3f10af1c879e340ba0e0b47a3dcd5a149a4

See more details on using hashes here.

File details

Details for the file revonorm-0.8.4-cp39-cp39-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for revonorm-0.8.4-cp39-cp39-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 aadf9d092310037374782b87a70dae6effdbb1d0507f80cad92cf9377c98d1da
MD5 1c1c3680331e2b69a8c18bb857c47aa7
BLAKE2b-256 f7c3937008c029bf2af4de7f98fdf4372a1031d4d7b3a624870dd5225bdd95d2

See more details on using hashes here.

File details

Details for the file revonorm-0.8.4-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for revonorm-0.8.4-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 02d9b8486dea2b88335343007d575e59469ceb56817f29898c3941ba05a173f7
MD5 c86607c038290f9f7342928284801b72
BLAKE2b-256 b6ba760a010bc8e08272238a51d50d63dcd05af390bc24cfe6cabcf92b2433e6

See more details on using hashes here.

Release history Release notifications | RSS feed

1.0.0

21 files

0.9.0

21 files

0.8.5

6 files

This release

0.8.4 This release

21 files

0.8.3

21 files

0.8.2

10 files

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