Requirements: pip install gtts
gtts(Google Text To Speech)
- Initialise the variable for your text ("mytext" line 6 in main.py)
- Initialise the variable for language ("language" line 9 in main.py)
- Create an instance of gTTS class ("myobj" line 12 in main.py)
- Call the method save() and pass the filename that you want as a parameter (line 15 in main.py)
- Play the audio file (line 19 in main.py)
If you make any changes main.py, please mention it in README.md (this file). A better documentation makes the process of development faster.
Author - Saumitra Jagdale