Skip to content

Ai-Chan is a Discord bot that offers gets the active users input and uses Voicevox API to create a TTS audio clip.

License

Notifications You must be signed in to change notification settings

SnubbyOWO/Ai-Chan-bot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ai-Chan Discord Bot

This is a fork of Waifu Speech but instead uses discord bot to use TTS. If you do use this/use as a reference please give credit to me and mirchuigawa (original creater)

Ai-Chan is a Discord bot that offers gets the active users input and uses Voicevox API to create a TTS audio clip.

The bot is programmed to carry out certain activities including text translation and text to speech generation. These operations are carried out using a variety of APIs and libraries, including the Voicevox API for TTS audio and the Google Cloud Translate API for translation.

It will also message IF there is a error with something, such as a audio making clip but not all the time as if you dont put a high proccessing time number the bot will a .WAV file that has nothing and is 0 bytes

Ai-Chan Discord Bot Commands

!about - about the bot

!commands - list of commands

!start - start the AI generation

Video/Audio

2023-03-26.07-40-20.mp4

Another Example:

snubslolz.1.mp4

The text:

Heya! I am Snubby, or you can call me Snubs but im a developer and i love to code! Hahaha anyways i have to bounce! Eh? Whats the matter? Oh the voice? Yeah i put my self as a anime girl because why not you know? Kinda cute.

おい! 私はスナブです、またはあなたは私をスナブと呼ぶことができますが、私は開発者であり、私はコーディングするのが大好きです! とにかく私は跳ね返らなければなりません! ええ〜? どうしたの? なんてこった? ええ、私はアニメの女の子として自分自身を置きました。なぜあなたは知らないのですか? ちょっとかわいい〜。

How does Waifu Speech discord bot work?

It uses Discord.py and Voicevox to use the bot and read messages of the user then to create the voice/TTS.

How do I run this program

To run this you need to install the requirments, you need Python version 3.7++, so make sure you have Python installed on your computer.

Install modules

  • Windows, Linux, Mac
pip install -r requirements.txt
  • I'm not sure it will work on all platforms but you can give it a try. I tried it on linux

If already installed

python3 bot.py

or

python bot.py

or again,

py bot.py

There is a changed main.py file as well that instead of using a audio file like the original you can just type it instead. So it could also just be a generator.

License

see: LICENSE

About

Ai-Chan is a Discord bot that offers gets the active users input and uses Voicevox API to create a TTS audio clip.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%