Skip to content
Snippets Groups Projects
Commit 2f266b2d authored by Andres Marafioti's avatar Andres Marafioti
Browse files

fixy

parent 2cb9464b
No related branches found
No related tags found
No related merge requests found
......@@ -43,8 +43,8 @@ class MeloTTSHandler(BaseHandler):
self.should_listen = should_listen
self.device = device
self.language = "<|" + language + "|>" # 'Tokenize' the language code to do less operations
self.model = TTS(language=WHISPER_LANGUAGE_TO_MELO_LANGUAGE[language], device=device)
self.speaker_id = self.model.hps.data.spk2id[WHISPER_LANGUAGE_TO_MELO_SPEAKER[speaker_to_id]]
self.model = TTS(language=WHISPER_LANGUAGE_TO_MELO_LANGUAGE[self.language], device=device)
self.speaker_id = self.model.hps.data.spk2id[WHISPER_LANGUAGE_TO_MELO_SPEAKER["<|" + speaker_to_id + "|>"]]
self.blocksize = blocksize
self.warmup()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment