動画からの文字起こしの忘備録
mac zsh
#file1からfile2に変換する
#file1からfile2に変換する
ffmpeg -i file1 file2
Google Colaboratoryに移動し、whisperのインストール
Google Colaboratory
サイドバーのファイルアイコンを押し、contentを右クリックしてアップロードを選択してファイルをアップロードする。
Google Colaboratory
モードは、以下から選択出来ます。

個人的には、mediumが一番好き。
Google Colaboratoryに移動し、whisperのインストール
Google Colaboratory
!pip install git+https://github.com/openai/whisper.git
import whisper
インストール完了後、ファイルのアップロードを行う。サイドバーのファイルアイコンを押し、contentを右クリックしてアップロードを選択してファイルをアップロードする。
Google Colaboratory
model = whisper.load_model("large")
result = model.transcribe("アップロードfile.拡張子")
print(result["text"])
モードは、以下から選択出来ます。

個人的には、mediumが一番好き。
コメント
コメントを投稿