{"id":13571045,"url":"https://github.com/jiran214/GPT-vup","last_synced_at":"2025-04-04T07:32:44.328Z","repository":{"id":157010218,"uuid":"632387128","full_name":"jiran214/GPT-vup","owner":"jiran214","description":"GPT-vup BIliBili | 抖音 | AI | 虚拟主播","archived":false,"fork":false,"pushed_at":"2023-10-13T10:00:01.000Z","size":787,"stargazers_count":1225,"open_issues_count":23,"forks_count":186,"subscribers_count":16,"default_branch":"2.0","last_synced_at":"2025-04-01T15:13:53.382Z","etag":null,"topics":["bilibili","chatgpt","douyin","embeddings","vtuber"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jiran214.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-04-25T09:54:35.000Z","updated_at":"2025-04-01T13:59:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"49657e8b-427e-42fa-98bd-7efb57d571dd","html_url":"https://github.com/jiran214/GPT-vup","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiran214%2FGPT-vup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiran214%2FGPT-vup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiran214%2FGPT-vup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiran214%2FGPT-vup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jiran214","download_url":"https://codeload.github.com/jiran214/GPT-vup/tar.gz/refs/heads/2.0","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247139426,"owners_count":20890231,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bilibili","chatgpt","douyin","embeddings","vtuber"],"created_at":"2024-08-01T14:00:57.860Z","updated_at":"2025-04-04T07:32:44.292Z","avatar_url":"https://github.com/jiran214.png","language":"Python","funding_links":[],"categories":["Python","Applications","App"],"sub_categories":["提示语（魔法）"],"readme":"# GPT-vup Live2D数字人直播\n**（本库停止维护，可以关注下我的新项目：Langup: https://github.com/jiran214/langup-ai 已实现直播数字人）**\n\n![](https://img.shields.io/badge/license-GPL-blue)\n\n## 简介\n**Real Virtual UP**\n支持BiliBili和抖音直播，基于生产者-消费者模型设计，使用了openai嵌入、GPT3.5 api\n(本库暂时停止维护)\n\n### 功能\n- 基本功能，回答弹幕和SC、欢迎入场观众、感谢礼物\n- plugin(默认关闭)\n  - speech：监听ctrl+t热键，输入语音转为文本和ai数字人交互\n  - action：根据观众的行为匹配对应人物动作\n  - schedule：隔一段时间触发某一事件，讲故事、唱rap...\n  - context：给问题补充上下文\n  \n## 安装\n### 环境\n- win 10\n- python 3.8\n- vpn全局代理\n### pip安装依赖\n```shell\ngit clone https://github.com/jiran214/GPT-vup.git\ncd src\n# 建议命令行或者pycharm创建虚拟环境并激活 https://blog.csdn.net/xp178171640/article/details/115950985\npython -m pip install --upgrade pip pip\npip install -r requirements.txt\n```\n### 新建config.ini \n- 重命名config.sample.ini为config.ini\n- 更改api_key和proxy 其它可以不用管\n- 相关配置见后\n### 测试网络环境\n- src目录下运行：\u003e\u003e`python manager.py test_net`\n## 快速开始\n### B站直播\n- 安装依赖库：\u003e\u003e`pip install bilibili-api-python`\n- config.ini 的 room -\u003e id 更改为自己的房间号，可以先随便找个\n- src目录下运行：\u003e\u003e`python manager.py run bilibili`\n### 抖音直播\n- 参考 [抖音弹幕抓取数据推送: 基于系统代理抓包打造的抖音弹幕服务推送程序](https://gitee.com/haodong108/dy-barrage-grab/tree/V2.6.5/BarrageGrab) \n- 启动该项目\n- 打开web或者桌面端抖音正在直播的直播间，数据开始抓取\n- src目录下运行：\u003e\u003e`python manager.py run douyin`\n### Vtube Studio 安装及配置\n- 在steam下载Vtube Studio软件\n- 教程：https://www.bilibili.com/video/BV1nV4y1X7yJ?t=426.7\n- 重点！！！\n  - 麦克风设置：你可以不用虚拟声道，win 默认输出设备为Speaker Realtek(R) Audio，在VTS里的麦克风设置，输入设备也设置为Realtek(R) Audio即可。\n  - 嘴型同步声音，在mouthOpen的输入参数设置为声音频率、或者声音音量\n- 如果需要更好的直播效果，请自行了解更多\n## 进阶\n### speech plugin：语音交互\n- config.ini -\u003e plugin -\u003e speech 设置为True\n- 运行\u003e\u003e `pip install pyaudio speech_recognition keyboard`\n- 程序启动后按住 ctrl+T 说话，自动语音转文字，vup会听到你说的话\n### schedule plugin：隔一段时间触发某一事件，讲故事、唱rap...\n- config.ini -\u003e plugin -\u003e schedule 设置为True\n- utils/prompt_temple.py 的schedule_task_temple_list列表有我写好的触发事件\n### action plugin：VTS动作表情交互\n实现vup根据观众的互动行为匹配动作\n- config.ini -\u003e plugin -\u003e action设置为True\n- 运行\u003e\u003e`pip install pyvts`\n- 打开VTS，开启VTS的API开关\n- 在VTS的表情设置里，给每一个动作重命名为体现动作表情的词，不然没有意义\n- src目录下运行\u003e\u003e `python manager.py action`，pyvts会请求vts api（注意：此时VTS会有确认弹窗）\n- 程序会自动生成 action.json\n- 如果需要更新动作，请重复上述步骤\n### 实验功能：context plugin：给对话补充上下文\n- 前提1：Docker[安装milvus2.0单机版本](https://milvus.io/docs/v2.0.x/install_standalone-docker.md)，并设置 config.ini -\u003e milvus -\u003e host and port\n- 前提2：Mysql环境，并设置 config.ini -\u003e mysql -\u003e uri\n- config.ini -\u003e plugin -\u003e context 设置为True\n- 运行\u003e\u003e `pip install pymilvus==2.0`\n- 自行设置scripts/manager.py的参数，运行\u003e\u003e `python scripts/manager.py run`，采集贴吧数据到MySQL，处理后推给Milvus\n### 其它\n- utils/prompt_temple.py 的 system_template 可以更改vup的初始设定\n## 更新日志\n- V2.0 支持context plugin，目录重构、更简单的readme，解决依赖混乱的问题\n- V1.0 [旧版本内容](https://github.com/jiran214/GPT-vup/tree/1.0)\n## Contact Me\n\u003cdiv align=center\u003e\n  \u003cimg src=\"https://github.com/jiran214/GPT-vup/blob/2.0/public/mm_reward_qrcode_1686025672796.png\" width=\"300\" height=\"400\"/\u003e\u003cbr/\u003e\n\u003c/div\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjiran214%2FGPT-vup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjiran214%2FGPT-vup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjiran214%2FGPT-vup/lists"}