fix h2p-parser module import pathing (English pronunciation)

#2
by Pendrokar - opened

Had to disable ionite's h2p-parser to get the TTS running.
https://github.com/ionite34/h2p-parser

Without this, in English the TTS will often wrongly pronounce certain words (Heteronyms) like in the following sentence:
I read the book. It was a good book to read.
(to red)

The issue relates to Python import paths:
https://huggingface.co/spaces/Pendrokar/xVASynth/blob/main/resources/app/python/xvapitch/text/text_preprocessing.py#L18

h2p_parser module not found even if the folder is there, so added the module to requirements.txt, but now while it seems to load in, it does not convert ARPAbet properly.

Setting the CMUDict as an enabled custom ARPABet dictionary was at the fault. H2P was receiving ARPABet instead of English text.

Fixed with:
https://huggingface.co/spaces/Pendrokar/xVASynth-TTS/commit/52881c6b5adbeaf7765de596fc55e2da04e8c8f0

Pendrokar changed discussion status to closed

Sign up or log in to comment