GithubHelp home page GithubHelp logo

crilleaz / discordphp-gpt-3-and-voicerss Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 2.2 MB

A DiscordPHP bot with GPT-3 AI and Voicerss implementation

PHP 100.00%
discord discord-bot discordphp gpt-3 voicerss voicerss-api artificial-intelligence chatbot chatgpt gpt3

discordphp-gpt-3-and-voicerss's Introduction

DiscordPHP GPT-3 with Voicerss

A DiscordPHP bot with GPT-3 AI and Voicerss implementation

By using https://api.openai.com/v1/engines/text-davinci-003/completions and voicerss-text-to-speech, we get a funny take on AI, having the AI talk back to you with the generated text.

Test it live

https://discord.gg/M8ufRPa8q6 (due to limited hosting capabilities, bot might be offline)
Join the voice-channel and type any question: .ai what does color red taste like?

Installation

  • Clone repo to wherever or download directly
  • Edit run.php and functions.php, add your tokens
  • Install FFMPEG locally (linux: sudo apt install ffmpeg)
  • Invite your discordbot your server
  • Have atleast php8.0 installed

Usage

  • Start: sudo php run.php
  • Type into your discord-channel: .ai what does color red taste like?
  • Bot will now start AI generating an answer for your question, then use Voicerss to generate text-to-speech based on AI's answer
  • Bot will now join selected voice channel, start talking then leave the voice channel
  • Bot will remove the generated .mp3-file from the system

Discord

  • Crilleaz

Credits

  • DiscordPHP
  • OpenAI GPT-3
  • Voicerss

discordphp-gpt-3-and-voicerss's People

Contributors

crilleaz avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

mhwh-dev

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.