rhasspy / gruut

A tokenizer, text cleaner, and phonemizer for many human languages.
MIT License
279 stars 36 forks source link

g or ɡ #27

Open iamanigeeit opened 2 years ago

iamanigeeit commented 2 years ago

While exploring Coqui-TTS, i found this:

# Table for str.translate to fix gruut/TTS phoneme mismatch
GRUUT_TRANS_TABLE = str.maketrans("g", "ɡ")

I was wondering how Gruut treats them, as i see the phonemes.txt use ɡ for English/Italian but g for German/Spanish. Would it be better to use ɡ (IPA symbol) instead of g (ASCII) for everything?