FunASR-powered video transcription, subtitle generation, and LLM-assisted clipping tool with a local Gradio UI.
Python ai-toolsai-video-editingasrauto-subtitleschinesecontent-creationfunasrfunclipgradiollmparaformerspeech-recognitionspeech-to-textsubtitles-generatortranscriptionvideo-editingvideo-processingvideo-subtitlesvideo-transcriptionwhisper-alternative
update readme
shixian.shiab9b0b88c2f3
diff --git a/README.md b/README.mdindex 33c7d28..f43f00f 100644--- a/README.md+++ b/README.md@@ -65,12 +65,12 @@ python FunClipper/launch.py#### B.通过命令行调用使用FunClipper的相关功能(更新中)```shell# 步骤一:识别-python FunClipper/videoclipper.py --stage 1 \+python funclipper/videoclipper.py --stage 1 \--file examples/2022云栖大会_片段.mp4 \--output_dir ./output# ./output中生成了识别结果与srt字幕等# 步骤二:裁剪-python FunClipper/videoclipper.py --stage 2 \+python funclipper/videoclipper.py --stage 2 \--file examples/2022云栖大会_片段.mp4 \--output_dir ./output \--dest_text '我们把它跟乡村振兴去结合起来,利用我们的设计的能力' \diff --git a/funclipper/videoclipper.py b/funclipper/videoclipper.pyindex fc04904..e14c1ca 100644--- a/funclipper/videoclipper.py+++ b/funclipper/videoclipper.py@@ -314,7 +314,7 @@ def runner(stage, file, sd_switch, output_dir, dest_text, dest_spk, start_ost, etotal_srt_file = output_dir + '/total.srt'with open(total_srt_file, 'w') as fout:fout.write(res_srt)- logging.warning("Write total subtitile to {}".format(total_srt_file))+ logging.warning("Write total subtitle to {}".format(total_srt_file))write_state(output_dir, state)logging.warning("Recognition successed. You can copy the text segment from below and use stage 2.")print(res_text)@@ -334,7 +334,7 @@ def runner(stage, file, sd_switch, output_dir, dest_text, dest_spk, start_ost, elogging.warning("Save clipped wav file to {}".format(output_file))with open(clip_srt_file, 'w') as fout:fout.write(srt_clip)- logging.warning("Write clipped subtitile to {}".format(clip_srt_file))+ logging.warning("Write clipped subtitle to {}".format(clip_srt_file))if mode == 'video':state = load_state(output_dir)state['vedio_filename'] = file@@ -349,7 +349,7 @@ def runner(stage, file, sd_switch, output_dir, dest_text, dest_spk, start_ost, elogging.warning("Save clipped mp4 file to {}".format(clip_video_file))with open(clip_srt_file, 'w') as fout:fout.write(srt_clip)- logging.warning("Write clipped subtitile to {}".format(clip_srt_file))+ logging.warning("Write clipped subtitle to {}".format(clip_srt_file))def main(cmd=None):