Skip to main content
The Rime API authenticates every request with a bearer token in the Authorization header: Authorization: Bearer YOUR_API_KEY. See API authentication for how to create a key.

Overview

This endpoint returns the grammar normalizer’s output for an input string; per-model pipelines may differ (Mist v3 additionally runs a spell stage, and Coda runs no normalizer at all). Use it to preview how numbers, phone numbers, dates, and other non-standard words will be spoken, or to debug unexpected pronunciations.
Defaults to English. Pass the lang field for other languages; see Languages for the full list. For details on what’s normalized natively, known gaps, and how to pre-normalize problematic patterns, see Text normalization.

Example

A request takes the string text and, optionally, a lang code:
The response includes the normalized string:
To normalize text in a non-English language, pass a language code:

Variable parameters

string
required
The string you’d like to normalize. Numbers, phone numbers, and other non-standard words will be expanded into their spoken form.
string
Language code (e.g. en, es, fr, de, and additional languages) selecting the normalization rules. Defaults to English when omitted.