You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e453132
Browse filesBrowse the repository at this point in the historyBrowse files
authored
docs(tts): add turkish, tagalog and pt-br to the normalization languages (#272)
text-normalizer v4.0.0 routes `tr`/`tr-TR`, `tl`/`tl-PH`/`fil`/`fil-PH` and
`pt-BR` to their own grammars, and `pt` now follows Brazilian conventions.
Auto-detection covers Turkish and Tagalog, and sends Chinese written mostly
in Traditional characters to the Traditional Chinese rules.
Co-authored-by: kilerd <kilerd@kilerds-Mac-mini.local>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Text normalization now has rules for Turkish (`tr`) and Tagalog (`tl`, `fil`), and Portuguese follows Brazilian conventions, so `pt-BR` is supported too. Without `language`, Turkish and Tagalog text is detected, and Chinese written mostly in Traditional characters uses the Traditional Chinese rules.
Copy file name to clipboardExpand all lines: features/text-to-speech.mdx
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -308,7 +308,7 @@ curl --request POST https://api.fish.audio/v1/tts \
308
308
```
309
309
310
310
-**Default**: omit `language`, or send `"auto"` or an empty string, and the language is detected for each text chunk. This is the same behavior as before the field was added.
311
-
-**Regional conventions**: Spanish without a region follows Spain conventions, so `$300` becomes "trescientos dólares" and decimals use a comma. Send `es-MX` for Mexican readings ("pesos", "punto"). For Traditional Chinese, send `zh-TW`, which uses its own rules.
311
+
-**Regional conventions**: Spanish without a region follows Spain conventions, so `$300` becomes "trescientos dólares" and decimals use a comma. Send `es-MX` for Mexican readings ("pesos", "punto"). For Traditional Chinese, send `zh-TW`, which uses its own rules. Portuguese follows Brazilian conventions, with or without the `BR` region.
312
312
-**Tags without rules**: a tag with no dedicated normalization rules skips normalization instead of failing. See [Supported normalization languages](#supported-normalization-languages).
313
313
-**Mixed-language text**: leave `language` unset.
314
314
-**`normalize: false`**: `language` then only affects word timestamps.
@@ -332,14 +332,16 @@ Text normalization has dedicated rules for the languages below. Tags match case-
332
332
| French |`fr`, `fr-FR`, `fr-CA`, `fr-BE`, `fr-CH`|
Each row has its own rules, so the tag you pick changes the readings. For example, with `es` or `es-ES`, `$300` is read as "trescientos dólares" and the `0.9` in `0.9%` as "cero coma nueve". With `es-MX`, they are read as "trescientos pesos" and "cero punto nueve". In the same way, `zh-TW` uses Traditional Chinese rules, not the Simplified Chinese ones.
340
342
341
-
- Any other tag skips normalization, with no error, and the text is still synthesized as written. Today that includes `zh-HK`, `yue`, `pt-BR`, `pt-PT`, `es-419`, and `es-US`.
342
-
- With `language` unset, the language of each chunk is auto-detected among the languages above. Chunks whose language can't be detected are synthesized without normalization.
343
+
- Any other tag skips normalization, with no error, and the text is still synthesized as written. Today that includes `zh-HK`, `yue`, `pt-PT`, `es-419`, and `es-US`.
344
+
- With `language` unset, the language of each chunk is auto-detected among the languages above. Chinese written mostly in Traditional characters uses the Traditional Chinese rules. Portuguese, Turkish, and Tagalog are detected only when the detection is confident, so set `language` for short texts in these languages. Chunks whose language can't be detected are synthesized without normalization.
343
345
- The list grows over time as normalization rules are added.
0 commit comments