anomalyco / anomalyco/opencode

Bug: Qwen ASR API 400 - 'voice' property is required when using voice-to-text

Open
#39,724 1 comment 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.