Skip to content

Fix domestic speech downloads in ClassFox 2.1.1 - #16

Merged
ouyangyipeng merged 1 commit into
mainfrom
feat/sensevoice-domestic-source
Oct 16, 2026
Merged

ouyangyipeng merged 1 commit into
mainfrom
feat/sensevoice-domestic-source

Conversation

@ouyangyipeng

@ouyangyipeng ouyangyipeng commented Oct 16, 2026 •

Copy link
Copy Markdown
Owner

SenseVoice downloads still required Hugging Face in 2.1.0. This patch prefers the identical model, tokens and license files from a fixed gomodels/sherpa ModelScope commit, retaining upstream fallback, SHA-256 validation and existing installation fingerprints. Qwen already prefers its verified ModelScope copy. Both models now install inside the App; Netdisk distribution only needs installers.

The complete three-file speech download was verified with proxy environment variables disabled and all non-ModelScope hosts denied. Files matched catalog size/SHA-256, requests reached only modelscope.cn and cdn-lfs-cn-1.modelscope.cn, the actual speech loading probe returned ready, and a Chinese sample matched the original model output.

Validation: three source-routing regressions failed before the fix and passed after. The full backend suite passed 202 tests; lint/format/type checks, three script tests, frontend typecheck, 22 frontend tests, production build, 10 real Edge browser scenarios and strict docs build passed. Fresh whole-diff review found no actionable issues. CI run 38860822699 passed all three native builds and frozen-backend checks on Windows x64, Intel Mac and Apple Silicon; web-and-phone and docs CI also passed. The final Apple Silicon DMG was additionally verified locally (version, DMG integrity, signature, bundled resource hashes and packaged backend self-check). This proves the tested direct download route; it does not claim every mainland ISP was tested.

Version: 2.1.1. Release/docs links updated consistently. No model bytes, inference engines or dependencies changed. Netdisk share URL is still pending actual installer upload; no placeholder download link is advertised.

Plan: plan/02-v1-domestic-downloads.md (2.1.1 revision)
Source: https://modelscope.cn/models/gomodels/sherpa
Merge using Rebase and merge.

Root cause: Speech assets still required Hugging Face although an
identical copy exists on ModelScope.
Solution: Prefer a pinned ModelScope copy for weights, tokens and
license, retain checked upstream fallback and install fingerprints,
and document in-app downloads with installer-only Netdisk sharing.
Risks: Community mirror availability depends on ModelScope; fixed
hashes and the original source remain enforced. Native builds must
include the updated source map in the 2.1.1 backend.
Dependency: ModelScope gomodels/sherpa pinned snapshot
Links: https://modelscope.cn/models/gomodels/sherpa
Copilot AI balanced review requested due to automatic review settings October 16, 2026 06:22

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-16T06:23:46.351863Z c3a0e95 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@ouyangyipeng
ouyangyipeng merged commit aa7921b into main Oct 16, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants