YaTharThShaRma999
commited on
Commit
•
3b939c2
1
Parent(s):
138be10
Update rw_modules/xtts_voice.py
Browse files- rw_modules/xtts_voice.py +1 -1
rw_modules/xtts_voice.py
CHANGED
@@ -35,7 +35,7 @@ class xtts_model:
|
|
35 |
self.model.to(device).eval()
|
36 |
|
37 |
def infer(self, prompt, voice, load_sr=20000):
|
38 |
-
gpt_cond_latent, speaker_embedding = model.get_conditioning_latents(audio_path=voice, gpt_cond_len=30, gpt_cond_chunk_len=4, max_ref_length=60, load_sr=load_sr)
|
39 |
for out in self.model.inference_stream(prompt,"en", gpt_cond_latent=gpt_cond_latent, speaker_embedding=speaker_embedding, repetition_penalty=5.0, temperature=0.75):
|
40 |
yield out.to("cpu")
|
41 |
del gpt_cond_latent, speaker_embedding
|
|
|
35 |
self.model.to(device).eval()
|
36 |
|
37 |
def infer(self, prompt, voice, load_sr=20000):
|
38 |
+
gpt_cond_latent, speaker_embedding = self.model.get_conditioning_latents(audio_path=voice, gpt_cond_len=30, gpt_cond_chunk_len=4, max_ref_length=60, load_sr=load_sr)
|
39 |
for out in self.model.inference_stream(prompt,"en", gpt_cond_latent=gpt_cond_latent, speaker_embedding=speaker_embedding, repetition_penalty=5.0, temperature=0.75):
|
40 |
yield out.to("cpu")
|
41 |
del gpt_cond_latent, speaker_embedding
|