ollieollie commited on
Commit
aa95513
·
verified ·
1 Parent(s): f604cb8

Update chatterbox/tts_turbo.py

Browse files
Files changed (1) hide show
  1. chatterbox/tts_turbo.py +9 -0
chatterbox/tts_turbo.py CHANGED
@@ -245,6 +245,15 @@ class ChatterboxTurboTTS:
245
  ).to(device=self.device)
246
  self.conds = Conditionals(t3_cond, s3gen_ref_dict)
247
 
 
 
 
 
 
 
 
 
 
248
  def generate(
249
  self,
250
  text,
 
245
  ).to(device=self.device)
246
  self.conds = Conditionals(t3_cond, s3gen_ref_dict)
247
 
248
+ def to(self, device):
249
+ self.device = device
250
+ self.t3 = self.t3.to(device)
251
+ self.s3gen = self.s3gen.to(device)
252
+ self.ve = self.ve.to(device)
253
+ if self.conds is not None:
254
+ self.conds = self.conds.to(device)
255
+ return self
256
+
257
  def generate(
258
  self,
259
  text,