Spaces:
Running
on
Zero
Running
on
Zero
Update InferenceInterfaces/ToucanTTSInterface.py
Browse files
InferenceInterfaces/ToucanTTSInterface.py
CHANGED
@@ -166,7 +166,7 @@ class ToucanTTSInterface(torch.nn.Module):
|
|
166 |
pause_duration_scaling_factor=pause_duration_scaling_factor,
|
167 |
prosody_creativity=prosody_creativity)
|
168 |
|
169 |
-
wave
|
170 |
wave = wave.squeeze().cpu()
|
171 |
wave = wave.numpy()
|
172 |
sr = 24000
|
|
|
166 |
pause_duration_scaling_factor=pause_duration_scaling_factor,
|
167 |
prosody_creativity=prosody_creativity)
|
168 |
|
169 |
+
wave = self.vocoder(mel.unsqueeze(0))
|
170 |
wave = wave.squeeze().cpu()
|
171 |
wave = wave.numpy()
|
172 |
sr = 24000
|