Skip to content

Dovahseod/thuum-tts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

thuum-tts

A Discord bot for text-to-speech.

Dependencies

discord.py (with voice support), python-dotenv, aiofiles, aiosqlite

Initial Configuration

eSpeak NG is required for the tts to work. MBROLA with a selection of MBROLA voices is recommended as the resulted speech could sound more natural.

In /config/ folder make a copy of example.json, rename it to your liking, and fill in values.

All IDs should be integers. default_voice should be the identifier a voice available to eSpeak NG, either natively or a MBROLA voice as available in eSpeak You can also get a list of accepted voices by running

espeak-ng --voices

in the command line (Linux command line, or on Windows, command prompt or PowerShell). If the bot is running on Windows, eSpeak NG should be added to PATH, or change the espeak_ng_path to the path of the eSpeak NG program. If you have not set up MBROLA, then change enable_mbrola to false.

In the root folder, create a .env for the bot token and configuration file name. It should look like this:

TOKEN=your_bot_token_here
BOT_CONFIG_FILENAME=filename_without_extension

On Discord developer portal's side, this bot requires the message content intent to accept message commands - slash commands will still work without it as long as you sync them somehow in advance.

Launching

Command prompt or PowerShell:

python src/main.py

Linux, with the autorestart-on-crash bash script (recommended):

bash start.sh

Linux, directly:

python3 src/main.py

Post-launch configuration

Once the bot is launched, run -sync as a Owner as registered in the configuration file to enable the application commands.

About

A Discord bot for text-to-speech.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors