CaesarAI / CaesarVoice.py
CaesarCloudSync
CaesarAI Deployed
9d3162f
raw
history blame contribute delete
No virus
216 Bytes
from gtts import gTTS
import os
class CaesarVoice:
@classmethod
def synthesise(self,text,filename="temp.wav",lang='en'):
caesargtts = gTTS(text=text, lang=lang)
caesargtts.save(f"{filename}")