/ Модель

Характеристики

Параметры
365 млн
Лицензия
Apache 2.0
Архитектура
t5 · dense
Базовая модель
byt5-small
Библиотека
transformers
Опубликована
22 ноя 2026

indic-tts-normalizer-small

Генерация текстаТекст → текст3 профессии

Модель преобразует числовые и символьные записи в письменном тексте в слова на индийских языках, подготавливая текст для синтеза речи.

110скачиваний за 30 дней0лайковвеса обновлены23 ноя 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

altslate разработала Indic TTS Normalizer Small — модель преобразования письменного текста в произносимую форму для последующей подачи в системы синтеза речи. Она переписывает числа, суммы в рупиях, время, даты, годы, проценты, десятичные дроби, телефонные номера, единицы измерения, порядковые числительные, диапазоны и счета по крикету словами на родном письме десяти индийских языков. В карточке указано применение перед TTS, чтобы синтезатор корректнее произносил числовые записи.

Модель основана на Google ByT5-small и дообучена как условная текстовая модель семейства T5; число параметров в метаданных — 364,6 млн. Для запуска доступны веса safetensors и ONNX, включая динамически квантованные варианты ONNX. В README приведены тесты на текстах из Wikipedia, синтетических сообщениях и программно сформированных примерах; результаты модели в описанных проверках выше, чем у использованных правил нормализации.

Ограничения включают ошибки в отдельных порядковых числительных, единицах измерения и кодах, повтор слов, неестественное присоединение окончаний и зависимость прочтения дат и годов от заданных правил. Выходы и словарь не проверялись носителями; разговорные варианты произношения не генерируются. Модель не рассчитана на синдхи, сингальский и ввод латиницей, а числа за пределами кроров не охвачены. Лицензия — Apache-2.0.

Сценарии применения

  • нормализация чисел перед синтезом речи на индийских языках
  • озвучиваемое представление сумм в рупиях, времени и дат
  • преобразование процентов, дробей и единиц измерения в слова
  • подготовка телефонных номеров и порядковых числительных к озвучиванию
  • нормализация счетов по крикету для TTS

Ограничения

Качество нормализации не проверялось носителями; возможны ошибки в отдельных числах, порядковых числительных, единицах и буквенно-цифровых кодах, а также повтор уже присутствующих слов. Не поддерживаются синдхи, сингальский, ввод латиницей и числа за пределами кроров; даты и некоторые годы читаются по фиксированным правилам.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Indic TTS Normalizer (small)

A 300M-parameter model that rewrites written text into spoken form for text-to-speech, in 10 Indian languages: numbers, amounts in rupees, times, dates, years, percentages, decimals, phone numbers, units, ordinals, ranges and cricket scores become words in the native script.

बिल ₹1,250.50 है, कल 4:30 PM तक जमा करें। → बिल एक हज़ार दो सौ पचास रुपये और पचास पैसे है, कल दोपहर चार बजकर तीस मिनट तक जमा करें।

(real model output; more examples below)

Try it in your browser: altslate/indic-tts-normalizer (runs locally with transformers.js; your text stays on your device).

Many Indic TTS models read digits badly or skip them (the indic-parler-tts model card lists numbers as a known issue). Put this model in front of your TTS.

Results

Revisions (Nov 23, 2026). v5: the previous revision wrote Telugu ై (and a few Malayalam and Kannada vowel signs) as two Unicode code points instead of the standard one, because our number-word source does; it looks identical but is not NFC text, which TTS engines and string matching can treat differently. v5 was retrained on the same data in NFC form, and every output in our tests is now NFC. v6 (current): fixes from an error audit of v5: unit names missing from CLDR (Urdu km, m, cm, litre, hour and minute; Urdu 350 km had been read as kilograms; millimetres in all languages), ordinals written with another suffix (1ਵੀਂ, 1ویں, ১ম, 3rd), and the Kannada/Malayalam zero digit typed in place of the anusvara inside words (ನ೦ಬಿಕೆ had become "nasonnebike"). The scores below are for v6. Baseline outputs (rules) were NFC-normalized too, so the comparison is fair.

Three kinds of test, none used for training or for choosing settings:

  • Test A (real text): 600 sentences with digits from the Dakshina Wikipedia validation split (60 per language). There is no gold spoken form, so a separate model, Qwen3.8-27B (it wrote no training data), judges each output: every number and symbol read correctly and nothing else changed. "Judge-ok" also requires that no digit or ₹ % ° is left.
  • Test B (messages): up to 60 short messages per language with ₹ amounts, times, dates, phone numbers, units, ordinals, cricket scores and so on, written by the same Qwen3.8-27B. Same judge.
  • Programmatic tests (exact match against rule-generated gold) on carrier sentences held out from training: one number per sentence (test-prog, 2,194), 2–3 joined sentences (test-multi, 1,000), and two numbers side by side such as ₹15,999, 128 GB (test-pair, 936).

Judge-ok on tests A and B (higher is better):

test A (Wikipedia)test B (messages)
this model (v6)0.8070.762
rules: every number → indic-numtowords words (NFC)0.6470.428
indic-tts-preprocess 0.1.1 (Hindi and Marathi only; others unchanged)0.1570.102
Qwen3-4B-Instruct, prompted0.0680.068
input unchanged00

Per language (this model / rules):

hibntatemrguknmlpaur
A.87/.80.93/.50.62/.58.92/.60.88/.60.82/.68.75/.57.77/.75.73/.75.78/.63
B.87/.57.68/.42.88/.50.78/.47.65/.40.70/.37.72/.28.73/.52.80/.35.80/.42

The model is better than rules in every language on test B and in all but one on test A, where Punjabi is lower (0.73 vs 0.75). Each language has 60 sentences per test, so one sentence moves a score by about 0.017. The judge is pessimistic. When we asked it to name the error in 254 of v5's rejected outputs, it withdrew 160 of the rejections, and many of the remaining ones rest on mistakes of its own about number words (for example, that Hindi अठासी is 80 or that Tamil தொள்ளாயிரம் is not a word). So these scores understate the model; we report them because the same judge scores every system. The earliest revision's Telugu scores (0.32) came from the Unicode issue above, not from wrong readings; an earlier version of this card blamed the judge's handling of years, which was wrong. v5 → v6: A 0.797 → 0.807, B 0.758 → 0.762.

Exact match on the programmatic tests (rebuilt for v6 with held-out carriers): test-prog 0.991 (v5 0.979), test-multi 0.979 (v5 0.965), test-pair 0.998 (v5 0.955). By kind on test-prog: ordinals 0.90, phone numbers 0.99, everything else 0.99–1.00. These sentences come from the same generator as the training data, so they measure coverage of the patterns, not robustness to real text; tests A and B do that.

Examples

Hand-written sentences (not from the training generator; we used this set of 20 to find errors during development, so it is not a clean test), model output unchanged:

inputoutput
ఈ ఫోన్ ధర ₹15,999, 128 GB మెమరీతో వస్తుంది.ఈ ఫోన్ ధర పదిహేను వేల తొమ్మిది వందల తొంభై తొమ్మిది రూపాయలు, నూట ఇరవై ఎనిమిది గిగాబైట్లు మెమరీతో వస్తుంది.
১৯৭১ সালের ১৬ ডিসেম্বর বাংলাদেশ স্বাধীন হয়।ঊনিশশো একাত্তর সালের ষোল ডিসেম্বর বাংলাদেশ স্বাধীন হয়।
पेट्रोल 2.5% ने महाग झाले, आता 106.31 रुपये लिटर.पेट्रोल दोन पूर्णांक पाच टक्के ने महाग झाले, आता एकशे सहा पूर्णांक तीन एक रुपये लिटर.
ಬೆಂಗಳೂರಿನಿಂದ ಮೈಸೂರಿಗೆ 145 km, ಬಸ್ ಟಿಕೆಟ್ ₹210.ಬೆಂಗಳೂರಿನಿಂದ ಮೈಸೂರಿಗೆ ನೂರ ನಲವತ್ತೈದು ಕಿಲೋಮೀಟರ್‌ಗಳು, ಬಸ್ ಟಿಕೆಟ್ ಇನ್ನೂರ ಹತ್ತು ರೂಪಾಯಿ.
സ്വർണവില ഗ്രാമിന് ₹7,150 ആയി, ഇന്നലെ ₹7,080 ആയിരുന്നു.സ്വർണവില ഗ്രാമിന് ഏഴായിരത്തി നൂറ്റമ്പത് രൂപ ആയി, ഇന്നലെ ഏഴായിരത്തി എൺപത് രൂപ ആയിരുന്നു.
મારો નંબર 98250 12345 છે, 5 વાગ્યા પછી ફોન કરજો.મારો નંબર નવ આઠ બે પાંચ શૂન્ય એક બે ત્રણ ચાર પાંચ છે, પાંચ વાગ્યા પછી ફોન કરજો.
پاکستان نے 50 اوورز میں 312 رنز بنائے، 8 کھلاڑی آؤٹ ہوئے۔پاکستان نے پچاس اوورز میں تین سو بارہ رنز بنائے، آٹھ کھلاڑی آؤٹ ہوئے۔

Usage

The input is <language code>-tn: <text>.

from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("altslate/indic-tts-normalizer-small")
model = AutoModelForSeq2SeqLM.from_pretrained("altslate/indic-tts-normalizer-small")
enc = tok(["hi-tn: बिल ₹1,250.50 है, कल 4:30 PM तक जमा करें।"], return_tensors="pt")
print(tok.batch_decode(model.generate(**enc, max_new_tokens=512), skip_special_tokens=True))

Language codes: hi bn ta te mr gu kn ml pa ur. Feed one sentence at a time and set max_new_tokens to about 4× the input length in bytes; spoken forms are longer than digits.

ONNX (onnxruntime, transformers.js)

onnx/ has the encoder and decoder (with and without past, and merged) in fp32 and per-channel dynamic int8 (*_quantized.onnx, about 460 MB for the int8 set). Checked with greedy decoding in onnxruntime against PyTorch on held-out programmatic tests:

test-prog (150 rows) exacttest-multi (100 rows) exactoutputs identical to PyTorch
PyTorch0.9870.960–
ONNX fp320.9870.96099.3% / 100%
ONNX int80.9870.96099.3% / 100%

In our onnxruntime check on CPU, int8 took about 1 s per sentence and fp32 about 2 s. With transformers.js 4.3.2 (int8, dtype: "q8") in Node on a laptop, the snippet below took 0.1–0.7 s per sentence. Long sentences take longer: the output is generated byte by byte.

In transformers.js, ByT5 has no tokenizer.json, so encode bytes yourself (each UTF-8 byte + 3, then </s> = 1):

import { AutoModelForSeq2SeqLM, Tensor } from "@huggingface/transformers";
const model = await AutoModelForSeq2SeqLM.from_pretrained("altslate/indic-tts-normalizer-small", { dtype: "q8" });
const ids = [...new TextEncoder().encode("hi-tn: ट्रेन 3 बजे आएगी")].map((b) => b + 3).concat([1]);
const t = (a) => new Tensor("int64", BigInt64Array.from(a.map(BigInt)), [1, a.length]);
const out = await model.generate({ input_ids: t(ids), attention_mask: t(ids.map(() => 1)), max_new_tokens: 4 * ids.length + 64 });
console.log(new TextDecoder().decode(new Uint8Array(out.tolist()[0].map(Number).filter((i) => i >= 3).map((i) => i - 3))));

Training

Training and evaluation code: github.com/AltSlate-Labs/indic-chat-toolkit (src/tn/, jobs tn-*).

  • Base: altslate/indic-chat-xlit-small v2 (a fine-tuned google/byt5-small, Apache-2.0), then seven rounds of fine-tuning, each starting from the last (about 10 hours in total on one NVIDIA GB10 / DGX Spark; batch 32, bf16, inputs up to 768 bytes, targets up to 1,536 bytes). Each round fixed errors found in the previous one: longer inputs, years and glued suffixes in Wikipedia text, several numbers in one text, wrong spellings in the number words (below), two numbers side by side, (v5, 0.2 epoch) all text in Unicode NFC, and (v6, 0.3 epoch) the audit fixes above.
  • Data (about 163k pairs per round): every target is generated by rules, so the spoken forms follow the rules exactly:
    • Carrier sentences written by Ornith-1.5-35B-A3B (MIT), each with one typed slot (amount, time, date, year, percent, decimal, phone, quantity, ordinal, range, cricket score, number); 22k after filtering out mixed scripts, digits outside the slot, currency symbols next to the slot, unit words repeated after the slot, and cricket scores outside a cricket context. Each slot is filled 3 times with random values in a written form and its spoken form; 15% of the numeric slots get a second value after a comma, and 30k rows join 2–3 filled sentences.
    • Number words: indic-numtowords (AI4Bharat, MIT) for 0–99, with corrections: its Kannada output truncates numbers such as 110 and 210 and reads 83 as 82, so Kannada and Urdu numbers from 100 up are composed here from the 0–99 words; misspellings in Punjabi (59, 73, 75, 81), Urdu (5, 23, 26–31), Bengali (88), Tamil (81, 89, 92, 98) and Marathi (हज़ार) are replaced. Month and unit names come from Unicode CLDR (via babel), plus a small hand-written lexicon of glue words (decimal-point word, rupees/paise, time and range patterns, cricket phrasing, ordinal suffixes).
    • Wikipedia sentences from the Dakshina train split (CC BY-SA 4.0) with integers up to 7 digits (4-digit numbers from 1100 to 2099 read as years), plus sentences without digits that must come back unchanged. Training sentences identical to a test-A or test-B sentence were removed.

Known limitations

  • Not checked by native speakers. Neither the hand-written lexicon nor our corrections to the number words were reviewed by native speakers. The lexicon follows standard news usage (Hindi दशमलव for the decimal point, Marathi पूर्णांक, Tamil புள்ளி); colloquial readings ("साढ़े चार", "point", "डेढ़ सौ") are not produced. Kannada hundreds are written as separate words (ನೂರ ಹತ್ತು), not fused.
  • Repeated words: when the text already has the word the model adds, it can be said twice, for example a time followed by बजे (आठ बजकर पंद्रह मिनट बजे) or a Tamil cricket score followed by ரன்கள்.
  • Suffixes glued to numbers are kept as written, which can give unnatural forms, for example Kannada 1956ರಲ್ಲಿ → … ಐವತ್ತಾರುರಲ್ಲಿ.
  • Still wrong in our checks: Hindi 1st (→ पहल्लीस) and Gujarati 3rd (→ "thirtieth"); Urdu 2 hour (→ "two thousand"); km/h loses the "/h"; Malayalam text that uses the digit ൪ as the letter ര് is misread; alphanumeric codes such as flight numbers (6E, PK832) can be garbled; Telugu one lakh sometimes comes out as ఒక లక్షల.
  • One reading per pattern: 12/03/2024 is always day/month/year; 245/6 is a cricket score only in a cricket context; in Hindi, Urdu, Punjabi, Marathi, Gujarati, Bengali and Telugu, years from 1100 to 1999 are read as "nineteen eighty-four" and other years as plain numbers. Decimals are read digit by digit (106.31 → "one hundred six point three one").
  • Dates are read with a cardinal day ("पच्चीस नवंबर"), not an ordinal. Ordinals can take the wrong gender (Urdu پہلا/پہلی).
  • English words and acronyms (SMS, GB in running text) are left in Latin script; units after a number are spelled out.
  • The carrier sentences were written by an LLM and contain typos and odd grammar. The model copies text around the numbers unchanged.
  • Not covered: Sindhi and Sinhala (no number-word source), Roman-script input, numbers beyond crores.

License

Apache-2.0. The base model is Apache-2.0. Training data: Ornith outputs (MIT model), indic-numtowords (MIT), CLDR (Unicode license), Dakshina (CC BY-SA 4.0).

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Можно запустить

Подбираем GPU…

Класс архитектуры
T5ForConditionalGeneration
Ревизия весов
c277d6c

0 моделей