#2926 TaskCfg(cache_folder='G:/pyvideotrans/tmp/14964/0340706fc4', target_dir='G:/pyvideotrans/output/recogn', remove_noise=Fa

2408:832e* Posted at: 2 hours ago 👁8

语音识别阶段出错 [Parakeet-tdt] 连接超时,请检查网络连接是否稳定
Traceback (most recent call last):
File "httpx\_transports\default.py", line 101, in map_httpcore_exceptions
File "httpx\_transports\default.py", line 250, in handle_request
File "httpcore\_sync\connection_pool.py", line 216, in handle_request
File "httpcore\_sync\connection_pool.py", line 196, in handle_request
File "httpcore\_sync\connection.py", line 101, in handle_request
File "httpcore\_sync\http11.py", line 143, in handle_request
File "httpcore\_sync\http11.py", line 113, in handle_request
File "httpcore\_sync\http11.py", line 186, in _receive_response_headers
File "httpcore\_sync\http11.py", line 224, in _receive_event
File "httpcore\_backends\sync.py", line 124, in read
File "contextlib.py", line 153, in exit
File "httpcore\_exceptions.py", line 14, in map_exceptions
httpcore.ReadTimeout: timed out

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "openai\_base_client.py", line 982, in request
File "httpx\_client.py", line 914, in send
File "httpx\_client.py", line 942, in _send_handling_auth
File "httpx\_client.py", line 979, in _send_handling_redirects
File "httpx\_client.py", line 1014, in _send_single_request
File "httpx\_transports\default.py", line 249, in handle_request
File "contextlib.py", line 153, in exit
File "httpx\_transports\default.py", line 118, in map_httpcore_exceptions
httpx.ReadTimeout: timed out

The above exception was the direct cause of the following exception:

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 235, in run
File "videotrans\recognition\_base.py", line 80, in run
File "videotrans\recognition\_parakeet.py", line 38, in _exec
File "openai\_utils\_utils.py", line 286, in wrapper
File "openai\resources\audio\transcriptions.py", line 406, in create
File "openai\_base_client.py", line 1259, in post
File "openai\_base_client.py", line 1000, in request
openai.APITimeoutError: Request timed out.

TaskCfg(cache_folder='G:/pyvideotrans/tmp/14964/0340706fc4', target_dir='G:/pyvideotrans/output/recogn', remove_noise=False, is_separate=False, detect_language='ja', subtitle_language=None, source_language=None, target_language=None, source_language_code=None, target_language_code=None, source_sub=None, target_sub='G:/pyvideotrans/output/recogn/n5.srt', source_wav=None, source_wav_output=None, target_wav=None, target_wav_output=None, subtitles=None, novoice_mp4=None, noextname='n5', shibie_audio='G:/pyvideotrans/tmp/14964/0340706fc4/n5-1769483866.261665.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=11, model_name='large-v3-turbo', split_type=0, voice_autorate=False, video_autorate=False, cuda=False, name='G:/Downloads/n5.mp4', basename='n5.mp4', ext='mp4', dirname='G:/Downloads', shound_del_name=None, uuid='0340706fc4', 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.26100-SP0
version:v3.92
frozen:True
language:zh
root_dir:G:/pyvideotrans

1 Replies

这是由于 Parakeet-tdt 语音识别服务连接超时导致的网络问题。

解决方案:

  1. 检查 Parakeet-tdt 服务状态:确保你已按照官方指南正确部署并启动了 Parakeet-API 本地语音转录服务。该服务必须独立运行,pyVideoTrans 才能连接。
  2. 验证 API 地址:在 pyVideoTrans 的“语音识别设置”中,检查 Parakeet-tdt 的 API 地址(通常是 http://127.0.0.1:7860)是否与本地服务启动的地址和端口完全一致。
  3. 排查网络/防火墙:确保本地防火墙或安全软件没有阻止 pyVideoTrans 与本地服务端口(如 7860)的通信。
  4. 考虑替代方案:如果 Parakeet-tdt 服务不稳定,可以暂时切换到其他语音识别渠道,例如本地的 faster-whisper 或在线 API(如 OpenAI Whisper)。

请查阅相关文档:

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