Open shreeshailgan opened 1 month ago
There is no solution at the phonemizer
level because the merge occurs within espeak
. Here is the raw output from espeak
we get back in the phonemize
function:
$ espeak-ng -x -q --ipa -l en-us "michael vaughan served as england captain for the test team"
mˈaɪkəl vˈɔːn sˈɜːvd az ˈɪŋɡlənd kˈaptɪn fəðə tˈɛst tˈiːm
As you can see espeak merges "for the" in its output. I don't see any general rule to implement a fix in phonemizer
. The only thing I see is to use words-mismatch
option to detect the problematic sentences and manually fix them in a post-processing step...
If someone has a better idea, I'm all ears :smile:
There is no option to prevent merging of consecutive words in phonemizer output. Take the following code for instance
The output is
the consecutive words
for the
are not separated in the phonemizer. I see no option to disable this merging. This is a problem when we want to map the output phones to the input wordsPhonemizer Version
Python Version:
Python 3.9.18