项目介绍

antjpcdrogas/chatGPTVoiceDiscBot 是一个托管在 GitHub 上的开源项目,主要使用 JavaScript 编写,目前获得 21 个 Star、1 次 Fork。

仓库全名
antjpcdrogas/chatGPTVoiceDiscBot
Star 数
21
Fork 数
1
未关闭 Issue
1

README 摘要

Discord bot that uses chatGPT under the hood. Written in NodeJS.Prompts and answers using voice with google text-to-speech(gTTS), OpenAI and Discord. This is my first nodeJS attempt, only possible because of GitHub co-pilot. There is a bug in discord.js/voice, the issue is described here: https://github.com/discordjs/discord.js/issues/8482 The issue happens in all OS, not only WSL2. The proposed fix is already…

完整内容见 GitHub 原始 README 或本页 。

常见问题

chatGPTVoiceDiscBot 用什么语言开发?

主要使用 JavaScript 编写,目前有 21 个 Star。

如何获取 chatGPTVoiceDiscBot 的源码?

可以直接克隆仓库:git clone https://github.com/antjpcdrogas/chatGPTVoiceDiscBot.git,默认分支为 main;安装与运行步骤见仓库 README。

chatGPTVoiceDiscBot 最近还在维护吗?

仓库最近一次更新为 2025年3月22日,当前有 1 个未关闭 Issue;Star 数为 21,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

Discord bot that uses OpenAI chatGPT under the hood. Prompts and answers using voice with(gTTS)

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
25
价值分
13
活跃状态
活跃

语言占比

Dockerfile
HCL
JavaScript

贡献者

README

chatgptvoicediscbot Prettier Code Formatting

Discord bot that uses chatGPT under the hood. Written in NodeJS.Prompts and answers using voice with google text-to-speech(gTTS), OpenAI and Discord. This is my first nodeJS attempt, only possible because of GitHub co-pilot.

There is a bug in discord.js/voice, the issue is described here: https://github.com/discordjs/discord.js/issues/8482

The issue happens in all OS, not only WSL2. The proposed fix is already implemented in the node_module folder located in this repo.

Installation

Features

  • Uses official Discord and OpenAI modules
  • Continuous conversation in the same session(removed due to high token usage)
  • prompts by Voice
  • Replies by Voice
  • Works with multiple languages
  • Version 2 uses stream instead of files to play audio responses. ChatGPT response is also using stream. This update increase the response time by almost 3 seconds, makins the voice response almost instant.
  • Microsoft speech recognition sdk used to transform text-to-speech
  • João and Antonio personalities added
  • (Added in v3.0.1) Continuous conversation. Uses LangChain to store the conversation. Warning: it may be expensive

Usage

var chatgptvoicediscbot = require("chatgptvoicediscbot");
chatgptvoicediscbot();
node discordChatGPTVoiceBot.js


Environment variables:
- BOT_TOKEN
- OPENAI_API_KEY
- botDiscId
- channelId
- guildId
- SpeechKey

Credits

License

ISC © Quskia

评论

暂无评论