POST /v1/audio/speech request of your account uses its dictionary automatically: the rules for the request’s
language (and the rules for every language), for its voice (and the rules for every voice). Nothing to add to the request.
You can also manage it in the console: Pronunciation, with a ▶ button to hear each word before and after saving.
How a rule works
- Whole words only:
BMWdoes not changeBMWsorxBMW. - Turkish endings stay:
BMW'ninis saidbe me ve'nin,iPhone'unuz→ayfon'unuz. - Longest first: with rules for
BMW GroupandBMW, “BMW Group” uses the first. A replaced word is never matched again. - Then the normal reading: after the dictionary, numbers, dates, amounts and addresses are read as always.
- The voices read text, not phonetic symbols: write the alias the way a speaker of the language would spell the sound. Listen to it once; if it is not right, change the spelling (spaces, hyphens, doubled letters) and listen again.
tts.eu.mihu.ai are used there, rules made on
tts.tr.mihu.ai there. Up to 1,000 rules per account.
Add a rule
201, {"object": "list", "data": [...]}):
"replace": true next to "rules" makes the list your whole dictionary (an import: earlier rules are removed).
List, change, delete
Invalid fields answer
400 with the field in error.param; a rule of another account answers 404.
Speech requests
Nothing changes in your requests. Each answer says how many rules were used in theX-Pronunciations header. To read
a text without your dictionary (for example to compare), send "pronunciations": false:
Speech-to-text: the same words as hints
So that speech-to-text writes your words back the way they are written (“be me ve” → “BMW”), give the dictionary’s words to Umay ashints (Turkish):