shibli-mueed / PyThinAir

Create videos out of thin air, It automatically fetch internet stories and create videos out of it with awesome background music and voiceover
MIT License
8 stars 0 forks source link

Love this! How to change voice gender? #2

Open MarcoCasanova00 opened 2 years ago

MarcoCasanova00 commented 2 years ago

I love this! Thanks for sharing. 🚀 I'm a noob and you would have a lot to teach me, but I will try fork this in the future to make it possible to render the source text on the video. Any suggestion?

Also, where do I change the spoken voice gender? I only found language (lang=en) thanks.

shibli-mueed commented 2 years ago

Hello @MarcoCasanova00

Thanks for the appreciation. Unfortunately you can not change the gender of the voice with gTTS module, It is totally depends on what Google Translator use for every language. However you can change the language accents. By editing Machine/audio.py text_ts=gTTS(text=vals[j], lang='en', slow=False, tld='accent')

Yes it is possible to render text over the video (MoviePy Module), You can refer to this article.

Regards Shibli Mueed