Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sobhan-srza/discord-voice-chat-bot

Free discord voice chat bot, this is what you can speek with it in discord voice.
https://github.com/sobhan-srza/discord-voice-chat-bot

chatbot chatgpt discord-bot discord-chatbot discord-js discord-v14 discord-voice-bot discord-voice-joiner discordjs girlfriend mr-sinre nodejs npm persian-caesar sobhan-srza speech voice voice-chat voice-chat-bot voice-chats

Last synced: 13 days ago
JSON representation

Free discord voice chat bot, this is what you can speek with it in discord voice.

Awesome Lists containing this project

README

        

















---

# Discord Voice Chat Bot ๐Ÿค–๐ŸŽค

This project is a **Discord Voice Chat Bot** that can join voice channels, convert your speech to text, interact with a chatbot API, and play the chatbot's response as audio in the voice channel. Itโ€™s like having a conversational AI directly in your Discord server! ๐Ÿš€

---

## Features โœจ

- Join Discord voice channels using the `/join` command.
- Convert speech to text using `discord-speech-recognition`.
- Interact with a chatbot API (e.g., Personality Forge) for intelligent responses.
- Convert the chatbot's text response to audio using Googleโ€™s Text-to-Speech API.
- Play the audio response in the voice channel.

---

## Prerequisites ๐Ÿ“‹

Before you begin, ensure you have the following:

- [Node.js](https://nodejs.org/) (version 16 or higher) installed.
- A **Discord Bot Token** from the [Discord Developer Portal](https://discord.com/developers/applications).
- A **Discord Server ID** where the bot will operate.
- An **API Key** and **API Secret** from [Personality Forge](https://www.personalityforge.com) for the chatbot functionality.

---

## Installation ๐Ÿ› ๏ธ

1. Clone the repository:

```bash
git clone https://github.com/your-username/Discord-Voice-Chat-Bot.git
cd Discord-Voice-Chat-Bot
```

2. Install the required dependencies:

```bash
npm install
```

3. Configure the `config.json` file with your credentials:

```json
{
"token": "Your Discord Bot Token",
"serverId": "Your Discord Server ID",
"antiCrash": true, // or false
"apiKey": "Your Personality Forge API Key",
"apiSecret": "Your Personality Forge API Secret"
}
```

4. Start the bot:

```bash
npm start
```

---

## Used Packages ๐Ÿ“ฆ

Below is a table of the packages used in this project, along with their versions and installation commands:

| Package | Version | Installation Command |
| ---------------------------- | -------- | ---------------------------------------- |
| `@discordjs/voice` | ^0.18.0 | `npm install @discordjs/voice` |
| `axios` | ^1.5.1 | `npm install axios` |
| `discord-speech-recognition` | ^3.4.1 | `npm install discord-speech-recognition` |
| `discord.js` | ^14.17.2 | `npm install discord.js` |
| `dotenv` | ^16.4.7 | `npm install dotenv` |
| `ffmpeg-static` | ^5.2.0 | `npm install ffmpeg-static` |
| `libsodium-wrappers` | ^0.7.15 | `npm install libsodium-wrappers` |
| `opusscript` | ^0.1.1 | `npm install opusscript` |
| `tweetnacl` | ^1.0.3 | `npm install tweetnacl` |

---

## How to Use ๐ŸŽฎ

1. Invite the bot to your Discord server using the OAuth2 link from the Discord Developer Portal.
2. Join a voice channel in your server.
3. Use the `/join` command to make the bot join the voice channel.
4. Start speaking! The bot will:
- Convert your speech to text.
- Send the text to the chatbot API.
- Convert the chatbotโ€™s response to audio.
- Play the audio in the voice channel.

---

## Configuration โš™๏ธ

The `config.json` file contains the following settings:

- **`token`**: Your Discord bot token.
- **`serverId`**: The ID of the Discord server where the bot will operate.
- **`antiCrash`**: Enable or disable anti-crash functionality (`true` or `false`).
- **`apiKey`**: Your Personality Forge API Key.
- **`apiSecret`**: Your Personality Forge API Secret.

---

## Contributing ๐Ÿค

Contributions are welcome! If youโ€™d like to contribute to this project, please follow these steps:

1. Fork the repository.
2. Create a new branch for your feature or bugfix.
3. Commit your changes.
4. Submit a pull request.

---

## License ๐Ÿ“œ

This project is licensed under the **BSD 3-Clause License**. See the [LICENSE](./licence) file for details.

---

Enjoy building and using your Discord Voice Chat Bot! ๐ŸŽ‰ If you have any questions or issues, feel free to open an issue on GitHub. Happy coding! ๐Ÿ’ปโœจ

---

## Contact ๐Ÿ“ž






Telegram


Instagram


Twitch


YouTube


Github




pc-development.png




pc-club.png




My Discord Account