AIVtuber Framework. The character models are based on Live2D, and TTS uses Google's gTTS library. The current dialog API is calling GPT4o-mini. The way to interact with the voice model is through both a dialog box and speech recognition. The plan is to first adapt for Bilibili, followed by Twitch. Considering that most computers are now 64-bit, the Live2D model will not be adapted for v2.
Features:
Direct voice interaction with the language model
Multilingual support
Conversations are played back through TTS
Lip sync between the language model's voice and the Live2D model
-
Clone the repository
git clone https://github.com/luckykevvv/Desktop_Pet_Structure.git
-
Install dependencies
pip install -r requirements.txt
Additionally, please install ffmpeg.
-
Register for OpenAI API and write your key in openai_key.json
-
Run main.py
The Live2D rendering and manipulation part of this project is based on https://github.com/Arkueid/live2d-py.
Character model from: https://cubism.live2d.com/sample-data/bin/hiyori_free/hiyori_free_en.zip
This project is licensed under the GNU General Public License v2.0 (GPL-2.0). For more details, please refer to the LICENSE file.
This project is open-source software, and its features and services are provided for learning and reference purposes only. There is no guarantee that it will be suitable for specific purposes. When using this framework, you assume all related risks.
欢迎使用桌宠框架!这是一个用于创建桌面宠物的开源框架, 桌宠基于live-2d。你可以利用这个框架来开发各种有趣和互动的桌面宠物程序,增强你的桌面体验。
计划有变,现在是AIVtuber框架,人物模型基于live-2d,tts基于谷歌的gTTS库,目前对话API调用的是gpt4o-mini。现在与语音模型对话的方式是通过对话框和语音识别,准备先适配bilibili,再是twitch。
考虑到现在电脑都是64位,因此live-2d模型不对v2做适配。
特性:
对语言模型通过语音直接对话
支持多语言
对话会经过tts播放出来
大模型的语音与live-2d模型嘴型适配
-
克隆仓库
git clone https://github.com/luckykevvv/Desktop_Pet_Structure.git
-
安装依赖项
pip install -r requirements.txt
此外,请安装ffmpeg
-
注册openai-api并写进openai_key.json
-
运行main.py
本项目的live-2d渲染以及对live-2d模型的操控部分引用自 https://github.com/Arkueid/live2d-py. 人物模型来自:https://cubism.live2d.com/sample-data/bin/hiyori_free/hiyori_free_en.zip
本项目使用 GNU 通用公共许可证 v2.0 (GPL-2.0) 进行许可。有关详细信息,请参阅 LICENSE 文件。
本项目是开源软件,功能和服务仅供学习和参考,不保证适用于特定用途。使用本框架时,请自行承担相关风险。

