GithubHelp home page GithubHelp logo

linyu-server's Introduction

林语

该代码仓库为 林语 服务端相关代码

客户端地址:https://github.com/DWHengr/linyu-client

简绍

林语是基于tauri开发的桌面聊天软件,前端框架使用react,后端框架使用springboot进行开发 。其中使用http和websocket实现消息发送和推送,使用webrtc实现音视频聊天。

目前功能

好友相关、朋友圈、音视频聊天、语音消息、文本消息、文件消息、图片消息、截图、等。

项目相关

java环境

开发使用的java版本为1.8,springboot版本为2.6.7

mysql安装

mysql使用的版本为8.0.37,执行项目下linyu.sql内容来初始化数据库。

minio安装

minio使用的版本为RELEASE.2024-05-10T01-41-38Z

redis安装

Redis使用的版本为5.0.14.1

faster-whisper-server安装

1.下载模型(whisper国内模型无法自动下载,需要手动下载)

https://huggingface.co/Systran/faster-whisper-small

2.上传到服务器(将模型上传到服务器,目录可以任意)

3.使用docker部署(挂载刚才上传的模型目录)

docker run -d --publish 8000:8000 --volume /model:/model fedirz/faster-whisper-server:latest-cpu

4.api调用示例

curl http://127.0.0.1:8000/v1/audio/transcriptions -F "[email protected]" -F"model=/model/faster-whisper-small/"

配置修改

修改application.yml内,mysql、minio、redis、faster-whisper-server相关地址。

项目截图

登录

1

聊天

2

好友

3

朋友圈

4

通知

5

系统设置

6

Docker部署

服务部署

基于docker-compose进行部署。将项目下的/deploy/compose目录,拷贝到目标服务器上,注意修改目录下.env 内的配置。修改完成后运行docker-compose up -d命令。

数据库初始化

连接数据库上面部署的数据库,执行初始化sql语句linyu.sql(位于项目目录下)。

whisper模型上传

语音转文字基于faster-whisper 实现,需要上传whisper模型,将faster-whisper-small(下载地址 https://huggingface.co/Systran/faster-whisper-small )模型上传到目标服务器/linyu/whisper/model/目录下。

结语

admire

linyu-server's People

Contributors

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