Skip to content

开始

执行方式

我们暂时不提供二进制包,请使用源码运行。

1. 安装 Python

Python 下载

版本支持:

版本支持情况更多信息
< 3.7.0完全不支持
< 3.10.0?可能支持,但导致的 BUG 不予修复
>= 3.10.0完全支持

请下载适合你的系统的 Python 安装包,并安装。

PATH

如果可能,请务必将 Python 安装目录添加到环境变量中,这将为你节省许多时间。

2. 下载源代码

一般情况下,不要直接 Clone 仓库,而是下载最新的稳定版: 最新稳定版

下载后,解压到当前目录中。

测试版

你可以通过 Clone 仓库的 main 分支,获取实时更新的测试版,但这样的版本有可能存在一些 BUG。

sh
git clone https://github.com/sbhelpsb/SafeSpeak-Server.git
cd SafeSpeak-Server

3. 安装依赖包

Pip

假设你的 Python 命令为 python3,则执行以下命令:

🚀 加速

如果你的网络环境位于中国大陆,请使用清华源以提升 pip 下载速度。

sh
python3 -m pip install -r requirements.txt
sh
python3 -m pip install -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple -r requirements.txt

4. 运行

🎉恭喜你,你已经成功安装 SafeSpeak-Server 了!🎉

接下来,你只需要一条指令即可启动 SafeSpeak-Server , 假设你的 Python 命令为 python3,则执行以下命令:

sh
> python3 main.py
   _____        __      _____                  _    
  / ____|      / _|    / ____|                | |
 | (___   __ _| |_ ___| (___  _ __   ___  __ _| | __   
  \___ \ / _` |  _/ _ \\___ \| '_ \ / _ \/ _` | |/ /   
  ____) | (_| | ||  __/____) | |_) |  __/ (_| |   <    
 |_____/ \__,_|_| \___|_____/| .__/ \___|\__,_|_|\_\   
                             | |
                             |_|
安语 | SafeSpeak | 服务器
INFO:     Server version: 1.0.0
INFO:     Started server process [19000]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://0.0.0.0:5754 (Press CTRL+C to quit)

若出现以上输出,恭喜你,你已经成功启动了 SafeSpeak-Server 了! 现在,你可以通过浏览器访问 http://localhost:5754 来使用 SafeSpeak-Server。

Released under the Apache 2.0 License.