mirror of https://github.com/coqui-ai/TTS.git
Merge pull request #5 from idiap/tokenizer-logging
Add tokenizer logging, update version for release 0.23.0
This commit is contained in:
commit
5527f70d68
|
@ -26,9 +26,9 @@ ______________________________________________________________________
|
|||
|
||||
[](https://discord.gg/5eXr5seRrv)
|
||||
[](https://opensource.org/licenses/MPL-2.0)
|
||||
[](https://badge.fury.io/py/TTS)
|
||||
[](https://badge.fury.io/py/coqui-tts)
|
||||
[](https://github.com/idiap/coqui-ai-TTS/blob/main/CODE_OF_CONDUCT.md)
|
||||
[](https://pepy.tech/project/tts)
|
||||
[](https://pepy.tech/project/coqui-tts)
|
||||
[](https://zenodo.org/badge/latestdoi/265612440)
|
||||
|
||||

|
||||
|
|
|
@ -1 +1 @@
|
|||
0.22.1
|
||||
0.23.0
|
||||
|
|
|
@ -107,10 +107,13 @@ class TTSTokenizer:
|
|||
5. Text to token IDs
|
||||
"""
|
||||
# TODO: text cleaner should pick the right routine based on the language
|
||||
logger.debug("Tokenizer input text: %s", text)
|
||||
if self.text_cleaner is not None:
|
||||
text = self.text_cleaner(text)
|
||||
logger.debug("Cleaned text: %s", text)
|
||||
if self.use_phonemes:
|
||||
text = self.phonemizer.phonemize(text, separator="", language=language)
|
||||
logger.debug("Phonemes: %s", text)
|
||||
text = self.encode(text)
|
||||
if self.add_blank:
|
||||
text = self.intersperse_blank_char(text, True)
|
||||
|
|
Loading…
Reference in New Issue