As noted in Section 1, pronunciation dictionaries for ASR systems are usually written by hand.
arabic's morphological richness makes it difficult to create a pronunciation dictionary by hand since there are a very large number of word forms, each of which has a large number of possible pronunciations.