利用 AI 大模型和自动化工作流,根据主题或关键词一键生成高清短视频。Generate HD short videos from a topic or keyword with an automated AI workflow.
Python ai-video-generatorcontent-creationffmpeginstagram-reelsllmpythonshort-videosubtitlestext-to-speechtiktokvideo-automationvideo-workflowworkflow-automationyoutube-shorts
add default subtitle encoding to utf-8
wangxingda2df2cc0dab68
diff --git a/app/services/voice.py b/app/services/voice.pyindex 220a4e5d..50dae079 100644--- a/app/services/voice.py+++ b/app/services/voice.py@@ -1102,7 +1102,7 @@ def create_subtitle(sub_maker: submaker.SubMaker, text: str, subtitle_file: str)with open(subtitle_file, "w", encoding="utf-8") as file:file.write("\n".join(sub_items) + "\n")try:- sbs = subtitles.file_to_subtitles(subtitle_file)+ sbs = subtitles.file_to_subtitles(subtitle_file, encoding="utf-8")duration = max([tb for ((ta, tb), txt) in sbs])logger.info(f"completed, subtitle file created: {subtitle_file}, duration: {duration}")except Exception as e: