keithito / tacotron

A TensorFlow implementation of Google's Tacotron speech synthesis with pre-trained model (unofficial)
MIT License
2.94k stars 965 forks source link

Number conversion issue #348

Open francochen1987 opened 3 years ago

francochen1987 commented 3 years ago

https://github.com/keithito/tacotron/blob/d26c763342518d4e432e9c4036a1aff3b4fdaa1e/text/numbers.py#L57 You need to replace dash character to space, too. _inflect.number_to_words(num, andword='', zero='oh', group=2).replace(', ', ' ').replace('-', ' ') Without that, 91 => ninety-one.