Skip to content

视频音频转字幕,生成srt文件。无需申请第三方API,本地实现音频转文本。基于Transformer的视频字幕生成框架,包含字幕生成、字幕翻译。A tool for generating subtitle from videos and generating srt files.

License

Notifications You must be signed in to change notification settings

ChenJian7578/video-subtitle-generator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DEMO

demo

使用方法

安装依赖:

pip install -r requirements.txt

使用方法:

  • 目前只支持英文字幕生成
    # 1.指定音视频文件路径
    wav_path = './test/test.flv'
    # 2. 新建字幕提取器
    sg = SubtitleGenerator(wav_path)
    # 3. 运行字幕生成
    ret = sg.run()
  • 运行
python main.py

About

视频音频转字幕,生成srt文件。无需申请第三方API,本地实现音频转文本。基于Transformer的视频字幕生成框架,包含字幕生成、字幕翻译。A tool for generating subtitle from videos and generating srt files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%