#6392 InvalidParameter:url error, please check url! For details, see: https://help.aliyun.com/zh/model-studio/error-code#error

116.162.**6 Posted at: 15 hours ago

InvalidParameter:url error, please check url! For details, see: https://help.aliyun.com/zh/model-studio/error-code#error-url
Traceback (most recent call last):
File "videotrans\recognition\_base.py", line 92, in run
File "tenacity\__init__.py", line 338, in wrapped_f
File "tenacity\__init__.py", line 477, in call
File "tenacity\__init__.py", line 378, in iter
File "tenacity\__init__.py", line 421, in exc_check
tenacity.RetryError: RetryError[]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\only_one.py", line 62, in run
File "videotrans\task\_stage_recogn.py", line 62, in recogn
File "videotrans\recognition\__init__.py", line 206, in run
File "videotrans\recognition\_base.py", line 99, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\recognition\_qwen3asr.py", line 69, in _exec
videotrans.configure.excepts.SpeechToTextError: InvalidParameter:url error, please check url! For details, see: https://help.aliyun.com/zh/model-studio/error-code#error-url

cfg=[TaskCfgVTT]当前工作模式: 翻译视频或音频 单视频模式
原始输入文件名: D:/ike/咖啡心语/测试片段.mp4,
输出结果保存到文件夹: D:/ike/咖啡心语/8月5日/测试片段-mp4,
临时文件夹: E:/ike/win-pyvideotrans-v4.08-0802/tmp/15960/9e9cb7525b
已选 清理已存在
未启用CUDA加速
未选 降噪
已选 删除所有标点符号
语音识别:阿里百炼API/Qwen3-ASR, model_name: , 发音语言: 英语, 断句方式:LLM重新断句
翻译渠道:DeepSeek,原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
未选 配音角色,不进行配音
字幕: 嵌入硬字幕(双) 目标语言在上双字幕
已选 仅输出mp4
代理地址:


=
system:Windows-10-10.0.22621-SP0
version:v4.08
frozen:True
language:zh
root_dir:E:/ike/win-pyvideotrans-v4.08-0802

5 Replies

阿里百炼报错 InvalidParameter:url error, please check url! 的根源是:所选模型名称与当前任务类型不匹配。阿里百炼要求语音识别任务必须选择 qwen3-asr 开头的模型,若选了其他模型(如 qwen-mt 翻译模型、qwen3.6-plus 对话模型等),或未正确选择模型导致模型名为空,就会触发该报错。

你的配置中 model_name 为空,说明在阿里百炼设置面板未正确选择语音识别模型。

解决方法

  1. 打开 菜单 → 翻译设置 → 阿里百炼 设置面板。
  2. 在配音/识别模型相关下拉框中,为语音识别任务选择 qwen3-asr 开头的模型,例如:

    • qwen3-asr-flash
    • qwen3-asr-flash-filetrans
  3. 确认该模型已保存生效后,重新执行任务。

注意:

  • qwen-mt-turboqwen-mt-plusqwen3.6-plus 等是翻译/对话模型,不能用于语音识别。
  • 若你是在字幕翻译任务中选了 qwen3-asr 开头的模型,同样会报此错;翻译任务请改用纯文本翻译模型。
  • 手动填写的模型名必须是阿里百炼纯文本模型,多模态模型不允许用于字幕翻译。

请查阅相关文档:

我测试了好几遍 qwen3-asr-flash没有问题 qwen3-asr-flash-filetrans就会像我发给你的这样报错

qwen3-asr-flash-filetrans 是阿里百炼的异步文件转写模型,其 API 调用方式和 URL 路径与普通同步识别模型不同,软件内置的阿里百炼语音识别接口并不兼容该模型,所以会报 InvalidParameter:url errorqwen3-asr-flash 是同步识别模型,可以正常使用。

建议继续使用 qwen3-asr-flash,不要选用 qwen3-asr-flash-filetrans,除非你在阿里百炼控制台手动调用异步文件转写的专用接口。

如果我要输出中长视频也可以用qwen3-asr-flash吗

qwen3-asr-flash 是同步识别模型,同一接口对请求音频时长一般存在上限,知识库未给出该模型的精确时长上限值。

若直接用 qwen3-asr-flash 处理中长视频时出现超时、报错或结果截断,可改为以下方案:

  1. 改用本地 faster-whisper(内置) large-v3 或 large-v3-turbo,专门用于长音频/长视频转录和翻译。
  2. 若必须使用阿里百炼,qwen3-asr-flash-filetrans 异步接口虽然适合长文件,但软件内置阿里百炼渠道当前不兼容该模型,会报 InvalidParameter:url error,不建议选用。
  3. 先对中长视频做分段测试;若仍失败,请提供软
Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Dondate via ko-fi.com

Dondate via PayPal

Related resource