Autosub教程:利用Google API自动生成视频字幕(英文版)

2,640 阅读1分钟

What you need:

  • A ubuntu server which could use google service
  • Anaconda

Installation

  1. Install ffmpeg
sudo apt install ffmpeg -y
  1. Create python 2.7 virturalenv
conda create -n python27 python=2.7
conda activate python27
  1. Install autosub
pip install autosub
  1. Make sure you can use google service:
curl www.google.com

Usage

Check language list:

autosub --list-languages

Generate subtitle:

autosub -S <language> -D <language> <your video/audio path>

If your computer could connect with google service correctly, It may take 20s for a 8 minutes video

Good luck!