TTS_CLI is a text-to-speech (TTS) script that allows you to convert text into spoken words using various TTS engines.
- Clone the repository:
git clone https://github.com/juanmirod/tts.git
- Navigate to the project directory:
cd tts
- Create and activate a virtual environment:
python3 -m venv venv
source venv/bin/activate
- Install the required dependencies:
pip install -r requirements.txt
- Add your openAI key to the .env file:
cp .env.example .env
# open .env file and add your key
tts is a command line command, you can run -h for help:
python -m tts.tts -h
Run it with the sample txt file and the default voice in OpenAI tts API:
python -m tts.tts sample.txt
Run it with google tts (free):
python -m tts.tts -g sample.txt
Contributions are welcome! If you encounter any issues or have suggestions for improvements, please open an issue or submit a pull request.
This project is licensed under the MIT License.