Spaces:
Runtime error
Runtime error
make the first inference after a restart run much faster
Browse files
app.py
CHANGED
@@ -62,6 +62,8 @@ class TTS_Interface:
|
|
62 |
"Portuguese Speaker's Voice": "reference_audios/portuguese.flac",
|
63 |
"Italian Speaker's Voice" : "reference_audios/italian.flac",
|
64 |
}
|
|
|
|
|
65 |
|
66 |
def read(self, prompt, language, accent, speaker):
|
67 |
language = language.split()[0]
|
|
|
62 |
"Portuguese Speaker's Voice": "reference_audios/portuguese.flac",
|
63 |
"Italian Speaker's Voice" : "reference_audios/italian.flac",
|
64 |
}
|
65 |
+
self.model.set_utterance_embedding(self.speaker_path_lookup[self.current_speaker])
|
66 |
+
|
67 |
|
68 |
def read(self, prompt, language, accent, speaker):
|
69 |
language = language.split()[0]
|