#3554 d:\pyvideotrans>uv run cli.py --task vtv --name "D:\cs.mp4" --source_language_code "en" --target_language_code "zh-cn

154.3* Posted at: 4 hours ago 👁15

d:\pyvideotrans>uv run cli.py --task vtv --name "D:\cs.mp4" --source_language_code "en" --target_language_code "zh-cn" --tts_type 0 --translate_type 1 --subtitle_type 1 --voice_autorate True --video_autorate True --recogn2pass True
usage: cli.py [-h] --task {stt,tts,sts,vtv} --name NAME [--recogn_type RECOGN_TYPE]

          [--detect_language DETECT_LANGUAGE] [--model_name MODEL_NAME] [--cuda] [--remove_noise]
          [--enable_diariz] [--nums_diariz NUMS_DIARIZ] [--rephrase REPHRASE] [--fix_punc] [--tts_type TTS_TYPE]
          [--voice_role VOICE_ROLE] [--voice_rate VOICE_RATE] [--volume VOLUME] [--pitch PITCH] [--voice_autorate]
          [--align_sub_audio] [--translate_type TRANSLATE_TYPE] [--source_language_code SOURCE_LANGUAGE_CODE]
          [--target_language_code TARGET_LANGUAGE_CODE] [--video_autorate] [--is_separate] [--recogn2pass]
          [--subtitle_type SUBTITLE_TYPE] [--clear_cache] [--no-clear-cache]

cli.py: error: unrecognized arguments: True True True

1 Replies

这是由于命令行参数格式错误导致的。--voice_autorate--video_autorate--recogn2pass 是布尔标志参数,不需要在其后附加 True 值。

解决方案:

  1. 移除 --voice_autorate--video_autorate--recogn2pass 参数后面的 True 值。
  2. 正确的命令格式应为:

    uv run cli.py --task vtv --name "D:\cs.mp4" --source_language_code "en" --target_language_code "zh-cn" --tts_type 0 --translate_type 1 --subtitle_type 1 --voice_autorate --video_autorate --recogn2pass
  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.

Related resource