File size: 157 Bytes
c7557ed |
1 2 3 4 5 6 7 8 |
from gtts import gTTS
import os
def text_to_speech(text, filename="output.mp3"):
tts = gTTS(text, lang="tr")
tts.save(filename)
return filename
|
c7557ed |
1 2 3 4 5 6 7 8 |
from gtts import gTTS
import os
def text_to_speech(text, filename="output.mp3"):
tts = gTTS(text, lang="tr")
tts.save(filename)
return filename
|