cli icon indicating copy to clipboard operation
cli copied to clipboard

[bug] speech synthesize crashes in Dispatcher.prototype.compose.call

Open zizhuauto opened this issue 1 month ago • 1 comments

Environment

  • CLI: bl 2.3.2
  • Skill: bailian-protocol / bailian-gen 2.3.2
  • Node: v24.20.0
  • OS: macOS 15.6.1 (24G90)
  • Region: cn-beijing

Reproduce

bl speech synthesize --text-file <local Chinese product-video script> \
  --model cosyvoice-v3-flash --voice longfei_v3 --format mp3 \
  --sample-rate 24000 --volume 85 --rate 1.0 --pitch 1.0 \
  --instruction <Chinese documentary narration instruction> \
  --out <local output>.mp3 --output json --verbose

Expected

The command synthesizes the local text file and writes the requested MP3.

Actual

The CLI exits with an internal JavaScript error before returning a structured result:

[Model: cosyvoice-v3-flash] [Voice: longfei_v3]
> POST https://<redacted>/api/v1/services/audio/tts/SpeechSynthesizer
> Auth: [REDACTED]
> x-dashscope-source-config: {"channel":"bailian-cli","tags":{"t1":"public","t2":"bl","t3":"2.3.2"}}

Error: undefined is not an object (evaluating 'Dispatcher.prototype.compose.call')

The same request without --instruction also reproduced the CLI failure. --output json did not return a structured JSON error.

Already tried

  • CLI and installed skill versions aligned at 2.3.2.
  • bl auth status reports a configured model API key and cn-beijing console profile.
  • Retried with --verbose --output json.
  • Used the same model and voice through the installed DashScope SDK as a control; direct SDK synthesis succeeded.

zizhuauto avatar Oct 19 '26 06:10 zizhuauto

The runtime compatibility issue causing the Dispatcher.prototype.compose.call error during speech synthesis has been fixed in v2.3.3. Please upgrade with bl update, confirm the version with bl --version, and retry your original speech synthesis command. If the issue persists, please share the updated CLI version, installation method, and redacted error output so we can investigate further. Thanks for reporting!

XXPermanentXX avatar Oct 19 '26 10:10 XXPermanentXX