Update tts.py
Browse files
tts.py
CHANGED
@@ -15,4 +15,4 @@ def synthesize_speech(text):
|
|
15 |
with torch.no_grad():
|
16 |
speech = model.generate(**inputs)
|
17 |
|
18 |
-
return processor.decode(speech)
|
|
|
15 |
with torch.no_grad():
|
16 |
speech = model.generate(**inputs)
|
17 |
|
18 |
+
return processor.decode(speech, skip_special_tokens=True)
|