Giter Club home page Giter Club logo

Comments (6)

Arkueid avatar Arkueid commented on June 19, 2024

这个是通过读取音频振幅大小实现口型同步,所以只要能够读取到音频文件就可以口型同步。音频文件的路径目前只能在XXX.model3.json中读取,点击模型设置页面的更新模型或者保存可以重新读取音频路径。实现实时口型同步的话,要把聊天模块改掉,大概步骤是应用向某个服务端发起请求,服务端代替处理例如chatgpt的聊天消息,并通过tts生成音频文件,然后把文本和音频信息返回给应用。目前的思路是服务端需要自己架设,应用只提供接口,服务端返回的消息按特定格式包含文本和音频。我之后再弄一个更新吧。

from live2dmascot.

Paraworks avatar Paraworks commented on June 19, 2024

这个服务器端其实我已经写好了,思路和你是一样的 https://github.com/Paraworks/vits_with_chatgpt-gpt3 应该可以直接结合你的工程,唯一需要做出的改动应该就是把ogg格式改回wav并且换上44100采样率

from live2dmascot.

Arkueid avatar Arkueid commented on June 19, 2024

ogg转wav可以使用ffmpeg: ffmpeg -i "输入音频" -ac 1 "输出音频"
我这边客户端也要改一下,接收音频文件和文本,然后播放,但是什么时候改完不好说><。

from live2dmascot.

Paraworks avatar Paraworks commented on June 19, 2024

把api改成对音频文件的直接修改跑了一下实时聊天,确实没我想象地那样会出错。只不过没有gui还是有点丑陋,客户端修改好后桌宠就真成cyberwaifu了

from live2dmascot.

Arkueid avatar Arkueid commented on June 19, 2024

改完了,但只是稍微测试了一下,看看有没有问题吧,现在只能改config.json,还没写GUI,到时候大改一下设置页面,先这样吧。CyberWaifu是信仰啊哈哈😋,感谢科技。

from live2dmascot.

Paraworks avatar Paraworks commented on June 19, 2024

可以,我已经改好了,就是服务器响应时间非常久(),不过在本地用gpu就没事了

from live2dmascot.

Related Issues (18)

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.