feat(web): add loopback Qwen3-ASR voice input - #102
Merged
Conversation
adityak74
force-pushed
the
web/voice-input-qwen3-asr
branch
from
August 24, 2026 18:09
0a23a95 to
15e2492
Compare
adityak74
force-pushed
the
web/voice-input-qwen3-asr
branch
from
August 24, 2026 18:13
15e2492 to
3311aab
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
zorp-voicecrate with the same four loopback protections aszorp-recallzorp-web/voicefeatureRecorded audio can reach only the checked loopback host and port. The client validates the written URL and every resolved address, uses a resolver pinned to that host and port, refuses redirects, and disables environment proxies. There is no cloud provider or fallback. Transcripts are untrusted text. They enter the composer through
value, never send automatically, and change no tool or approval policy.Runtime contract confirmed before implementation
I checked Transformers Serve 5.13.1 first. Its versioned documentation confirms
POST /load_modelwith streamed SSE progress,GET /v1/models, andPOST /v1/audio/transcriptions. I rejected that integration after checking the handler contract. Its generic transcription path prepares audio alone. Qwen3-ASR requires its registered processor, prompt preparation, and output parser. A real loader paired with an incompatible transcription handler is not a usable Qwen3-ASR runtime.The implemented runtime is
qwen-asr0.0.6. I confirmed the contract in the official package and runtime sources:qwen-asr0.0.6 package manifest pins Transformers 4.57.6 and vLLM 0.14.0.qwen-asr-servesource registers Qwen3-ASR classes and delegates tovllm serve.POST /v1/chat/completionswith anaudio_urlcontent part.GET /healthandGET /v1/models.The supported
qwen-asr-serveruntime has no HTTP model pull endpoint. It downloads weights when the operator starts it. The browser therefore shows an explicit install and start command for a direct root HTTP endpoint, then streams observed readiness polling. It says that it is waiting and shows no percentage or download stage. HTTPS and path-prefixed loopback URLs require an operator-managed proxy, so zorp does not fabricate a direct start command for them.Defaults are
http://127.0.0.1:8000andQwen/Qwen3-ASR-0.6B.ZORP_VOICE_URLandZORP_VOICE_MODELoverride them. A non-loopback URL is refused.Verification
Passed:
cargo build --workspacecargo build --workspace --lockedcargo test --workspace --no-runcargo test -p zorp-web --features voice --no-runcargo test -p zorp-voice --no-runcargo test -p zorp-web --features voice --lib, 100 testscargo test -p zorp-voice --lib, 6 testscargo fmt --allcargo clippy --workspace --all-targets, with two unchanged warnings inzorp-trackcargo clippy -p zorp-web --features voice --all-targetsnpm run checknpm test, 261 testsnpm run buildgit diff --checkThe three requested full test commands were also run. The managed execution sandbox refuses every local TCP bind with
Operation not permitted, so socket-backed integration tests cannot start their loopback canaries here:cargo test --workspacereached the existing root integration suite, then four tests failed while binding127.0.0.1:0attests/common/mod.rs:11.cargo test -p zorp-web --features voicepassed all 100 library tests, then the existing artifact integration test failed while binding atzorp-web/tests/common/mod.rs:144.cargo test -p zorp-voicepassed all 6 library tests, then the loopback canary failed while binding atzorp-voice/tests/common/mod.rs:18.Compilation of every integration test passed through the
--no-runcommands. The connection-counting tests remain in the PR for CI and an unrestricted local environment.