coqui-tts/TTS/tts
Enno Hermann 39321d02be
fix: correctly strip/restore initial punctuation (#3336)
* refactor(punctuation): remove orphan code for handling lone punctuation

The case of lone punctuation is already handled at the top of restore(). The
removed if statement would never be called and would in fact raise an
AttributeError because the _punc_index named tuple doesn't have the attribute
`mark`.

* refactor(punctuation): remove unused argument

* fix(punctuation): correctly handle initial punctuation

Stripping and restoring initial punctuation didn't work correctly because the
string-splitting caused an additional empty string to be inserted in the text
list (because `".A".split(".")` => `["", "A"]`). Now, an initial empty string is
skipped and relevant test cases are added.

Fixes #3333
2023-11-30 13:03:16 +01:00
..
configs Add hi in config defaults 2023-11-24 15:38:36 +01:00
datasets fix(formatters): set missing root_path attribute (#3182) 2023-11-09 16:49:52 +01:00
layers Make style 2023-11-27 14:15:50 +01:00
models Make style 2023-11-17 13:43:34 +01:00
utils fix: correctly strip/restore initial punctuation (#3336) 2023-11-30 13:03:16 +01:00
__init__.py rename the project to old TTS 2020-09-09 12:27:23 +02:00