coqui-tts/TTS/tts/utils
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
..
assets/tortoise Tortoise TTS inference (#2547) 2023-05-16 00:58:21 +02:00
monotonic_align Fix import statements 2021-10-25 19:29:16 +02:00
text 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
data.py Add audio length sampler balancer (#1561) 2022-05-12 19:59:19 +02:00
fairseq.py Port Fairseq TTS models (#2628) 2023-06-05 11:15:13 +02:00
helpers.py Add Delightful-TTS implementation (#2095) 2023-07-24 13:41:26 +02:00
languages.py d-vector handling (#1945) 2022-09-13 14:10:33 +02:00
managers.py Cache speaker encoder model (#2284) 2023-01-23 11:49:51 +01:00
measures.py Format style of the recipes 2021-09-06 15:16:58 +00:00
speakers.py Fixed bug related to yourtts speaker embeddings issue (#2234) 2023-01-02 14:20:02 +01:00
ssim.py Implement VitsAudioConfig (#1556) 2022-07-12 18:49:58 +02:00
synthesis.py Fix loading Bark (#2893) 2023-08-26 11:59:00 +02:00
visual.py Fastspeech2 (#2073) 2023-01-15 22:39:22 +01:00