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.3.tar.gz (47.5 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.3-cp313-cp313-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.13Windows x86-64

revonorm-0.8.3-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.3-cp313-cp313-manylinux_2_28_aarch64.whl (1.4 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

revonorm-0.8.3-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.3-cp312-cp312-manylinux_2_28_aarch64.whl (1.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

revonorm-0.8.3-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.3-cp311-cp311-manylinux_2_28_aarch64.whl (1.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

revonorm-0.8.3-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.3-cp310-cp310-manylinux_2_28_aarch64.whl (1.4 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

revonorm-0.8.3-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.3-cp39-cp39-manylinux_2_28_aarch64.whl (1.4 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ ARM64

revonorm-0.8.3-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.3.tar.gz.

File metadata

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

File hashes

Hashes for revonorm-0.8.3.tar.gz
Algorithm Hash digest
SHA256 d807a7e355fd01935db275aa9661d986691a106d1eac9e9dde7b4491ef7ef367
MD5 b68ba262cf4b5da15fd2812550803dc1
BLAKE2b-256 92f1656144c0b926ce41f94492aab88da458e34857c2948a8d40149fbb1b8615

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-0.8.3-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 c2c2d15205c443df3bda8600c138e37a71f5ea9ab97936cdb3814b5d0b18a99f
MD5 9adc87e9fceebb85160d6d0ec87933b2
BLAKE2b-256 b06a17b3a1fb5d7c95ca8c68beb214190bca20cdd931b6c776e381ebb214ec9a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-0.8.3-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d28ae5ca28da65fc6a94ada19e006d66e3c1b636ca4d177c6f74f4749aa89717
MD5 e00f3b71104ccb31445905b363e009c4
BLAKE2b-256 b917d1e7ad251bd6535d38edaaa17214e240e5c5bd11fc4d465d01aab0ade4e9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-0.8.3-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f5b0358b5e0c239f483cd9e7bc70c4fbec933e5116c62a1c971c2052251cd3d4
MD5 d5a3306212ad9729fba4054ed065b8b1
BLAKE2b-256 9395049193a0381552095b19030cd1b313581d3697a386ef8745c055346d9698

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-0.8.3-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3e45f7363ccce1a8efa4cb46c4c6286029b22816f489012fb107be51ed5f9299
MD5 617f04d600b92e8388f00350eeea9e87
BLAKE2b-256 ab60a5cbf811f3f5e37762a8da77ac6c07c4346425ce828cc177c9f24163dab1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-0.8.3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d740b312bcf2c0287b29ccbf02f0bb5d73777334ad602c1f843016bec4281578
MD5 e1e11bad31206b997d02c29d1f5ae9c0
BLAKE2b-256 f15b9043435ee038e811ed7324a116a57f49eb6fb4b79d6f6b88da4d24b4f6e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-0.8.3-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 73d043394cb2b78789aa1f8c69c1a8b1f0ded4ff59c845d14fb9d1a156ae903b
MD5 4066823a27ed0035d4a162b1b43db482
BLAKE2b-256 7485c7a8705e3a6f16b077ad3639c025f87205e979a68d8bfe9082495967bf66

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-0.8.3-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 405b9d579faab09e47d866482350c24bccf583c9f13d9b9f2a7465bc76638346
MD5 bf6ee1496acf763e0ba750a02868de94
BLAKE2b-256 b4ca7ee504c91048a62a26671a26398f1c7fdc5a4a7212988910f064ad0e4d7c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-0.8.3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f206f44a2972f9116fab05410d99c6751e80f2bf1150199d1d51cd1dcd2e693d
MD5 6163a60b30d7b941107f2929f2e77c3f
BLAKE2b-256 a865a7b69523d969f136d31413bb40399ad30507c185d77d6b1a0d1e834f8f78

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-0.8.3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 dc4e730e206a312a4018031f945740794d3f037aca526f1da665bf842df82fc8
MD5 78b516b4276947571494d5f4fd1a7b1c
BLAKE2b-256 1164aab7e85d0643f65c03292a6bd8446e00cdcd1f314bf6fe78f700bc15c794

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-0.8.3-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7e1878c41c28467f73f3fb0603af204458acfca19528bc54220517c5e3bf8816
MD5 b5db10c7a0622cd1354942c93676a16a
BLAKE2b-256 fbe6b7f97fbb30fbd6cdb1857b156d63ea42e06f0d79676dd58f4c47d66b08f2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-0.8.3-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 73e918433dc4697a7125638e9d2884c6146e08d826c2d9cd2b95fd41bd0a2fa7
MD5 80a9e9aa6d7452a73acba662c9a906f4
BLAKE2b-256 6ca8c957ea690b19718b54202b83ac74165ed5a53ba0a54d7172070d5c9e6bcb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-0.8.3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 23e523800e2ebaa9e7370801a70c6067a0d7237d0d29f6ea40b272de948906b3
MD5 2396d2296e44db197d1df71dd62b0d8c
BLAKE2b-256 7e286d1be419d3274c9c3b63fd5d37de4901220a63b68a821df2122a4d20ad04

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-0.8.3-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 183342b2ac3d8548f3475ec8c9e901f98f63b142c478447a1713dc8242ce98c6
MD5 96df5e4c86508b39452434c09718ceea
BLAKE2b-256 55c43c1b8761a0cc1603800ea5d41d1537a338db49806589b026028372aff327

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-0.8.3-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8fabdaa7376eab301c1503bb69ee9e125733cc6484a888a139fbb2345a9afadd
MD5 d05dba2c2bea6066da2ac9204e3ead4d
BLAKE2b-256 79e33cc5f09a55b66f6271663bf217d3ce986c766a033bd9c6445f2add6c80f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-0.8.3-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 bbd2bc4242df0a8e650fa3b319d5847e49a2565f77c5bc2295da498f52ca56a0
MD5 7ad5e9855695b4a14fc9adddf4df80a4
BLAKE2b-256 e6042535b4bc3ca79e56d89330b60f3b073e2b7868875848511376b6cb2b9f1b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-0.8.3-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6c629b658d87fa3cfce53875970ec54cbee0de0d898ae9a66ea77009c1715576
MD5 18caeb3f8e0a60993935705d07645120
BLAKE2b-256 a802deafad725eef955038c277484e15e3bdae79d1c643bc59b6a028e585841d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: revonorm-0.8.3-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.3-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f81d5b33e9b5649c9733f708560d7a4c05c2fe286bb5f28c00f578991ae8d375
MD5 3fafb2aa47ee75eaf387cf5ecbd76fae
BLAKE2b-256 b5816d43d97c2b357a053da0a87ddbe082f8db3ab44d3097e9d2aa40127b763c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-0.8.3-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 89ae7647f985762e06d25f23477e48c3663e802b77b50e1874494e1e86b26ba6
MD5 43114f9558725e61e5ce45c2e70b6191
BLAKE2b-256 a2de395b83ae268bb40bb96acb61e26b942681c0a6ecbbe8f3b2b1f7aaf716a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-0.8.3-cp39-cp39-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c3acc766a43f5532efa0c6ca7f4e2030df8e17d4e0e9947b8c80485e9984ac0d
MD5 d8eb0748837e64a9175cfe3bd033633a
BLAKE2b-256 52b715cafd60f1a3135763613d454b0f54ceb381cd161b845604130c155a7ea3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-0.8.3-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1054ac16fcb7dc8ee3a56ec7b3cf29a241a22c2418ad27b3b91c629ed4326b7a
MD5 da913d043942d5a6170be2c76681eb62
BLAKE2b-256 c2e86a58984432daf90e0a594fa3c4e61a1168b3fc064eb30ddee079293a2d76

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

0.8.4

21 files

This release

0.8.3 This release

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