Spaces:
Runtime error
Runtime error
Update app.py
Browse fileschanging the audio speed rate
app.py
CHANGED
@@ -3,7 +3,7 @@ from gtts import gTTS
|
|
3 |
import os
|
4 |
|
5 |
def swahiliTTs(swahilitext):
|
6 |
-
obj = gTTS(text=swahilitext, lang="sw", slow=
|
7 |
obj.save("demo.mp3")
|
8 |
return "demo.mp3"
|
9 |
|
|
|
3 |
import os
|
4 |
|
5 |
def swahiliTTs(swahilitext):
|
6 |
+
obj = gTTS(text=swahilitext, lang="sw", slow=True)
|
7 |
obj.save("demo.mp3")
|
8 |
return "demo.mp3"
|
9 |
|