Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Go言語でWhisperのvttファイルをAVIUtlのexoファイルに変換するバッチを作った.pdf

 Go言語でWhisperのvttファイルをAVIUtlのexoファイルに変換するバッチを作った.pdf

https://yumenosora.connpass.com/event/276955/
「あの技術、こんなことに使ってみました!趣味で作ったものLT会」の登壇資料になります。

More Decks by 虎の穴ラボ株式会社

Other Decks in Technology

Transcript

  1. Copyright (C) 2020 Toranoana Inc. All Rights Reserved.
    Go言語でWhisperのvttファイルをAVIUtlのexo
    ファイルに変換するバッチを作った
    虎の穴ラボ株式会社 浜田拓実
    2023
    趣味で作ったものLT会

    View Slide

  2. Copyright (C) 2020 Toranoana Inc. All Rights Reserved.
    自己紹介

    浜田 拓実(ハマダ タクミ)



    ● 2022/06 入社

    ● 虎の穴ラボ 通販チーム エンジニア 

    Goを始めたきっかけ

    ● 社内勉強会でGoが取り上げられた 

    ● 感触が良かったため、趣味の開発言語として利用 


    View Slide

  3. Copyright (C) 2020 Toranoana Inc. All Rights Reserved.
    アジェンダ

    ・用語の紹介

    ・作成の動機

    ・作成物の紹介

    ・今後の展望

    ・まとめ


    View Slide

  4. Copyright (C) 2020 Toranoana Inc. All Rights Reserved.
    用語の紹介

    View Slide

  5. Copyright (C) 2020 Toranoana Inc. All Rights Reserved.
    用語の紹介

    Whisperとは?

    ・OpenAI開発の文字起こしAI

    ・動画や音声ファイルから

     字幕ファイルを生成できる


    View Slide

  6. Copyright (C) 2020 Toranoana Inc. All Rights Reserved.
    用語の紹介

    vttファイルとは?

    ・Whisperが生成した字幕ファイル

    ・動画内の時間と、その時間で

     話している内容が出力されている

    View Slide

  7. Copyright (C) 2020 Toranoana Inc. All Rights Reserved.
    用語の紹介

    AVIUtlとは?

    ・無料で利用できる動画編集ソフト

    ・プラグインや周辺ソフトが充実

    View Slide

  8. Copyright (C) 2020 Toranoana Inc. All Rights Reserved.
    用語の紹介

    exoファイルとは?

    ・AVIUtlで利用するプロジェクトファイル

    ・拡張編集で利用されるオブジェクトが

     保存されている


    View Slide

  9. Copyright (C) 2020 Toranoana Inc. All Rights Reserved.
    作成の動機

    View Slide

  10. Copyright (C) 2020 Toranoana Inc. All Rights Reserved.
    作成の動機

    趣味の動画編集を効率化したい!

    ・バイクに乗ることが趣味

    ・趣味でツーリング動画を作成している

    ・ツーリング中に喋った内容を

     字幕に起こすのが大変

    Whisperで字幕生成し、exoファイルに変換できれば

    編集作業が楽になるのでは?


    View Slide

  11. Copyright (C) 2020 Toranoana Inc. All Rights Reserved.
    作成の動機

    開発にはGo言語を利用

    一番の理由:Go言語の勉強のため

    ・社内勉強会でGo言語が

     取り上げられていて興味を持つ

    ・感触が良かったため、

     なにか作りたいと思い作成


    View Slide

  12. Copyright (C) 2020 Toranoana Inc. All Rights Reserved.
    作成物の紹介

    View Slide

  13. Copyright (C) 2020 Toranoana Inc. All Rights Reserved.
    作成物の紹介

    vtt->exoファイルコンバータ

    ・開発はGo 1.19、MacBookで作成

    ・WhisperはWindows環境で動作

     GoのクロスコンパイルでWindows向けのexeを生成

    View Slide

  14. Copyright (C) 2020 Toranoana Inc. All Rights Reserved.
    作成物の紹介

    入力元vttファイル


    View Slide

  15. Copyright (C) 2020 Toranoana Inc. All Rights Reserved.
    作成物の紹介

    コンバート実行


    View Slide

  16. Copyright (C) 2020 Toranoana Inc. All Rights Reserved.
    作成物の紹介

    出力されたexoファイル


    View Slide

  17. Copyright (C) 2020 Toranoana Inc. All Rights Reserved.
    作成物の紹介

    AVIUtilに取り込み


    View Slide

  18. Copyright (C) 2020 Toranoana Inc. All Rights Reserved.
    今後の展望

    View Slide

  19. Copyright (C) 2020 Toranoana Inc. All Rights Reserved.
    今後の展望

    出力されるexoファイルのカスタマイズ

    ・exoファイルのテンプレートが固定文字列

    ・設定ファイルやDBから取得する形にしたい

    View Slide

  20. Copyright (C) 2020 Toranoana Inc. All Rights Reserved.
    今後の展望

    Webアプリ化

    ・ローカルでのみ実行可能

    ・Webアプリ化して

     どこからでも利用できるようにしたい

    View Slide

  21. Copyright (C) 2020 Toranoana Inc. All Rights Reserved.
    まとめ

    View Slide

  22. Copyright (C) 2020 Toranoana Inc. All Rights Reserved.
    まとめ

    ・Go言語でvttファイルからexoファイルに

     データをコンバートするためのバッチを作りました。


    ・趣味開発は一石二鳥

     新しい言語の勉強になる

     趣味作業の効率化

    趣味開発しましょう!!


    View Slide