feat(stage-ui): add Kokoro TTS (Local) speech provider (#1005)

This commit is contained in:
Sebastián
2026-02-01 23:34:52 +08:00
committed by GitHub
parent 0e9b0668de
commit 47e444bd85
12 changed files with 980 additions and 5 deletions
+10 -1
View File
@@ -45,7 +45,16 @@ runs:
run: |
if [[ "${{ inputs.version }}" == "latest" ]]; then
# Fetch the latest release tag using a more robust method
API_RESPONSE=$(curl -s https://api.github.com/repos/realm/SwiftLint/releases/latest)
CURL_ARGS=(-s)
if [[ -n "${{ github.token }}" ]]; then
CURL_ARGS+=(-H "Authorization: Bearer ${{ github.token }}")
fi
CURL_ARGS+=(-H "Accept: application/vnd.github+json")
CURL_ARGS+=(-H "X-GitHub-Api-Version: 2022-11-28")
CURL_ARGS+=("https://api.github.com/repos/realm/SwiftLint/releases/latest")
API_RESPONSE=$(curl "${CURL_ARGS[@]}")
# Try using jq if available (most GitHub Actions runners have it)
if command -v jq >/dev/null 2>&1; then
VERSION=$(echo "$API_RESPONSE" | jq -r '.tag_name // empty')