Text to Speach generator
Use Google Text-To-Speach API to generate mp3 files from text files
Requirements
- Python 3.9+
- Google cloud account
Preparing
- Install python requirements
pip install --upgrade pip wheel setuptools
pip install -r requirements.txt
- Setup configurations in the
config.py
file
- Enable API in your Google cloud console https://console.cloud.google.com/apis/api/texttospeech.googleapis.com/metrics
- Save your Google credentials to
credentials.json
file
Usage
- Create text files with your text in the
data
directory
- Run The script
- Your results will be stored in the
data
directory as mp3 files
- Used chars counter will be stored in
usage_statistics.json
file to exceed the monthly limit of the free account