Huanshere / VideoLingo

Netflix-level subtitle cutting, translation, alignment, and even dubbing - one-click fully automated AI video subtitle team | Netflix级字幕切割、翻译、对齐、甚至加上配音,一键全自动视频搬运AI字幕组
https://videolingo.io
Apache License 2.0
4.91k stars 517 forks source link

超过1分钟的音频会报错 #180

Open yehe9527 opened 4 days ago

yehe9527 commented 4 days ago

月初用是好的,但是这两天怎么搞的都不行,只要视频长度超过1分钟就会提示这些

Exception: Error accessing whisperX API: The write operation timed out Please check your Replicate API key and internet connection.

Traceback: File "D:\ruanjian\anaconda3\envs\videolingo\lib\site-packages\streamlit\runtime\scriptrunner\exec_code.py", line 88, in exec_func_with_error_handling result = func() File "D:\ruanjian\anaconda3\envs\videolingo\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 590, in code_to_exec exec(code, module.dict) File "C:\Users\18479\Desktop\VideoLingo\st.py", line 118, in main() File "C:\Users\18479\Desktop\VideoLingo\st.py", line 114, in main text_processing_section() File "C:\Users\18479\Desktop\VideoLingo\st.py", line 30, in text_processing_section process_text() File "C:\Users\18479\Desktop\VideoLingo\st.py", line 45, in process_text step2_whisper.transcribe() File "C:\Users\18479\Desktop\VideoLingo\core\step2_whisper.py", line 23, in transcribe ts(video_file) File "C:\Users\18479\Desktop\VideoLingo\core\all_whisper_methods\whisperXapi.py", line 225, in transcribe result = transcribe_segment(audio_file, start, end) File "C:\Users\18479\Desktop\VideoLingo\core\all_whisper_methods\whisperXapi.py", line 104, in transcribe_segment result = transcribe_audio(audio_base64) File "C:\Users\18479\Desktop\VideoLingo\core\all_whisper_methods\whisperXapi.py", line 147, in transcribe_audio raise Exception(f"Error accessing whisperX API: {e} Please check your Replicate API key and internet connection.\n")

Huanshere commented 3 days ago

尝试更新代码?检查key的余额?