Giter Club home page Giter Club logo

chatgpt-virtual-live's Introduction

ChatGPT-Virtual-Live

项目简介

ChatGPT-Virtual-Live 是一个基于 Python 的虚拟主播直播助手,可以通过 blivedm 接口和监听程序获取 B 站、抖音、视频号弹幕信息,并将弹幕信息传输给 ChatGPT 进行语义理解和回复,最后将 vtuber 的

说话画面推送给直播软件。项目的目标是为虚拟主播提供更加智能、丰富的直播体验,提升观众的互动感和沉浸感。

该项目基于开源项目 blivedm 和 DouyinBarrageGrab,感谢开源社区的贡献和支持。

感谢开源项目 :

https://github.com/xfgryujk/blivedm

https://github.com/HaoDong108/DouyinBarrageGrab

功能特性

  • 支持获取 B 站直播间、抖音直播间、视频号的弹幕信息

  • 支持将弹幕信息传输给 ChatGPT 进行语义理解和回复

  • 支持通过 Edge TTS 合成语音,并将语音推送给虚拟主播

  • 支持推送虚拟主播的说话画面给直播软件

系统架构

系统主要分为以下几个模块:

  • 弹幕获取模块:通过 blivedm 和 DouyinBarrageGrab 获取直播间弹幕信息,并将信息传输给语义理解模块。

  • 语义理解模块:通过 ChatGPT 对弹幕信息进行语义理解和回复,将回复信息传输给语音合成模块。

  • 语音合成模块:通过 Edge TTS 将回复信息合成语音,并将语音推送给虚拟主播vtuber。

  • 画面推送模块:通过obs将虚拟主播的说话画面推送至直播软件。

使用方法

  1. 下载代码并安装依赖:

    git clone https://github.com/smallnew666/ChatGPT-Virtual-Live.git 
    cd ChatGPT-Virtual-Live 
    pip install -r requirements.txt
    

    安装虚拟麦克风程序VBCABLE_Driver_Pack43中的VBCABLE_Setup_x64.exe

    安装虚拟主播vtuber https://store.steampowered.com/app/1325860/VTube_Studio/

  2. B站配置参数:

    config.py 文件中配置以下参数:

  • room_id:B 站直播间的房间号

  • openai.api_key:ChatGPT apk-key

  1. 抖音配置参数:

    配置douyin.py

    openai.api_key:ChatGPT apk-key

  2. B站直播

    运行程序:

    python bilibili.py
    
  3. 抖音直播

    运行程序:

    运行监听程序 WssBarrageService.exe

    python douyin.py
    
  4. 视频号直播

    运行程序:

    视频号采用模拟web方式解析数据 首先下载chromedriver(http://chromedriver.storage.googleapis.com/index.html) 先扫码登录后台获取到cookie 然后运行代码

    python wechat.py
    

注意事项

  • 本项目仅供学习和研究使用,不得用于商业用途。

  • 请遵守 B 站、抖音等平台的使用规范,不得用于违法或有害活动。

获取更详细教程,欢迎加入知识星球,里面包括免费api key分享,chatgpt教程等相关内容

2023-04-17 17 58

chatgpt-virtual-live's People

Contributors

smallnew666 avatar

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.