8000 GitHub - juanmirod/tts: A tts command line tool using openAI or google tts or local model #tts #ai #openai
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
/ tts Public

A tts command line tool using openAI or google tts or local model #tts #ai #openai

Notifications You must be signed in to change notification settings

juanmirod/tts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TTS_CLI

TTS_CLI is a text-to-speech (TTS) script that allows you to convert text into spoken words using various TTS engines.

Installation

  1. Clone the repository:
git clone https://github.com/juanmirod/tts.git
  1. Navigate to the project directory:
cd tts
  1. Create and activate a virtual environment:
python3 -m venv venv
source venv/bin/activate
  1. Install the required dependencies:
pip install -r requirements.txt
  1. Add your openAI key to the .env file:
cp .env.example .env
# open .env file and add your key

Usage

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

Contributing

Contributions are welcome! If you encounter any issues or have suggestions for improvements, please open an issue or submit a pull request.

License

This project is licensed under the MIT License.

About

A tts command line tool using openAI or google tts or local model #tts #ai #openai

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0