I need to write a code in order for the user to input a sentence and then the output is the transcription of the sentence using python I know that I need first to create a dictionary of all the Arabic phonemes, but I don't actually know the steps. The first module was to normalise the arabic speech that's to say removing any unneeded component in the text the user enters and also converting numbers to an actual text so that 1990 will be nineteen ninety. Thank you in advance.
I actually put the dic x{"ء":"ʔ","ب":"b","ت":"t","ث":"θ","ج":"g","ح":"ħ","خ":"x","د":"d","ذ":"ð","ر":"r","ز":"z","س":"s","ش":"ʃ","ص":"sˤ","ض":"dˤ","ط":"tˤ","ظ":"ðˤ","ع":"ʕ","غ":"ɣ","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h} by the transcription however some letters in arabic have more than one phoneme so I need a way to solve this also.