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

Uploaded Source

Built Distributions

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

revonorm-1.0.0-cp313-cp313-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

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

Uploaded CPython 3.13manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

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

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

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

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

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

Uploaded CPython 3.10manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64

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

Uploaded CPython 3.9manylinux: glibc 2.28+ ARM64

revonorm-1.0.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-1.0.0.tar.gz.

File metadata

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

File hashes

Hashes for revonorm-1.0.0.tar.gz
Algorithm Hash digest
SHA256 bd7652d9edf1e8a6fae37ee5bb012756fcc2e55bb26734a0e9f9b2daf129f110
MD5 02be91490f876fe58f8006d72d53c8fa
BLAKE2b-256 51cffa9c5fa19966be435f4e32f9207753da46b2af678e42b17f11396be63687

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-1.0.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 0c9a3e6af3d8a58c0b8dfad3214eff9c65fd64fe5f53d92a0407d540aceeff44
MD5 75826e7ad8784386c2e3b14a99e56cd3
BLAKE2b-256 099062d7915b11249613a987f84919671c09c0b20a04cfcd8c9b0d073eeb85fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-1.0.0-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a7eb76ca155ea6efa25eb52dced7ecf75a3d8b0b4d619107d5694f017884bd74
MD5 204893e1bd7ed14e9672acfc87807042
BLAKE2b-256 f8116f2ed7d2cee8b976a9a768594c85a08f52ef8ed5bf71a229259bcbfcdd96

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-1.0.0-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f701862f8c62bbd133185a74243746138d3546566650f23baeb3b0f90404411e
MD5 ad1e850cc4bdae509f2ea5117bee672f
BLAKE2b-256 1f8232cbb807770e0f77773aa738981928471c2e77d13805e0159aed343ef12d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-1.0.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 65dc7431db9203f5e8363bed266c1b0f76d60df310e049f6779afd5283b0b6b2
MD5 652f4f7f89521bbc4de54c3cc91b6461
BLAKE2b-256 6f8427f494fc210bb7fccb6b2c6f742fec5f468db3f40e7e595d43cb23b34fc4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-1.0.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 513cfdef8b5b84cf6b62e3cd689ac4212179a6cb216f52fcda02544499096849
MD5 0fb9deb8660c215fb5f3d6d92dc8f28b
BLAKE2b-256 46d15b5b2e61d2f2e20b0421f26688988177f7a355f3a2e7c610713f17eeb676

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-1.0.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5909739181e0a125113693b1fefe27319dbd17e04cd34dd347964776fc3b24e5
MD5 01da79f33a659c2987b2fe7d1a6dae17
BLAKE2b-256 d937e934b8299fe783b43d1018d42516e0bd11ebdd7322573b7d56d2ce296ffe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-1.0.0-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 fee885b97660d129a036c2630cf8180ea078121d4ab5fd646bf450920d05c53b
MD5 79b8650c2d8a804c04c334f5c4458817
BLAKE2b-256 174f268dd451f3f69284c351cd4b81527d417fd7241b4b0c0f6fa0db95cc8d11

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-1.0.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 df4c5a74ed36b57914a5a7dbf0c5070628f6445aa11ee5a88c6462a307843040
MD5 3265d5a1c553fc3fe6ed68bf0a88cd44
BLAKE2b-256 2cd531725f3d3917d2734461996e4d4b0f8c16e982a0e8cd0ddcc57312b069a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-1.0.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3dd1f2c05aa0185d1b22d4ed09efb12d6b1c5dd4d96859cba27c1f131eaa3824
MD5 dbb43110c43ac242569b03ca0940eaad
BLAKE2b-256 66063200f5a09fe5610c1c5344ccb7114633160bc9df7c6b08346a9cadcfc04b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-1.0.0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4134b96e9fef66a72bdba2c3d8a4fd582268f477fc321e7b0feb208aae3769e9
MD5 1c86cac59d82d7cb18db35c7d092143c
BLAKE2b-256 6ad5f46fa7a3a32079db834191869f0d1bbefef6cc92d8a1d703bf0b4261be73

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-1.0.0-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 b042b3f1a36e246c21c52569dba6573f8eb0a4edab57c801eb617d646bda585e
MD5 f1ec9e6da44db4fa6c95ac2de1cc5e8d
BLAKE2b-256 536cd523da6624317978d3bda39f725f51714906a4389da625475c0ef83f50e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-1.0.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6607eb9f3dcd96267d88ec64c3733ed6f8e9b7155e49780778a142f51769804b
MD5 50547572a974d02b142c68da81025828
BLAKE2b-256 315fbe3032f916d376b0f2f10365e7c205d87bcfc86c2ef8e3f6911e4f9c218b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-1.0.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f06756f85a90358993e21e70b6b4e9454ddc465e5ca99834bf05eadba6984c9f
MD5 77adb83550e1425753184cae972b8834
BLAKE2b-256 83481b104fee66d8347237c79935289ae041ae33f8b13a4eb0f4c80358e7756a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-1.0.0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3e008818d8896abbb99bab46e401606cb85d1dcf3f7bac0a2f96d72f85a7da3b
MD5 608b8c49771160e1d0d44d6ddaeecf31
BLAKE2b-256 b4873340e04003c7e2dbb01e3592bd5bfe9349c82c5769e87181e3d039ec444d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-1.0.0-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 98127b58cb8e17e847b317ca530ce1f61f6381ee0206be702a7720eda6ca1e1c
MD5 33fc94228046758720653c7e2d86cd00
BLAKE2b-256 6132886a35b6d8d83f5c41b27d2203a01064ee62f3097dc4b232663f05e3540e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-1.0.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4fcc9cef6669c55e0b6acd660d985ee3a20364db80c33eb13006185b9963965f
MD5 e6d71cc02c81c6bff1673e2cd0b5e037
BLAKE2b-256 fdf9891f7ad352f1cf04758f3e95bd6edee7f3e5691ad578ca413511cf058ca2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: revonorm-1.0.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-1.0.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ef7db60d585ac0d7bb9bb669b38f182cb8bb88ace9d3091ef3d07c0a7779e647
MD5 4dcf3d766e0bc77900c3c3752c21ece5
BLAKE2b-256 6dab682ebac4f9944d742e6a0233d1708c777fb21fd8399f9c8db92e18e3e6b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-1.0.0-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 30aacba0b485bc8b45c1cb6207889e71e9ebe9b3c704deef42d03f96fd0c3bfc
MD5 df0d8476197bddfeb3ef42b1e3527d51
BLAKE2b-256 a4ff1cb8a9f2307711a6b8fa065d97e9b7127a9bf6c71a262f9b625e8835d1f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-1.0.0-cp39-cp39-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f4de3da1f4af205cd26ce6b9eb605f777ad29f5265dd3139abc8a50c8d524924
MD5 610e04d332f2c80fa412fdddfdbf6ed4
BLAKE2b-256 443b20de6b9c322ba1dcd343f23f41eadfed00aaefbbe2ce0daa74e8e0e62529

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revonorm-1.0.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bce1d030dc2d5a1f9c641308849ae7163fb901f999368e9df318da7f0772784f
MD5 cd9fa90eead1b05207667a372468147e
BLAKE2b-256 fad0877f55fb0a63ee997cc8fefcb9900172508447b795bac685266a7f467f0b

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.0 This release

21 files

0.9.0

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