Voiced labial–palatal approximant (ɥ) missing in French IPA translation
The voiced labial–palatal approximant (ɥ) is missing from the IPA translation.
The command line espeak-ng -v fr --ipa "huit huître suis suie huile nuit nuage truie truite puis suite poursuivi pluie fuir suer" outputs the following result :
yˈit yˈitʁ syˈi syˈi yˈil nyˈi nyˈaʒ tʁyˈi tʁyˈit pyˈi syˈit puʁsyivˈi plyˈi fyˈiʁ syˈe
When it is expected : ɥˈit ɥˈitʁ sɥˈi sɥˈi ɥˈil nɥˈi nɥˈaʒ tʁɥˈi tʁɥˈit pɥˈi sɥˈit puʁsɥivˈi plɥˈi fɥˈiʁ sɥˈe
Using eSpeak NG text-to-speech: 1.51 on Ubuntu 24.04.2 - Python 3.12.9
I think the ɥ symbol can be added to phsource/ph_french file. After editing the file this is the output I get:
ɥˈit ɥˈitʁ sɥˈi sɥˈi ɥˈil nɥˈi nyˈaʒ tʁɥˈi tʁɥˈit pɥˈi sɥˈit puʁsɥivˈi plɥˈi fɥˈiʁ syˈe
Note that the last word didn't work.
This is the diff that worked for me:
git diff ph_french
diff --git a/phsource/ph_french b/phsource/ph_french
index 509ebc97..89586b26 100644
--- a/phsource/ph_french
+++ b/phsource/ph_french
@@ -465,6 +465,7 @@ phoneme y
vwl starttype #u endtype #u
IF nextPhW(E~) OR nextPhW(#i) THEN
+ ipa ɥ
length 110
FMT(vowel/y, 80)
ENDIF
After making this change, you have to recompile the phonemes:
cd git/espeak-ng/
sudo espeak-ng --compile-phoneme=phsource;
The permalink to the exact line is this one: https://github.com/espeak-ng/espeak-ng/blob/a4ca101c99de35345f89df58195b2159748b7092/phsource/ph_french#L468
Hi everyone, I provided a fix for this issue with pull request #2280
Can someone review it?