Skip to content

Instantly share code, notes, and snippets.

View shivase's full-sized avatar

shivase shivase

View GitHub Profile
@shivase
shivase / whisper_transcribe.sh
Last active February 18, 2023 02:38
whisperを使って、指定したフォルダ配下のmp4動画すべての字幕(srt形式)を出力する
#!/bin/bash
#
# 事前要件
# * whisperをpipでインストール
# * ffmpegをbrewなりでインストール
#
# モデル名(右にいくほど精度は上がりますが時間がかかります)
# tiny.en,tiny,base.en,base,small.en,small,medium.en,medium,large-v1,large-v2,large
MODEL="tiny.en"