Skip to content

HirCoir/PiperTTS-Discord-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Piper Discord Bot

Piper TTS

This Discord bot allows users to convert text to speech using pre-trained models in .onnx format. The bot utilizes Piper, a tool for TTS (text-to-speech) conversion.

Installation Guide using Docker

  1. Clone the repository and copy your models .onnx in models foolder:

    git clone https://github.com/HirCoir/PiperTTS-Discord-Bot.git
    cd PiperTTS-Discord-Bot
  2. Build the Docker image:

    docker build -t piper_discord_bot .
  3. Run the Docker container:

    docker run -d --name piper_bot piper_discord_bot

Ensure that you have Docker installed on your system before proceeding with the installation.

Usage

  1. Invite the bot to your Discord server using the invite link generated by Discord after creating the bot application.

  2. Use the following commands to interact with the bot:

    • /piper help: Provides information on how to use the bot.
    • /piper list: Lists available models for TTS conversion.
    • /piper [model_number] [text]: Converts the provided text using the specified model number. Replace [model_number] with the model number obtained from the list command and [text] with the text you want to convert.

Configuration

  • BOT_TOKEN: Replace this with your Discord bot token.
  • temp_audio_folder: Set the temporary audio folder path.
  • piper_binary_path: Set the path to the Piper binary.
  • model_folder: Set the path to the folder containing .onnx model files.

Ensure that the Docker container has access to necessary resources such as model files and Piper binary. Please note that you need to replace BOT_TOKEN placeholder with your Discord bot token.

About

Piper tts using Discord Bot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published