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.9.0.tar.gz (60.7 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.9.0-cp313-cp313-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

revonorm-0.9.0-cp313-cp313-manylinux_2_28_aarch64.whl (1.5 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

revonorm-0.9.0-cp312-cp312-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

revonorm-0.9.0-cp312-cp312-manylinux_2_28_aarch64.whl (1.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

revonorm-0.9.0-cp311-cp311-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

revonorm-0.9.0-cp311-cp311-manylinux_2_28_aarch64.whl (1.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

revonorm-0.9.0-cp310-cp310-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

revonorm-0.9.0-cp310-cp310-manylinux_2_28_aarch64.whl (1.5 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.10macOS 11.0+ ARM64

revonorm-0.9.0-cp39-cp39-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64

revonorm-0.9.0-cp39-cp39-manylinux_2_28_aarch64.whl (1.5 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ ARM64

revonorm-0.9.0-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.9.0.tar.gz.

File metadata

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

File hashes

Hashes for revonorm-0.9.0.tar.gz
Algorithm Hash digest
SHA256 0f36f148e62799419b0f59a97a2be25c2ee16039bef6f3880a0e5ccb79440a5b
MD5 3cd375ce299feb787c5f46a58d0f1e74
BLAKE2b-256 a4e50d0dfc7bd967b52973541cd7a966f3c40342bbedc4e5c9eab04d18bc2d96

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-0.9.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 54557c2ac5e5fdefc1e499df1ba9a86e2f37dd6e9c084ee0383e305a7ca25890
MD5 95782f81be21401b0bbadd5e66fb984f
BLAKE2b-256 0d0bd48861a35b5dca24dc07468bcc58601f5816380afa6eba9713175262b5da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-0.9.0-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1f4a147045e60d00ba5b2f4d76052dd23941a946fa43c657b27794dfce260097
MD5 98931a16dd6181f0d477bd3088c0c791
BLAKE2b-256 6bf6ff6c058b7ee4563faa0e04ff3c6e6bb88ef7eeccf446cb781eb03000298e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-0.9.0-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 3bd3f22d7cc35115107c7d0257458d6a68d4787ee0a03ddc1b32e8a2f7155661
MD5 191570db689ef8d6d9db33fba1d550c9
BLAKE2b-256 2b5c3249c1aa8f05e4b20800da2e475f47e9718d95babeddcddfbe8cc8f7d4ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-0.9.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5ad018066618e827afa856b4582cb5749be86d57b1dfc31993a76456e48d3981
MD5 5e680530bbb0e087fef13653762247df
BLAKE2b-256 748ba7005614a8c0a4539bcf8de946319b1982c3756aeee5b393515285f1e049

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-0.9.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 407801266349afd1e15c97b3aa04525f420d749b119c28003d3165c0919251e5
MD5 6bc739dbfdc94f00d3f236fad7a7e4d6
BLAKE2b-256 bda69870696fb2e78ca1139aa6b1de37dcd59a560661726693e45f447815d756

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-0.9.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3e7d2786edf5034ea8d95203088f45e4dc8df5417c81be2b90a2159232ba64a9
MD5 1c3d7dc71131245d6793dfebfc70e5f1
BLAKE2b-256 42bdd330f395b377a3fb263639b89391300d24a74b5f89402be18d606192e954

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-0.9.0-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 55960c29d056771dfe78c928326fe9b04141865747d6f707874b4ba4d4d7caf9
MD5 99522219738de5324fe02574e997ae73
BLAKE2b-256 04a89e99fd213de333881465d989c6f3d4bc2ca6b19a5d7c9a05ad31e0cdd856

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-0.9.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2a71e9ae1271c72b4d77d50057e17a4e24bf1ddaaf3afd4d8901b4debcffb19e
MD5 776a20d7a4dcd402f0836fffc215d2aa
BLAKE2b-256 b777fee3baf4cf8195875d2238cc568988d99b3d3f1ef80e93bfee49e65f8d1c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-0.9.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ab9ac87cb74fd2c480dd138636e30f667925a658a9d47bc56eb35e432647fb8f
MD5 6ed1a3ea0b1487579a38be092bf5116d
BLAKE2b-256 67acac7519bedb61c62462e504038650b94248c99238bc07128f38b1a44a13aa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-0.9.0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 aac2a922714ba8db0b2412ae2dc4c26ee0fad58a35e2eec4f9e943bfeca1a58b
MD5 19e2d933cafd694cdc702e3d32f2a990
BLAKE2b-256 56857a412a938cb02e03d9df4b6167600669cc967596ef1d86004878ecd26a2e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-0.9.0-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 2c716f694b80990c5e7f6037741a3dbb3323b562cbfeaea5d9672f3902c82fb5
MD5 2c1b4eb26e63f0c47463439ad050f84a
BLAKE2b-256 856d71686d21c6556b0f0b4dd07afed7a3eee8a894fe57eb97a467afba7ede72

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-0.9.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 03182a6fd52cb5065772728eec7c5681e458fabf07c19c7b93b66bf3c210e22c
MD5 f8d1880402e58ca9efd8dbad1862e17d
BLAKE2b-256 ef9b34ec2004a52a4dc95c654affb66a9a45df2238db9aab71a87f277783de08

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-0.9.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 37758228a57851ff53c069c0796c4abdd0b1c13b15ec564f588b2a513df6da28
MD5 7596f1ba019a269197ca23dea6f2a39c
BLAKE2b-256 6f248c90b8e52dab9caa26ea484e0b09e928a52f2fcb4763cfef306deb078616

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-0.9.0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c25ad218242f733b1c6368831e48a00fbb118f0e17dce328b5030334119a8e37
MD5 b5deb4281138600cc9237284b016094e
BLAKE2b-256 6b2b0ed603b663f1ff87e6d510f6787bde54ea12e1e561c30a1c2f21781ca1ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-0.9.0-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 9f1ff27cfee07ed87b9cc5e9b86edf06f0eb199e6b0d8a6f40fe84a19af52d6d
MD5 971505d46047260ef103b9b1cec4e19b
BLAKE2b-256 4042d2a46c7b704ee37927594afdc8f98fbbe49f6bd2fabdbd286a24bc5e8e4a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-0.9.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e5df6bd87dc34c33085df531e476e3a65c9c9018c48e19e0fe2bf51ee9f4df00
MD5 e78e30c8b29d545167e44087deb9f477
BLAKE2b-256 65a9881e2e47b7e2b67816764a069ebb010253380c7829f003c51b0bb106dc6b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: revonorm-0.9.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 1.3 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.9.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3047355b9589fe99d357efb0e9377eeb0ddf0584af742c3a0654f9dd86b7fca6
MD5 843e12a1ae37b07f79fa09efd38e712b
BLAKE2b-256 a6182fa9be9957752ad7a0bd6256e0c3b26958bfa188d6aa0157ba84c6818707

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-0.9.0-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ea7f79d03eb958cc64c571227dd3cd1bca1b61b91102444fa13b04dc97347dc4
MD5 db9f5b11d14e3111eda93f522df83a52
BLAKE2b-256 3b54b1449e0d95fdb13b3c16998f277d4a91f60583772eca54fbad4f2d007b5c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-0.9.0-cp39-cp39-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f4570d70e7cb869ca289d7bbd8e72e713a4bce799f9d97b6f2a24c49d3a7a6b3
MD5 b7d76ce724fcf7cdfcd0f71e71b9ae50
BLAKE2b-256 ef0455d752f9a87b68fda1b85d175aabcec30bce5363449c314b542d248ede15

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-0.9.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 03f5e1c9d3f44a1907ca823747b9d46212b18a03f34044b3f08115c3483b7703
MD5 1d808999bd9cf3cca12dd8dc2a7f8e28
BLAKE2b-256 8382ee4c33edc1223541ff91d3f16214c71a671a37a1395a32e70b3d121e5b3a

See more details on using hashes here.

Release history Release notifications | RSS feed

1.0.0

21 files

This release

0.9.0 This release

21 files

0.8.5

6 files

0.8.4

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