arbtok and rawi
Arabic text to diacritized text and IPA. The Python package and the rawi model run in your browser.
Machine-made output. No human reviewed it. The model makes mistakes on ordinary words, so check the vowels before you use a result.
The page needs a browser with WebAssembly JSPI. Other browsers get an error message.
Loading. The first load downloads about 42 MB and takes three to six minutes.
Examples
Each row shows stored output from arbtok 0.0.3a35, 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.
Bare text in, vowels and IPA out
The input has no vowel marks. rawi adds them, the spoken text drops the case endings, and the IPA reads the spoken text.
The book is on the table, ar
الكتاب على الطاولة
rawi الكِتَابُ عَلَى الطَّاوِلَةِ
spoken الكِتَاب عَلَى الطَّاوِلَة
IPA alkiˈtaːb ˈʕalaː tˤˈtˤɑːwila
I read the book, ar
قرأت الكتاب
rawi قَرَأْتُ الْكِتَابَ
spoken قَرَأْت الْكِتَاب
IPA qaˈraʔt alkiˈtaːb
One sentence in four lects
The lect changes the sounds. It keeps the words and verb forms of Modern Standard Arabic, and the rawi text is the same for every lect.
Modern Standard Arabic, ar
القهوة على الطاولة
rawi القَهْوَةُ عَلَى الطَّاوِلَةِ
spoken القَهْوَة عَلَى الطَّاوِلَة
IPA alˈqahwa ˈʕalaː tˤˈtˤɑːwila
Egyptian, arz-EG
القهوة على الطاولة
rawi القَهْوَةُ عَلَى الطَّاوِلَةِ
spoken القَهْوَة عَلَى الطَّاوِلَة
IPA ilˈʔahwa ˈʕalaː tˤˈtˤɑːwila
Najdi, ars-SA
القهوة على الطاولة
rawi القَهْوَةُ عَلَى الطَّاوِلَةِ
spoken القَهْوَة عَلَى الطَّاوِلَة
IPA alˈɡahawa ˈʕalaː tˤˈtˤɑːwila
Tunisian, aeb-TN
القهوة على الطاولة
rawi القَهْوَةُ عَلَى الطَّاوِلَةِ
spoken القَهْوَة عَلَى الطَّاوِلَة
IPA alˈqahwa ˈʕalɛː tˤˈtˤɑːwila
Demo sentences for the selected lect come from the arbtok code-switched gold set (data/gold_code_switched).