ollieollie commited on
Commit
128ae2b
·
verified ·
1 Parent(s): 94720b9

Update chatterbox/src/chatterbox/tts.py

Browse files
Files changed (1) hide show
  1. chatterbox/src/chatterbox/tts.py +1 -1
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=S3GEN_SR))
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(