Closed CorentinJ closed 3 years ago
Ok thank's for reporting, actually this is even worst...
>>> from phonemizer import phonemize
>>> phonemize(['! ?', 'hey!'], backend="espeak", preserve_punctuation=True, punctuation_marks='!')
['! heɪ ', '!']
>>> phonemize(['?', 'hey!'], backend="espeak", preserve_punctuation=True, punctuation_marks='!')
['heɪ ', '!']
I'll look at a fix.
The following
Gives for output
[' heɪ ! heɪ ', ',']
, (the second sentence got merged with the first) when[' heɪ ! ', 'heɪ,']
was expected.