#Discord GPT Bot with voice commands | discord.js v14

99 messages · Page 1 of 1 (latest)

deft river
#

**UPDATED: **

Hello, I just made this cool discord bot that uses the Openai API and the wit.ai API to transcribe the users voice, send it to the bot then return the response in a TTS format so that it looks like you're literally talking with the bot. The actual bot will be launching within next week.

Usage:

  • /start [text/voice]: Creates a text/voice channel to start a conversation with the bot
  • /stop [text/voice]: Destroys the connection with the bot
  • /clear: Clears the conversation prompt
  • /ask: Asks one question to the bot, no conversation
  • /voice [voice]: Changes the TTS voice to one of the available voices

Limitations: Cannot speak an answer with more than 600 characters.

GitHub Link: https://github.com/Vortrix5/discord-ai-bot

PS: Any support/suggestions would be greatly appreciated 💜 .

GitHub

This is a Discord bot that allows users to communicate with an AI using the OpenAI and wit.ai APIs. It provides various commands for starting and stopping text and voice conversations, clearing the...

mortal zenith
#

Great idea. Looking forward to test it out.

deft river
zealous forge
#

This is a wicked idea! Looking forward to testing it out in my server

shrewd robin
#

this is such a great idea

timid island
#

Hi there we are building the same thing.. Maybe we can exchange Ideas.

gloomy goblet
#

i have no idea how to use it , how can i add it to my server can someone help ?

deft river
eager heath
eager heath
deft river
#

If you already know how to get all keys, no need to follow the instructions.

cold dirge
#

Hey I've followed the instructions exactly as listed, however when I do /start voice it spits out this error

#

tokens are set right

craggy lion
#

Nicw

cold dirge
#

although the error is about the interaction so those aren't the issue

#

/start chat works fine

#

Found it

#

So when the channel is already made it will join fine

#

It's just because of the way that it is creating the channel

#

will likely have to define the guild differently

deft river
#

Thanks @cold dirge, will definitely take a look into it.

deft river
cold dirge
#

Yeah np

#

Nice work btw

#

Been planning to do something similar for a while

#

I want to integrate the api with the NPCs in gta/fivem

#

Maybe use the Microsoft tts

deft river
#

That sounds like an awesome idea

cold dirge
#

Only issue is the response time

#

I feel like speech recognition has come a long way, but not far enough to be usable in an application like that

#

Especially if it’s a question with a longer response

deft river
#

And the open source ones are not that accurate to be honest

#

These kind of projects are great for experimental usage

cold dirge
#

I really want to make a robot irl and use the api as the main processor

deft river
#

Well that's a project I am currently working on

#

It's only feasible up to a certain extent

cold dirge
#

What’s wild is the AI can actually give you almost a step by step guide on how to do it

#

Explaining how to convert irl inputs like sensor information into prompts and then convert the responses into actions

deft river
#

I wouldn't always fully trust GPT when it comes to engineering or coding

cold dirge
#

Oh of course not

#

But I mean less like lines of code and more of as a concept

deft river
#

I'm not saying what it says is wrong, it's just outdated

cold dirge
#

Watch this

cold dirge
#

On mobile rn so it may be harder to follow

deft river
#

I see

#

It's funny how in such a short time lapse, GPT has become my #1 assistant in all my projects

cold dirge
#

Same

#

I’ve been using like crazy recently

#

Anything from discord announcements to job cover letters

deft river
#

Exactly

cold dirge
#

Machine Learning is going to change the world exponentially in the next 5-10 years

deft river
#

There's no doubt in that

cold dirge
#

It already is right now

#

They’ve had military applications for years

#

Things like battle planning

deft river
#

But I feel like it is, considerably, reducing the human's intelligence for its own

cold dirge
#

I agree with that too

#

Although one way to look at it

#

It’s a tool to be used

#

At one point we were plowing fields with horses

#

It’s what humanity does

#

We make tools to make the load easier

#

In my opinion, Artificial Intelligence is the next step in our society’s evolution

deft river
#

Yes but we've completely moved from trying to make tools that would facilitate human's life, to a form of intelligence that is taking over the human one

quaint current
#

When I enter the second statement, an error will be reported, too many requests within an hour, is this also the case with you?

quaint current
#

yes, uses CharGPT bot

deft river
quaint current
deft river
#

Though, I am not an expert in this nor have I any accurate answer to why that happens

quaint current
#

ok, let me try another browser

#

thank you

deft river
wheat sable
#

Awesome work Vortrix!

#

starred the repo :)

finite sapphire
#

Starring as well! Very, very cool

deft river
#

Thanks, really appreciate it

#

Please don't hesitate to contact me if you have any questions or suggestions.

Project is on hold for now as I'm working on other things, but will restart working on it soon if I get enough activity on the repo.

quiet elbow
#

/start hello

raw sandal
#

hii

old boughBOT
#

@raw sandal

Image generation is not available in this server.
To start generating images, click here.

deft river
#

Did you mean to ping me?

shrewd robin
deft river
somber basalt
signal goblet
#

/start [text/voice]

red spire
#

Anyone willing to let me use their witAI apikey

zealous nacelle
#

/ask what time is it

#

/ask what time is it

deft river
deft river
#

UPDATE: This version now support GPT-4.

haughty pawn
#

That's so cool!

mortal zenith
#

Oh wow. I bet you got early in the waitlist. What's the difference in integration between gpt3.5 and gpt4 api?