From 0e483274e5a96d5a94a65395751677d30a749615 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 28 Feb 2025 15:31:58 +0800 Subject: [PATCH] bugfix --- README.md | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..20194da --- /dev/null +++ b/README.md @@ -0,0 +1,70 @@ +# 包装F5-TTS为一个服务 + +## 依赖 +分为系统级依赖和python依赖 + +### 操作系统级别 +* 安装FFMpeg +``` +sudo apt install ffmpeg +``` +* 安装GPU卡驱动 +英伟达驱动按照显卡类型到[英伟达网站](https://www.nvidia.com/en-us/drivers/details/241089/)下载后,执行 +``` +sudo sh 下载的驱动文件 +``` + +### python依赖 +* 安装F5-tts相关依赖 +``` +pip install torch==2.3.0+cu118 torchaudio==2.3.0+cu118 --extra-index-url https://download.pytorch.org/whl/cu118 +``` + +* 安装F5-TTS +``` +pip install git+https://github.com/SWivid/F5-TTS.git +``` + +* 安装其他依赖 +``` +pip install git+https://git.kaiyuancloud.cn/yumoqing/apppublic.git +pip install git+https://git.kaiyuancloud.cn/yumoqing/sqlor.git +pip install git+https://git.kaiyuancloud.cn/yumoqing/ahserver.git +pip install cn2an pycld2 +``` +## 安装与部署 +执行下列步骤 +* 安装操作系统依赖 +* 添加操作系统用户f5tts +* 登录f5tts用户 +* 安装python依赖 +* 克隆项目 +* 运行环境设置 +* 启动 +* 停止 +``` + +* 克隆项目 +``` +cd ~ +git clone git@git.kaiyuancloud.cn:yumoqing/f5tts.git +mv f5tts/* ~ +rm -rf f5tts +``` + +* 运行环境设置 +``` +cd script +bash install.sh +``` + +* 启动 +``` +sudo systemctl start f5tts +``` +* 停止 +``` +killname f5tts.py +``` + +