Code Monkey home page Code Monkey logo

discord-lyrebird's Introduction

THE LYREBIRD API IS NOW DEPRECATED :(

Text to speech Discord bot which used the deprecated Lyrebird API.

This bot was designed to work with Heroku, with separate web and worker applications to prevent the bot from going offline. This functionality required a MongoDB database to store authorized voices and communicate between the applications.

Alternatively, the combined version of this bot did not require setting up a database, but could only be run on a server with persistent storage. Heroku's storage is cleared every time the application is restarted. I never finished the combined version, so it is missing some features present in the separated version.

Commands

Add Voice

lyre_addvoice

Registers your voice to be used with lyre_say and lyre_share.

Your voice can only be used on the guild this command was run on.

Say

lyre_say

Generates speech using your voice, registered with lyre_addvoice.

If the bot is in a voice channel, the speech will play through this channel.

If not, the speech will be sent as an attachment.

Share

lyre_share

Creates a command through which others in your guild can generate speech using your voice.

This command will function identically to lyre_say, except others in your guild can use it.

Join

lyre_join

Joins the voice channel you are currently in.

Leave

lyre_leave

Leaves the voice channel.

Say Token

lyre_saytoken

Generates speech using a Lyrebird token provided directly.

This command does not require a database, but is not recommended as others can see your token.

Setup

  1. Create your voice.

  2. Set the environment variable LYRE_REDIRECT_URI to your computer's address. Locally, this will be http://localhost:8080. This is used for authorization.

  3. Create your Lyrebird app. Make sure Redirect URI matches LYRE_REDIRECT_URI.

  4. Set the environment variables LYRE_CLIENT_ID and LYRE_CLIENT_SECRET from the website.

  5. Create your Discord app with a Bot.

  6. Set the environment variable DISCORD_BOT_TOKEN from the website.

  7. Go to https://discordapp.com/oauth2/authorize?client_id=<CLIENT_ID>&scope=bot, with <CLIENT_ID> as your Discord app's client ID.

  8. Install Node.js: brew install node

  9. Install FFmpeg: brew install ffmpeg

  10. Install the dependencies: npm install

  11. Run the bot: npm start

  12. Hope it works!

discord-lyrebird's People

Contributors

mysterypancake avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

discord-lyrebird's Issues

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.