- 服务器 lhins-3zqfts83 通过腾讯云TAT安装 strongSwan 5.9.13 + xl2tpd - 三种VPN协议已全部就绪: IKEv2(系统原生)/L2TP-IPSec(系统原生)/WireGuard - UDP 500/4500/1701 端口本地nc可达验证通过 - macOS 接入操作手册已生成 Co-Authored-By: Claude <noreply@anthropic.com>
21 lines
550 B
Bash
Executable File
21 lines
550 B
Bash
Executable File
#!/usr/bin/env bash
|
||
# 下载 SenseVoice int8 模型到 Handy 模型目录
|
||
set -euo pipefail
|
||
|
||
MODELS="${HOME}/Library/Application Support/com.pais.handy/models"
|
||
TARGET="${MODELS}/sense-voice-int8"
|
||
URL="https://blob.handy.computer/sense-voice-int8.tar.gz"
|
||
TMP="/tmp/sense-voice-int8.tar.gz"
|
||
|
||
mkdir -p "$MODELS"
|
||
if [[ -f "${TARGET}/model.int8.onnx" ]]; then
|
||
echo "✓ 已有 sense-voice-int8"
|
||
exit 0
|
||
fi
|
||
|
||
echo "下载 SenseVoice(约 228MB)…"
|
||
curl -fL -o "$TMP" "$URL"
|
||
tar -xzf "$TMP" -C "$MODELS"
|
||
rm -f "$TMP"
|
||
echo "✓ 已解压到 ${TARGET}"
|