tugaphone
Portuguese text to IPA, per lect. The Python package runs in your browser.
Machine-made output. No human reviewed it. pt-PT and pt-BR have a lexicon. All other lects run on rules alone, and a homograph can get the wrong reading.
Loading. The first load downloads about 40 MB and takes one to three minutes.
Examples
Each row shows stored output from tugaphone 3.6.9a1, made with native Python. Run repeats the example live in this page. A click during the load waits, and the example runs when the page is ready. These examples show the features. They are not a measure of accuracy, and other text can read worse.
One sentence across lects
pt-PT
A cidade tem dois rios.
IPA ɐ siˈdadɨ ˈtɐ̃j̃ ˈdojʒ ˈʁiuʃ
pt-PT-x-porto
A cidade tem dois rios.
IPA ɐ siˈdadɨ ˈtẽj̃ ˈdojʒ ˈʁiuʃ
pt-BR
A cidade tem dois rios.
IPA ɐ siˈdad͡ʒi ˈtẽj̃ ˈdojz ˈʁius
pt-BR-x-rj
A cidade tem dois rios.
IPA ɐ siˈdad͡ʒi ˈtẽj̃ ˈdojʃ ˈχiuʃ
pt-MZ
A cidade tem dois rios.
IPA ɐ siˈdade ˈtẽ ˈdojs ˈrios
Numbers and abbreviations expand
The digit takes the gender of its noun: 2 casas reads as duas.
Abbreviation and number, pt-PT
O Dr. Silva tem 3 filhos.
IPA u doˈtoɾ ˈsiɫvɐ ˈtɐ̃j̃ ˈtɾeʃ ˈfiʎuʃ
Number, pt-PT
comprei 2 casas
IPA kõˈpɾej ˈduɐʃ ˈkazɐʃ
Homographs
One spelling, two readings. The sentence selects the reading.
Verb, then noun, pt-PT
eu jogo o jogo
IPA ˈew ˈʒɔɡu u ˈʒoɡu
Thirst, pt-PT
ela tem sede
IPA ˈɛlɐ ˈtɐ̃j̃ ˈsedɨ
Head office, pt-PT
a sede da empresa
IPA ɐ ˈsɛdɨ dɐ ẽˈpɾezɐ
Contact with foreign words
With contact none, every word reads as Portuguese, so the English words read wrongly. With auto, the page finds the English words.
Contact none: read as Portuguese, pt-BR
fiz o download do app
IPA ˈfiz u dow̃ˈload du ˈap
Contact auto: pt-BR
fiz o download do app
IPA ˈfiz u dawnlowd du ap
Demo sentences come from the tugaphone sentence gold (tests/data/sentences): the pt-BR set for the Brazilian lects and pt-UY, and the pt-PT set for the other lects.