Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
cjyaddone committed Dec 19, 2022
2 parents 5c5403c + 981f02b commit b60a89b
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 13 deletions.
23 changes: 17 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
# <p align="center">CyberWaifu</p>
![cover](readme/cyberchat.png)

[中文](README.md "中文") [English](eng-README.md "English") [日本語](jp-README.md "日本語")

> ### 这是一个基于TTS+VITS的ChatGPT语音对话程序!
<p align="center">
<img alt="GitHub" src="https://img.shields.io/github/license/cjyaddone/ChatWaifu?color=red">
<img src="https://img.shields.io/badge/Python-3.7|8|9|10-green" alt="PYTHON" >
<a href="https://app.fossa.com/projects/git%2Bgithub.com%2Fcjyaddone%2FChatWaifu?ref=badge_small" alt="FOSSA Status"><img src="https://app.fossa.com/api/projects/git%2Bgithub.com%2Fcjyaddone%2FChatWaifu.svg?type=small"/></a>
</p>

#

### 这是一个使用TTS+VITS的ChatGPT语音对话程序!

效果演示BiliBIli:[《青春猪头少年不会梦见赛博女友》](https://www.bilibili.com/video/BV1rv4y1Q7eT "BiliBili")

Expand All @@ -10,10 +19,11 @@
* [x] 回答转语音
* [x] 多角色语音
* [x] 语音识别对话 (研发了一款真正人性化的智能语音Q宝
* [x] [对接Marai机器人](https://github.com/MuBai-He/ChatWaifu-marai)

**预计支持功能:**
* [ ] 对接Live2D的Web版本
* [ ] 对接Marai机器人


# 目录
* [1.安装环境:](#1.)
Expand All @@ -25,7 +35,7 @@
* 2.1 [双击导入model](#cd1)
* [3.运行(快和我的老婆们对话吧:](#22)
* 3.1 [获取ChatGPT Token](#333)
* 3.2 [2.开始和CyberWaifu聊天](#444)
* 3.2 [开始和CyberWaifu聊天](#444)
* [4.鸣谢](#915)
## <span id="1.">1.安装环境:</span>
> **安装anaconda环境或Python>=3.7**
Expand All @@ -37,7 +47,7 @@
![](readme/5.png)
### <span id="99">1.2 创建Python虚拟环境:</span>

Conda:`conda create --name CyberWaifu python=3.10`
Conda:`conda create --name chatWaifu python=3.10`
![](readme/1.png)
![](readme/2.png)
Python:`python -m venv chatWaifu`
Expand All @@ -51,7 +61,7 @@ Python:`.\chatWaifu\Scripts\activate.bat`
![](readme/7.png)

### <span id="pip">1.4 pip安装项目所需要的库文件:</span>
`pip install -r requirement.txt`
`pip install -r requirements.txt`
![](readme/4.png)

## <span id=".model">2.导入模型到根目录model文件夹:</span>
Expand Down Expand Up @@ -79,6 +89,7 @@ Google Drive:https://drive.google.com/file/d/1tMCafhnUoL7FbevVQ44VQi-WznDjt23_/v
#### 在浏览器登入https://chat.openai.com
#### 按F12进入开发控制台
#### 找到 应用程序 -> cookie -> __Secure-next-auth.session-token
![](readme/token.png)
#### 将值复制进入终端并回车

### <span id="444">3.2 开始和CyberWaifu聊天!!!</span>
Expand Down
24 changes: 17 additions & 7 deletions eng-README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
# <p align="center">CyberWaifu</p>
![cover](readme/cyberchat.png)

[中文](README.md "中文") [English](eng-README.md "English") [日本語](jp-README.md "日本語")

> ### This is a chatting Waifu program based on VITS & ChatGPT!
<p align="center">
<img alt="GitHub" src="https://img.shields.io/github/license/cjyaddone/ChatWaifu?color=red">
<img src="https://img.shields.io/badge/Python-3.7|8|9|10-green" alt="PYTHON" >
<a href="https://app.fossa.com/projects/git%2Bgithub.com%2Fcjyaddone%2FChatWaifu?ref=badge_small" alt="FOSSA Status"><img src="https://app.fossa.com/api/projects/git%2Bgithub.com%2Fcjyaddone%2FChatWaifu.svg?type=small"/></a>
</p>

#

> ### This is a chatting Waifu program use VITS & ChatGPT!
Effect demonstration BiliBIli:[《青春猪头少年不会梦见赛博女友》](https://www.bilibili.com/video/BV1rv4y1Q7eT "BiliBili")

Expand All @@ -10,10 +19,10 @@ Effect demonstration BiliBIli:[《青春猪头少年不会梦见赛博女友》]
* [x] Convert AI's Response to wav file
* [x] Multi-Character voice generator
* [x] Voice Recognition
* [x] [Connect to Marai Robort](https://github.com/MuBai-He/ChatWaifu-marai)

**Under Construction:**
* [ ] Connect to Live2D
* [ ] Connect to Marai Robort

# Catalogue
* [1.Install Python venv:](#1.)
Expand All @@ -25,7 +34,7 @@ Effect demonstration BiliBIli:[《青春猪头少年不会梦见赛博女友》]
* 2.1 [Double click model.exe to import Models](#cd1)
* [3.Run(Talk to your Waifu:](#22)
* 3.1 [Get ChatGPT Token](#333)
* 3.2 [2.Start chatting with CyberWaifu](#444)
* 3.2 [Start chatting with CyberWaifu](#444)
* [4.Contributions](#915)
## <span id="1.">1.Install Python Venv:</span>
> **Install Anaconda or Python>=3.7**
Expand All @@ -37,7 +46,7 @@ Effect demonstration BiliBIli:[《青春猪头少年不会梦见赛博女友》]
![](readme/5.png)
### <span id="99">1.2 Create Python Venv:</span>

Conda:`conda create --name CyberWaifu python=3.10`
Conda:`conda create --name chatWaifu python=3.10`
![](readme/1.png)
![](readme/2.png)

Expand All @@ -53,13 +62,13 @@ Python:`.\chatWaifu\Scripts\activate.bat`
![](readme/7.png)

### <span id="pip">1.4 Install required library with Pip:</span>
`pip install -r requirement.txt`
`pip install -r requirements.txt`
![](readme/4.png)

## <span id=".model">2.import pre-trained models to root directory:</span>
Google Drive:https://drive.google.com/file/d/1tMCafhnUoL7FbevVQ44VQi-WznDjt23_/view?usp=sharing

阿里云盘: https://www.aliyundrive.com/s/9JEj1mp1ZRv 提取码: m2y3
Ali Drive: https://www.aliyundrive.com/s/9JEj1mp1ZRv 提取码: m2y3

### <span id="cd1">2.1Double click model.exe to import Models</span>

Expand All @@ -81,6 +90,7 @@ Japanese voice conversation Ver(use Japanese):`python ChatWaifuJPVoiceJP.py`
#### Log in to ChatGPT whith link:https://chat.openai.com
#### Press F12 to enter command center
#### Find Application -> cookie -> __Secure-next-auth.session-token
![](readme/token.png)
#### Copy the value into cmd and press ENTER

### <span id="444">3.2 Start chatting with CyberWaifu</span>
Expand Down
Binary file added readme/cyberchat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added readme/token.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b60a89b

Please sign in to comment.