#3230 TaskCfg(cache_folder='E:/shipfanyi/win-pyvideotrans-v3.92/tmp/12588/67ae3c6e12', target_dir='E:/shipfanyi/win-pyvideotra

223.98* Posted at: 14 hours ago 👁12

语音识别阶段出错 [字节音视频字幕生成] 403 Client Error: Forbidden for url: https://openspeech.bytedance.com/api/v1/vc/submit?appid=5517898035&language=zh-CN&use_itn=True&caption_type=speech&max_lines=1
Traceback (most recent call last):
File "videotrans\task\job.py", line 113, in run
File "videotrans\task\_speech2text.py", line 146, in recogn
File "videotrans\recognition\__init__.py", line 205, in run
File "videotrans\recognition\_base.py", line 80, in run
File "videotrans\recognition\_doubao.py", line 65, in _exec
File "requests\models.py", line 1026, in raise_for_status
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://openspeech.bytedance.com/api/v1/vc/submit?appid=5517898035&language=zh-CN&use_itn=True&caption_type=speech&max_lines=1

TaskCfg(cache_folder='E:/shipfanyi/win-pyvideotrans-v3.92/tmp/12588/67ae3c6e12', target_dir='E:/shipfanyi/win-pyvideotrans-v3.92/output/recogn', remove_noise=False, is_separate=False, detect_language='zh-cn', subtitle_language=None, source_language=None, target_language=None, source_language_code=None, target_language_code=None, source_sub=None, target_sub='E:/shipfanyi/win-pyvideotrans-v3.92/output/recogn/2023-07-10 22.18.00-视频-斜杠青年小冯-我的真实大学经历,时间有点长 ,但... #大学生 #赚钱 #干货 #大学生创业.srt', source_wav=None, source_wav_output=None, target_wav=None, target_wav_output=None, subtitles=None, novoice_mp4=None, noextname='2023-07-10 22.18.00-视频-斜杠青年小冯-我的真实大学经历,时间有点长 ,但... #大学生 #赚钱 #干货 #大学生创业', shibie_audio='E:/shipfanyi/win-pyvideotrans-v3.92/tmp/12588/67ae3c6e12/2023-07-10 22.18.00-视频-斜杠青年小冯-我的真实大学经历,时间有点长 ,但... #大学生 #赚钱 #干货 #大学生创业-1770885801.370721.wav', targetdir_mp4=None, instrument=None, vocal=None, back_audio=None, background_music=None, app_mode='biaozhun', subtitle_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role=None, copysrt_rawvideo=False, clear_cache=False, translate_type=None, tts_type=None, recogn_type=10, model_name='distil-small.en', split_type=0, voice_autorate=False, video_autorate=False, cuda=False, name='G:/git视频下载脚本/_internal/Volume/UID3426546545866264_斜杠青年小冯_发布作品/2023-07-10 22.18.00-视频-斜杠青年小冯-我的真实大学经历,时间有点长 ,但... #大学生 #赚钱 #干货 #大学生创业.mp4', basename='2023-07-10 22.18.00-视频-斜杠青年小冯-我的真实大学经历,时间有点长 ,但... #大学生 #赚钱 #干货 #大学生创业.mp4', ext='mp4', dirname='G:/git视频下载脚本/_internal/Volume/UID3426546545866264_斜杠青年小冯_发布作品', shound_del_name=None, uuid='67ae3c6e12', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, rephrase=0, only_out_mp4=False)


=
system:Windows-10-10.0.22621-SP0
version:v3.92
frozen:True
language:zh
root_dir:E:/shipfanyi/win-pyvideotrans-v3.92

1 Replies

这是由于字节火山语音识别API返回了403 Forbidden错误,通常意味着API调用被拒绝,可能原因是API Key无效、配额用尽、或请求参数有误。

  1. 检查API配置:确认在“语音识别渠道”中选择“字节语音识别大模型极速版”后,填写的appidtoken是否正确且有效。请前往字节火山方舟控制台核对。
  2. 检查配额与计费:登录字节火山方舟控制台,确认该语音识别服务是否已开通、是否有可用配额或余额。
  3. 升级软件版本:您当前使用的是v3.92版本。请升级到最新版v3.97,可能已包含针对此问题的修复或更明确的错误提示。
  4. 简化请求参数:尝试在软件的高级设置中,将语音识别相关参数(如max_lines等)恢复为默认值,避免因参数问题导致API拒绝。

请查阅相关文档:

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