base on Live2D Virtual Human for Chatting based on Unity # Live2D Virtual Human for Chatting based on Unity
[<img alt="NPM" src="https://img.shields.io/badge/license-MIT-green">](https://opensource.org/license/mit)
## 项目介绍
视频演示:https://www.bilibili.com/video/BV1CW4y1X7PK
## 项目部署
### API申请
- 本项目不提供公用API Key,请自行申请。
1. [Azure](https://azure.microsoft.com/zh-cn/products/cognitive-services/):[API文档](https://learn.microsoft.com/zh-cn/azure/cognitive-services/speech-service/) 并将 Region 设置为 eastasia
2. [OpenAI](https://platform.openai.com/account/api-keys):[API文档](https://platform.openai.com/docs/api-reference)
3. [APISpace](https://www.apispace.com/eolink/api/wbqgfx/introduction):[API文档](https://www.apispace.com/eolink/api/wbqgfx/apiDocument#scroll=0)
- 申请好后请将 API Key 填入设置 UI 中,项目会持久存储这些数据。
### 环境
- Unity 2021.3.0
### 分辨率
- Editor 下分辨率**建议设置**为 1920*1080
- Runtime 下已默认设置为 1920*1080
### Unity包导入
- [OpenCVPlusUnity](https://assetstore.unity.com/packages/tools/integration/opencv-plus-unity-85928):处理图像相关操作,用于人脸检测等模块
- Newtonsoft.Json:序列化、反序列化等JSON相关操作
- Add Package from git URL : `com.unity.nuget.newtonsoft-json`
## 技术文档
如果你对本项目的实现感兴趣,我们记录下了一些开发、学习时的过程。供参考:[技术文档](./Assets/Documentation/doc.md)
## 许可
- 本项目代码根据 [MIT](https://opensource.org/license/mit) 许可证获得许可。
- [模型](#致谢)以及[美术资源](#致谢)均由其作者各自拥有,必须在其各自作者的许可下使用。
## 引用
如果您认为本项目对您的工作有用,请考虑引用:
```tex
@misc{VHC,
author = {Tianyu and Si, Haoyu and Gao, Lingjie and Wang},
title = {Live2D Virtual Human for Chatting based on Unity},
year = {2023},
publisher = {GitHub},
journal = {https://github.com/Navi-Studio/Virtual-Human-for-Chatting},
school = {Nanjing University}
}
```
## 致谢
我们非常感谢画师 [草莓奶兔](https://www.bilibili.com/video/BV1hB4y1Q7vn) 提供的“桃花酪元子” Live2D 模型,以及 [是柚子呀owo](https://www.bilibili.com/video/BV1RW4y14715) 提供的精美背景原画。非常感谢以上作者的优秀作品。
感谢 [
[email protected]](mailto:
[email protected]) 提供的[OpenAI API代理](https://www.openai-proxy.com/),使得本项目可以在国内网络环境下直接调用 OpenAI 服务。
", Assign "at most 3 tags" to the expected json: {"id":"9483","tags":[]} "only from the tags list I provide: [{"id":77,"name":"3d"},{"id":89,"name":"agent"},{"id":17,"name":"ai"},{"id":54,"name":"algorithm"},{"id":24,"name":"api"},{"id":44,"name":"authentication"},{"id":3,"name":"aws"},{"id":27,"name":"backend"},{"id":60,"name":"benchmark"},{"id":72,"name":"best-practices"},{"id":39,"name":"bitcoin"},{"id":37,"name":"blockchain"},{"id":1,"name":"blog"},{"id":45,"name":"bundler"},{"id":58,"name":"cache"},{"id":21,"name":"chat"},{"id":49,"name":"cicd"},{"id":4,"name":"cli"},{"id":64,"name":"cloud-native"},{"id":48,"name":"cms"},{"id":61,"name":"compiler"},{"id":68,"name":"containerization"},{"id":92,"name":"crm"},{"id":34,"name":"data"},{"id":47,"name":"database"},{"id":8,"name":"declarative-gui "},{"id":9,"name":"deploy-tool"},{"id":53,"name":"desktop-app"},{"id":6,"name":"dev-exp-lib"},{"id":59,"name":"dev-tool"},{"id":13,"name":"ecommerce"},{"id":26,"name":"editor"},{"id":66,"name":"emulator"},{"id":62,"name":"filesystem"},{"id":80,"name":"finance"},{"id":15,"name":"firmware"},{"id":73,"name":"for-fun"},{"id":2,"name":"framework"},{"id":11,"name":"frontend"},{"id":22,"name":"game"},{"id":81,"name":"game-engine "},{"id":23,"name":"graphql"},{"id":84,"name":"gui"},{"id":91,"name":"http"},{"id":5,"name":"http-client"},{"id":51,"name":"iac"},{"id":30,"name":"ide"},{"id":78,"name":"iot"},{"id":40,"name":"json"},{"id":83,"name":"julian"},{"id":38,"name":"k8s"},{"id":31,"name":"language"},{"id":10,"name":"learning-resource"},{"id":33,"name":"lib"},{"id":41,"name":"linter"},{"id":28,"name":"lms"},{"id":16,"name":"logging"},{"id":76,"name":"low-code"},{"id":90,"name":"message-queue"},{"id":42,"name":"mobile-app"},{"id":18,"name":"monitoring"},{"id":36,"name":"networking"},{"id":7,"name":"node-version"},{"id":55,"name":"nosql"},{"id":57,"name":"observability"},{"id":46,"name":"orm"},{"id":52,"name":"os"},{"id":14,"name":"parser"},{"id":74,"name":"react"},{"id":82,"name":"real-time"},{"id":56,"name":"robot"},{"id":65,"name":"runtime"},{"id":32,"name":"sdk"},{"id":71,"name":"search"},{"id":63,"name":"secrets"},{"id":25,"name":"security"},{"id":85,"name":"server"},{"id":86,"name":"serverless"},{"id":70,"name":"storage"},{"id":75,"name":"system-design"},{"id":79,"name":"terminal"},{"id":29,"name":"testing"},{"id":12,"name":"ui"},{"id":50,"name":"ux"},{"id":88,"name":"video"},{"id":20,"name":"web-app"},{"id":35,"name":"web-server"},{"id":43,"name":"webassembly"},{"id":69,"name":"workflow"},{"id":87,"name":"yaml"}]" returns me the "expected json"