Closed guiyu closed 2 months ago
Traceback: File "D:\workspaces\MoneyPrinterPlus\venv\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 575, in _run_script self._session_state.on_script_will_rerun( File "D:\workspaces\MoneyPrinterPlus\venv\Lib\site-packages\streamlit\runtime\state\safe_session_state.py", line 65, in on_script_will_rerun self._state.on_script_will_rerun(latest_widget_states) File "D:\workspaces\MoneyPrinterPlus\venv\Lib\site-packages\streamlit\runtime\state\session_state.py", line 517, in on_script_will_rerun self._call_callbacks() File "D:\workspaces\MoneyPrinterPlus\venv\Lib\site-packages\streamlit\runtime\state\session_state.py", line 530, in _call_callbacks self._new_widget_state.call_callback(wid) File "D:\workspaces\MoneyPrinterPlus\venv\Lib\site-packages\streamlit\runtime\state\session_state.py", line 274, in call_callback callback(*args, **kwargs) File "D:\workspaces\MoneyPrinterPlus\pages\01_auto_video.py", line 98, in generate_video main_generate_ai_video(video_generator) File "D:\workspaces\MoneyPrinterPlus\main.py", line 291, in main_generate_ai_video main_generate_video_dubbing() File "D:\workspaces\MoneyPrinterPlus\main.py", line 177, in main_generate_video_dubbing extent_audio(audio_output_file, 2) File "D:\workspaces\MoneyPrinterPlus\tools\utils.py", line 162, in extent_audio subprocess.run(command, capture_output=True, check=True) File "C:\Users\Weiyi\AppData\Local\Programs\Python\Python312\Lib\subprocess.py", line 571, in run raise CalledProcessError(retcode, process.args,
这个问题已经解决,问题的原因在于chatTTS配置问题导致,解决之后就没问题了。
修复方式如图
怎么解决的呢?
CalledProcessError: Command '['ffmpeg', '-i', 'D:\workspaces\MoneyPrinterPlus\work\1725969299247.wav', '-af', 'apad=pad_dur=2', 'D:\workspaces\MoneyPrinterPlus\work\1725969299247.temp.wav']' returned non-zero exit status 3199971767.
看了下1725969299247.temp.wav 这个文件大小为0,请问是哪一步生成的临时音频文件,又为什么为空呢?