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}")