fix: support sync-flash and qwen3-filetrans ASR models in speech recognize - #149
Merged
Conversation
…gnize - Add asr-routes.ts with resolveAsrApi() to route models to the correct DashScope endpoint instead of always hitting asr/transcription - Async filetrans: fun-asr / paraformer / *-filetrans → file_urls (plural) - Async filetrans (qwen3): qwen3-asr-flash-filetrans* → file_url (singular) - Sync flash (input-audio): fun-asr-flash* / qwen-audio-*-asr-flash → multimodal-generation - Sync flash (qwen3): qwen3-asr-flash* → multimodal-generation + asr_options - Realtime/streaming models now give a clear USAGE error instead of a confusing server-side "url error" - Propagate same routing logic to pipeline speechRecognize step - Add table-driven unit tests and dry-run e2e assertions Fixes #146
Add SSE disable header, data-URI format inference, broader response text parsing, HTTP contract e2e, pipeline routing tests, and ASR model selection guidance in bailian-gen.
…d_issue_146 # Conflicts: # skills/bailian-gen/reference/index.md # skills/bailian-gen/reference/speech.md
Normalize async ASR transcription items so waiting mode downloads text and --out works without changing shared media task types.
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
asr-routes.tswithresolveAsrApi()to dispatch ASR models to the correct DashScope endpoint; previously all models were routed to the async filetrans path, causingurl error, please check url!for sync-flash models (fixes bl speech recognize 提示 url error, please check url! #146)fun-asr-flash*,qwen-audio-*-asr-flash,qwen3-asr-flash*) are now routed tomultimodal-generationwith the correct request body per flash family (qwen3vsinput-audio)qwen3-asr-flash-filetrans*now correctly usesfile_url(singular) instead offile_urls; realtime/streaming models surface a clear USAGE error; routing logic is shared between the CLI command and the pipeline step