Giter Site home page Giter Site logo

chatwaifu's Introduction

cover

中文 English 日本語

GitHub PYTHON

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

效果演示BiliBIli:《青春猪头少年不会梦见赛博女友》

当前支持功能:

目录

本项目均默认使用Chrome浏览器

1.安装环境:

安装anaconda环境或Python>=3.7

本例使用的环境名称是:chatWaifu

1.1 使用cd命令进入项目文件夹

cd 你的项目路径

1.2 创建Python虚拟环境:

Conda:conda create --name chatWaifu python=3.10 Python:python -m venv chatWaifu

1.3 进入创建好的虚拟环境:

Conda:conda activate chatWaifu

Python:.\chatWaifu\Scripts\activate.bat

1.4 pip安装项目所需要的库文件:

pip install -r requirements.txt

2.导入模型到根目录model文件夹:

Google Drive:https://drive.google.com/file/d/1tMCafhnUoL7FbevVQ44VQi-WznDjt23_/view?usp=sharing

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

2.1移动到项目根目录下双击导入model

3.运行(快和老婆们对话吧:

打字输入版:python ChatWaifu.py

语音对话版(日语和英语输入默认日语输出):python ChatWaifuVoice.py

以下也可以使用,每个文件只对应一种语音输出输入模式

打字日语版:python ChatWaifuJP.py

打字中文版:python ChatWaifuCN.py

日语语音对话版(使用中文):python ChatWaifuJPVoice.py

中文语音对话版(使用中文):python ChatWaifuCNVoice.py

日文语音对话版(使用英文):python ChatWaifuJPVoiceEN.py

日语语音对话版(使用日文):python ChatWaifuJPVoiceJP.py

3.1 获取ChatGPT Token

在浏览器登入https://chat.openai.com

按F12进入开发控制台

找到 应用程序 -> cookie -> __Secure-next-auth.session-token

将值复制进入终端并回车

3.2 开始和CyberWaifu聊天!!!

语音对话版: 当控制台提示"You:"时开始说话,说完并出现句子录音结束并发送到ChatGPT对话。

附赠:ChatGPT 中文调教指南

4.鸣谢:

chatwaifu's People

Contributors

mubai-he avatar cjyaddone avatar kevl0317 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.