anomalyco / anomalyco/opencode
Bug: Qwen ASR API 400 - 'voice' property is required when using voice-to-text
Open
@rekram1-node is already working on this.
Since Jul 30, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
Voice-to-text transcription fails when calling the Qwen ASR API, returning a 400 error with the message "The voice property is required."
Error
qwen asr API 400: {"error":{"message":"The voice property is required.","type":"invalid_request_error","param":null,"code":"invalid_parameter_error"},"id":"chatcmpl-9fe00cf4-3057-9504-a1f9-b9d7ec22ee0b","request_id":"9fe00cf4-3057-9504-a1f9-b9d7ec22ee0b"}
Expected Behavior
Voice-to-text should successfully transcribe audio to text.
Actual Behavior
Qwen ASR API returns HTTP 400 because the voice parameter is missing from the request body.
Environment
- opencode version: 1.18.7
- OS: Windows
- API provider: Qwen
Additional Context
The voice parameter is required by Qwen's ASR API to specify the speaker voice type. The opencode client is not including this parameter when making the ASR request.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.