← 开源
platelminto

chatgpt-conversation

Have a conversation with ChatGPT using your voice, and have it talk back.

ApplicationsPersonalPython
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
650
Star
65
Fork
+0
本周
1
贡献者
创建于 2022-12-04 · 更新于 2026-10-07 · 今日第 15395 名
主要开发者
platelminto
README

chatgpt-conversation

Have a conversation with ChatGPT using your voice, and have it talk back.

Requirements (Ubuntu)

  • espeak
  • ffmpeg
  • portaudio19-dev
  • python3-pyaudio

To install all of them:

sudo apt install portaudio19-dev python3-pyaudio ffmpeg espeak

Installation

Copy config.json.example to config.json and fill in the session_token value following the guide here.

Also, install requirements:

pip install -r requirements.txt

Usage

Run chatgpt.py, and wait 2 seconds before starting the conversation (this is to normalise ambient noise). You can keep responding to ChatGPT, it's all 1 "conversation".

Next steps

  • [ ] Cut-off ChatGPT as it's speaking if you decide to interrupt.
  • [ ] Silence PyAudio errors.
  • [ ] Remove common, useless end phrases from ChatGPT ("I am an online LLM...", etc.).
  • [ ] Make this as a web-app (better text-to-speech, universal):
    • [ ] Create interface
    • [ ] Create backend
    • [ ] Hook-up to a GPU so it's faster (in the speech->text bit).
排名相邻
同类项目