Giter Club home page Giter Club logo

chatgpt-vits-waifu's Introduction

chatgpt-vits-waifu

项目介绍

chatgpt-vits-waifu是一个使用chatgpt的API和vits语音合成,实现与AI老婆的语音聊天的项目。
该项目在cjyaddone大佬的ChatWaifu项目的基础上进行了改进,主要增加了记忆功能和信息聚合功能,大大提升了对话的容量。 实现了与自定义虚拟角色的连续长对话聊天功能。
此外,项目还实现了日语对话中文本自动翻译的功能。

环境安装

请参考:https://github.com/cjyaddone/ChatWaifu

运行

  1. 在命令行中切换到该项目所在的根目录
  2. 输入以下命令即可运行程序:python ChatWaifu.py

注意事项

  1. 为使用chatgpt api,您需要先进行科学上网(VPN)。
  2. 在第一次运行ChatWaifu.py之前,请确保您在ChatWaifu.py中填写了您的OpenAI Key、百度翻译平台API、模型地址等信息。
  3. 请将vits语音模型放置在./model目录下,并在ChatWaifu.py中填写您的模型地址和对应配置文件地址。
  4. ./chat_recoed文件夹中保存了人物初始设定以及对话记录,请您根据需要更改人物设定(请备份您的初始人物设定,程序运行后会自动替换为对话记录)

功能介绍

1.记忆功能

chatgpt-vits-waifu具有记忆功能,它可以在对话过程中实时记录对话,并在下次运行时继续之前的对话。

2.信息聚合功能

当聊天内容数量超出openai限制时,chatgpt-vits-waifu会自动总结前文。
它会根据前文对话信息,生成一段总结性的文本进行替换,从而减少tokens数量,增大对话容量。

3.日语自动翻译功能

chatgpt-vits-waifu可以自动将日语对话翻译成中文。方便您使用vits日语模型。

鸣谢

  • ChatWaifu:该项目以ChatWaifu为基础,感谢cjyaddone大佬的贡献。

如果您有任何疑问或建议,请随时联系我。邮箱:[email protected]

chatgpt-vits-waifu's People

Contributors

li-kaige avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.