Closed klvbdmh closed 7 years ago
BTW, shouldn't it be to_phonemes
instead of to_phonems
? The English singular is a phoneme.
I'll investigate about the bug, but you're right about the Phonemes things (https://en.wiktionary.org/wiki/phoneme#Noun). I'll change it right away.
Thanks for the level of professionalism of your bug reports btw, i really appreciate it!
Hah, thanks! I picked it up from Joel on Software.
Thanks for fixing spelling - only one small correction left (see #6).
Merged. Regarding the original bug, could you print out the string of phonemes returned by espeak, before it's "parsed" by the PhonemList class? I might have an idea.
Here:
s 107
e 53 0 105 80 81 100 81
k 110
@ 37 0 84 80 78 100 78
n 91 100 73
d 70
_ 350
_ 1
The blank line is causing the problems.
The problem is once again Windows-specific. Newlines in Windows are created with CRLF line breaks, which include \r
character. Stripping the troublesome line fixes the problem.
Code that reproduces the issue
Expected behavior
The phonemes list is printed
Observed behavior
IndexError
is raised:Comments
Interestingly, it works when I change language to French or when I try the word
corner
in English.