Spaces:
Runtime error
Runtime error
Update chatterbox/src/chatterbox/tts.py
Browse files
chatterbox/src/chatterbox/tts.py
CHANGED
@@ -186,7 +186,7 @@ class ChatterboxTTS:
|
|
186 |
t3_cond_prompt_tokens = torch.atleast_2d(t3_cond_prompt_tokens).to(self.device)
|
187 |
|
188 |
# # Voice-encoder speaker embedding
|
189 |
-
ve_embed = torch.from_numpy(self.ve.embeds_from_wavs([s3_ref_wav], sample_rate=
|
190 |
ve_embed = ve_embed.mean(axis=0, keepdim=True).to(self.device)
|
191 |
|
192 |
t3_cond = T3Cond(
|
|
|
186 |
t3_cond_prompt_tokens = torch.atleast_2d(t3_cond_prompt_tokens).to(self.device)
|
187 |
|
188 |
# # Voice-encoder speaker embedding
|
189 |
+
ve_embed = torch.from_numpy(self.ve.embeds_from_wavs([s3_ref_wav], sample_rate=S3_SR))
|
190 |
ve_embed = ve_embed.mean(axis=0, keepdim=True).to(self.device)
|
191 |
|
192 |
t3_cond = T3Cond(
|