Text to Voice convert using Python

 Text to Voice convert using Python



Pre Requirements:
pip install gTTS 

Full Soure code: 

from gtts import gTTS 

import os

yout_text = 'Hey this my own assistant'

language = 'en'

final = gTTS(text=your_text, lang=language, slow=False) 

final.save("first.mp3") 

os.system("vlc first.mp3") 


Thank you for reading my blog ! 

 

Share:

No comments:

Post a Comment