bootphon / phonemizer

Simple text to phones converter for multiple languages
https://bootphon.github.io/phonemizer/
GNU General Public License v3.0
1.15k stars 163 forks source link

maybe wrong IPA symbol for a German word "aneinander" #142

Closed XuesongYang closed 1 year ago

XuesongYang commented 1 year ago

Describe the bug there is /1/ appearing in the phonetic transcription.

$ echo "aneinander" | phonemize -l de -b espeak --with-stress
ˌan1aɪnˈandɜ

Phonemizer version

$ phonemize --version
phonemizer-3.2.1
available backends: espeak-ng-1.50, espeak-mbrola, festival-2.5.0, segments-2.2.1

System Your OS (Linux distribution, Windows, ...), eventually Python version.

To reproduce A short example (Python script or command) reproducing the bug.

Expected behavior A clear and concise description of what you expected to happen.

Additional context Add any other context about the problem here.

mmmaat commented 1 year ago

Hi,

This is related to espeak, not phonemizer. Here its output compared to the one of espeak-ng-1.50:

$ echo "aneinander" | phonemize -l de -b espeak --with-stress
ˌan1aɪnˈandɜ
$ echo "aneinander" | espeak-ng -qx --ipa -v de
ˌan1aɪnˈandɜ

So we have a strict equivalence. If you think this is a bug please forward it to the espeak-ng repo.