getvalue and default language
This commit is contained in:
parent
54b24781c5
commit
0da2f2df26
@ -28,8 +28,7 @@ class TTS:
|
|||||||
|
|
||||||
Extra information goes here
|
Extra information goes here
|
||||||
"""
|
"""
|
||||||
tts = gTTS(text)
|
|
||||||
mp3_fp = io.BytesIO()
|
mp3_fp = io.BytesIO()
|
||||||
|
tts = gTTS(text, 'en')
|
||||||
tts.write_to_fp(mp3_fp)
|
tts.write_to_fp(mp3_fp)
|
||||||
|
await ctx.send(file=discord.File(mp3_fp.getvalue(), "text.mp3"))
|
||||||
await ctx.send("Here's your text", file=discord.File(mp3_fp, "text.mp3"))
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user