Ikaros-521 / AI-Vtuber

AI Vtuber是一个由 【ChatterBot/ChatGPT/claude/langchain/chatglm/text-gen-webui/闻达/千问/kimi/ollama】 驱动的虚拟主播【Live2D/UE/xuniren】,可以在 【Bilibili/抖音/快手/微信视频号/拼多多/斗鱼/YouTube/twitch/TikTok】 直播中与观众实时互动 或 直接在本地进行聊天。它使用TTS技术【edge-tts/VITS/elevenlabs/bark/bert-vits2/睿声】生成回答并可以选择【so-vits-svc/DDSP-SVC】变声;指令协同SD画图。
https://ikaros-521.github.io/Luna-Docs/site/
GNU General Public License v3.0
2.55k stars 396 forks source link

🐛 Bug: 聊天页 语音聊天 OSError: [Errno -9981] Input overflowed #901

Open Ikaros-521 opened 1 month ago

Ikaros-521 commented 1 month ago

操作系统

Ubuntu

Python 版本

3.10.11

AI Vtuber 版本

20240625

描述问题

Linux 聊天页 whisper 启动后报错

2024-06-25 00:03:22 - /home/wei/AITest/AI-Vtuber/main.py[line:513] - ERROR: Traceback (most recent call last):
  File "/home/wei/AITest/AI-Vtuber/main.py", line 467, in do_listen_and_comment
    frames = audio_listen(config.get("talk", "volume_threshold"), config.get("talk", "silence_threshold"))
  File "/home/wei/AITest/AI-Vtuber/main.py", line 303, in audio_listen
    data = stream.read(CHUNK)
  File "/home/wei/anaconda3/envs/aivtb/lib/python3.10/site-packages/pyaudio/__init__.py", line 570, in read
    return pa.read_stream(self._stream, num_frames,
OSError: [Errno -9981] Input overflowed

复现步骤

正常部署,改了不少调用后,直接跑到聊天函数

期望的结果

No response

截图或日志

No response