mirror of https://github.com/coqui-ai/TTS.git
set test_sentences in config
parent
8def3c87af
commit
d09385808a
|
@ -1,4 +1,4 @@
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass, field
|
||||||
from typing import List
|
from typing import List
|
||||||
|
|
||||||
from TTS.tts.configs.shared_configs import BaseTTSConfig, GSTConfig
|
from TTS.tts.configs.shared_configs import BaseTTSConfig, GSTConfig
|
||||||
|
@ -176,6 +176,15 @@ class TacotronConfig(BaseTTSConfig):
|
||||||
postnet_ssim_alpha: float = 0.25
|
postnet_ssim_alpha: float = 0.25
|
||||||
ga_alpha: float = 5.0
|
ga_alpha: float = 5.0
|
||||||
|
|
||||||
|
# testing
|
||||||
|
test_sentences: List[str] = field(default_factory=lambda:[
|
||||||
|
"It took me quite a long time to develop a voice, and now that I have it I'm not going to be silent.",
|
||||||
|
"Be a voice, not an echo.",
|
||||||
|
"I'm sorry Dave. I'm afraid I can't do that.",
|
||||||
|
"This cake is great. It's so delicious and moist.",
|
||||||
|
"Prior to November 22, 1963."
|
||||||
|
])
|
||||||
|
|
||||||
def check_values(self):
|
def check_values(self):
|
||||||
if self.gradual_training:
|
if self.gradual_training:
|
||||||
assert (
|
assert (
|
||||||
|
|
Loading…
Reference in New Issue