#2439 TaskCfg(cache_folder='D:/greenbox/win-videotrans/tmp/12808/88b2a70af3', target_dir='D:/greenbox/win-videotrans/output/re

104.168* Posted at: 2 hours ago 👁4

语音识别阶段出错 [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='D:/greenbox/win-videotrans/tmp/12808/88b2a70af3', target_dir='D:/greenbox/win-videotrans/output/recogn', remove_noise=False, is_separate=False, detect_language='en', subtitle_language=None, source_language=None, target_language=None, source_language_code=None, target_language_code=None, source_sub=None, target_sub='D:/greenbox/win-videotrans/output/recogn/23 -Silver Layer Load Script 2.srt', source_wav=None, source_wav_output=None, target_wav=None, target_wav_output=None, subtitles=None, novoice_mp4=None, noextname='23 -Silver Layer Load Script 2', shibie_audio='D:/greenbox/win-videotrans/tmp/12808/88b2a70af3/23 -Silver Layer Load Script 2-1767402901.098613.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='tiny', split_type=0, voice_autorate=False, video_autorate=False, cuda=True, name='J:/Udemy.The.Complete.SQL.Bootcamp.30.Hours.Go.from.Zero.to.Hero/处理/25 - SQL Data Warehouse Project/23 -Silver Layer Load Script 2.mp4', basename='23 -Silver Layer Load Script 2.mp4', ext='mp4', dirname='J:/Udemy.The.Complete.SQL.Bootcamp.30.Hours.Go.from.Zero.to.Hero/处理/25 - SQL Data Warehouse Project', shound_del_name=None, uuid='88b2a70af3', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, rephrase=1, only_out_mp4=False)


=
system:Windows-10-10.0.22621-SP0
version:v3.92
frozen:True
language:zh
root_dir:D:/greenbox/win-videotrans

1 Replies

您在使用 Parakeet-tdt 语音识别时遇到了网络连接超时错误。这通常是由于网络不稳定、代理设置问题或服务器端响应缓慢导致的。

请按以下步骤排查:

  1. 检查网络连接:确保您的电脑可以稳定访问互联网。
  2. 检查代理设置:如果您使用了网络代理,请确保在软件主界面第5行的“网络代理”中正确填写了代理地址(例如 http://127.0.0.1:7860)。如果不需要代理,请留空。
  3. 更换语音识别渠道:Parakeet-tdt 是一个在线服务,可能暂时不可用。建议您切换到更稳定的本地识别渠道:

    • 在主界面第2行“语音识别”中,选择 faster-whisper(本地)阿里FunASR(本地)
    • 选择 faster-whisper 后,可以下载一个合适的模型(如 mediumlarge-v2),并勾选“CUDA加速”以提升速度。
  4. 降低并发或重试:如果必须使用在线服务,可以尝试在“高级选项”中降低并发请求数,并增加超时时间(如果相关设置可用)。
  5. 检查文件路径:您的视频文件路径较长且包含空格(J:/Udemy.The.Complete.SQL.Bootcamp.30.Hours.Go.from.Zero.to.Hero/处理/...)。虽然这可能不是导致超时的直接原因,但长路径和特殊字符有时会引起问题。可以尝试将视频文件复制到更短的路径(如 D:/test.mp4)再进行处理。

如果以上方法均无效,请考虑暂时使用其他语音识别服务。

请查看更多参考文档:

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.

Donate: https://ko-fi.com/jianchang512

Trending Questions