Coder Social home page Coder Social logo

mysterypancake / discord-tts Goto Github PK

View Code? Open in Web Editor NEW
35.0 4.0 42.0 161 KB

Text to speech Discord bot using FakeYou

Home Page: https://discordapp.com/oauth2/authorize?client_id=801286916082237441&scope=bot%20applications.commands&permissions=3196928

License: MIT License

JavaScript 99.91% Procfile 0.09%
nodejs javascript bot text-to-speech discord discordapp discordjs discord-bot discord-api tts

discord-tts's Introduction

Text to speech Discord bot using FakeYou.

Massive thanks to @echelon for supporting this project!

Commands

Join

Joins your voice channel.

/join

Leave

Leaves your voice channel.

/leave

Say

Generates speech using FakeYou, sent as an attachment.

/tts <voice> <message>

  • <voice>: Voice model to speak with. Use /voices to list all options.
  • <message>: Message to speak.

Say (voice chat)

Generates speech using FakeYou, spoken through voice chat.

/ttsvc <voice> <message>

  • <voice>: Voice model to speak with. Use /voices to list all options.
  • <message>: Message to speak.

Voices

Lists all available voices.

/voices

Setup

  1. Create your app with a Bot.
  2. Copy your bot's secret token and paste it into config.json.
  3. If you have a FakeYou API token, paste it into config.json.
  4. Go to https://discordapp.com/oauth2/authorize?client_id=<CLIENT_ID>&scope=bot%20applications.commands&permissions=3196928, with <CLIENT_ID> as your app's client ID.
  5. Install Node.js: brew install node
  6. Install FFmpeg: brew install ffmpeg
  7. Install the dependencies: npm install
  8. Run the bot: npm start

discord-tts's People

Contributors

mysterypancake avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

discord-tts's Issues

Is there any way to see the bot's log?

I'm having issues with the bot, when it joins a vc and i request something it usually works, but after a while i have do manually disconnect it and then type /join again. And then when it joins he does the request.

It's weird, any ideas of what is happening?

Some suggestions

Hi, just had a few suggestions.
Command that toggles if non-in-channel members can use the tts command (just in case)
Ability for the bot to "remember" the last-used voice so a member wouldn't have to re-type the desired model (if they use it a bunch)
Maybe some way the bot could "best-guess" the entered model? (if someone made a typo or forgot a hyphen or number etc)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.