mirror of
https://github.com/wassname/TTS.git
synced 2026-09-09 11:16:00 +08:00
Remove the noise in the code
This commit is contained in:
+1
-3
@@ -25,9 +25,7 @@ def tts():
|
||||
text = request.args.get('text')
|
||||
print(" > Model input: {}".format(text))
|
||||
data = synthesizer.tts(text)
|
||||
return send_file(data,
|
||||
attachment_filename="testing.wav",
|
||||
as_attachment=True,
|
||||
return send_file(data,
|
||||
mimetype='audio/wav')
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
Reference in New Issue
Block a user