Skip to content

HydroHax/tts-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Text-to-Speech CLI Tool

Convert text to speech using Google Text-to-Speech API in your terminal!

Installation

Make sure you have Python3 and pip installed.

git clone https://github.com/CodeObser/tts-cli
cd tts-cli
pip3 install -r requirements.txt

Usage

python3 tts.py "Hello, this is a test." -o output.mp4

Options

-o, --output <output_file> : Specify the output file name (default: output.mp3).

-l, --lang <language_code> : Specify the language code (default: en).

-s, --slow: Speak slowly.-f, --format <audio_format> : Specify the output audio format (choices: mp3, wav; default: mp3).

-p, --play : Play audio after conversion.

-ls, --list-languages : List supported languages.

Examples

Convert text to speech in French and save it as a WAV file:

python3 tts.py "Bonjour, c'est un test." -o output.wav -l fr -f wav

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages