Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/sobhan-srza/discord-voice-chat-bot
- Owner: Sobhan-SRZA
- License: bsd-3-clause
- Created: 2025-01-18T05:03:41.000Z (14 days ago)
- Default Branch: main
- Last Pushed: 2025-01-18T06:01:19.000Z (14 days ago)
- Last Synced: 2025-01-18T06:24:02.958Z (14 days ago)
- Topics: 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
- Language: JavaScript
- Homepage:
- Size: 19.5 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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 ๐