Code Monkey home page Code Monkey logo

swaggymacro / barragegpt Goto Github PK

View Code? Open in Web Editor NEW
176.0 4.0 21.0 39.5 MB

弹幕AI问答互动,支持抖音、虎牙、哔哩哔哩平台。通过弹幕进行ChatGPT问答,然后使用OBS推流进行无人直播。Interactive AI Q&A with barrage, supporting platforms like Douyin, Huya, and Bilibili. Conduct Q&A sessions with ChatGPT through barrage and use OBS for unattended live streaming.

Python 70.91% JavaScript 24.79% HTML 4.29% CSS 0.01%
barrage bilibili chatgpt douyin gpt livestream tiktok

barragegpt's Introduction

logo

🤖BarrageGPT


当我快完成这个项目的时候,我会完善这份readme。

🖥️支持平台


  • 哔哩哔哩直播
  • 虎牙
  • 抖音

❓如何使用


  1. 拉取项目文件
    git clone https://github.com/SwaggyMacro/BarrageGPT.git
  2. 安装项目依赖
    pip install -r requirements.txt
  3. 复制配置例子文件 config.example.jsonconfig.json 然后修改其中的apikey为你自己的key。
    • 其中api_proxy用于填入第三方中转OpenAI API的地址,如果没有则在on属性填入false即可。
    • proxy则为代理地址(http代理),如果不需要则在on属性填入false即可。
  4. 以下几个平台的使用教程readme
  5. 打开OBS,然后截取本项目运行的软件进行推流。

🖼️截图


截图:

bilibili huya

录屏:


🤬吐槽


关于抖音平台直播:

  1. 首先,你必须要有1000个粉丝才能在电脑上直播。如果你不在电脑上直播,那么你就不能使用OBS推流,并且通过抓包获取抖音直播推流码的方法也不再有效。
  2. 手机直播的时候,你不能静音麦克风。
  3. 在我尝试了几次抖音直播后,我原本想用手机录屏直播,然后通过远程工具展示我的电脑屏幕(运行本项目的电脑),但是抖音不知道为什么连续两次无理由的封禁了我的直播(第一次我甚至都没有开播成功,只是在尝试开播,第二次我刚直播出项目的画面就被封禁了)。

所以这就是为什么本项目中没有抖音平台的使用截图。
脑瘫抖音

📋任务列表


  • 礼物触发AI问答(只有送礼物的用户才能通过发送弹幕进行AI问答,比如送玫瑰花礼物可以开启AI问答)
  • 虚拟AI角色(在旁边显示的虚拟角色,可以进行语音朗读回复)
  • 第三方中转OpenAI API

barragegpt's People

Contributors

swaggymacro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

barragegpt's Issues

openai报错

微信图片_20240611202923
使用过程中一直报这个错误是为什么呢?我用的是代理的Openai的API和key,另外请问那个礼物触发AI问答功能怎么开启呢?

MAC OS 13.6.1 (22G313) python报错

2023-11-26 20:11:56.660 python[21859:1142294] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSWindow drag regions should only be invalidated on the Main Thread!'
*** First throw call stack:
(
0 CoreFoundation 0x00007ff80290811a __exceptionPreprocess + 242
1 libobjc.A.dylib 0x00007ff80242e0b7 objc_exception_throw + 48
2 CoreFoundation 0x00007ff802930296 -[NSException raise] + 9
3 AppKit 0x00007ff805951e7e -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 307
4 AppKit 0x00007ff80593e394 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1227
5 AppKit 0x00007ff80593dec2 -[NSWindow initWithContentRect:styleMask:backing:defer:] + 42
6 AppKit 0x00007ff805c08ec3 -[NSWindow initWithContentRect:styleMask:backing:defer:screen:] + 50
7 libqcocoa.dylib 0x000000010e456312 qt_plugin_instance + 196690
8 libqcocoa.dylib 0x000000010e441c88 qt_plugin_instance + 113096
9 libqcocoa.dylib 0x000000010e43abd2 qt_plugin_instance + 84242
10 libqcocoa.dylib 0x000000010e43a646 qt_plugin_instance + 82822
11 QtGui 0x000000010b9a77f2 _ZN14QWindowPrivate6createEby + 146
12 QtWidgets 0x000000010adfbd36 _ZN14QWidgetPrivate6createEv + 1206
13 QtWidgets 0x000000010adfaa51 _ZN7QWidget6createEybb + 321
14 QtWidgets 0x000000010af4fac8 _ZN8QMenuBar7hoveredEP7QAction + 1032
15 QtWidgets 0x000000010af4f7a5 _ZN8QMenuBar7hoveredEP7QAction + 229
16 QtWidgets.abi3.so 0x000000010a32d414 ZL18init_type_QMenuBarP17_sipSimpleWrapperP7_objectS2_PS2_S3_S3 + 116
17 sip.cpython-39-darwin.so 0x00000001097a390f sipSimpleWrapper_init + 495
18 Python3 0x000000010918bfe4 _PyType_Lookup + 1940
19 Python3 0x0000000109134dc0 _PyObject_MakeTpCall + 384
20 Python3 0x00000001092119d0 _PyEval_EvalFrameDefault + 36720
21 Python3 0x000000010920e454 _PyEval_EvalFrameDefault + 23028
22 Python3 0x00000001091355e0 _PyFunction_Vectorcall + 512
23 Python3 0x000000010913790f PyMethod_New + 367
24 Python3 0x00000001092118fb _PyEval_EvalFrameDefault + 36507
25 Python3 0x000000010920e454 _PyEval_EvalFrameDefault + 23028
26 Python3 0x00000001091355e0 _PyFunction_Vectorcall + 512
27 Python3 0x000000010920e8c7 _PyEval_EvalFrameDefault + 24167
28 Python3 0x00000001091355e0 _PyFunction_Vectorcall + 512
29 Python3 0x00000001092118fb _PyEval_EvalFrameDefault + 36507
30 Python3 0x000000010920e436 _PyEval_EvalFrameDefault + 22998
31 Python3 0x00000001091355e0 _PyFunction_Vectorcall + 512
32 Python3 0x00000001092118fb _PyEval_EvalFrameDefault + 36507
33 Python3 0x000000010920e436 _PyEval_EvalFrameDefault + 22998
34 Python3 0x00000001091355e0 _PyFunction_Vectorcall + 512
35 Python3 0x0000000109137998 PyMethod_New + 504
36 Python3 0x00000001092a9656 PyInit__thread + 5702
37 Python3 0x000000010925c269 PyThread_start_new_thread + 313
38 libsystem_pthread.dylib 0x00007ff8027b51d3 _pthread_start + 125
39 libsystem_pthread.dylib 0x00007ff8027b0bd3 thread_start + 15
)
libc++abi: terminating due to uncaught exception of type NSException
Abort trap: 6

answer无法换行

MAIN_WINDOW.update_answer_signal.emit("第一行\n第二行")
字符串无论是\n还是\r\n还是
都无法换行…请问下怎么可以实现换行

upgrade required 抖音的

当我运行npm run dev这里时, 网页打开出现upgrade required , 这是哪个需要升级? 谢谢

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.