Skip to content

A small CLI tool for converting video & audio to a text transcription

Notifications You must be signed in to change notification settings

mikeesto/subber

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Subber

This is a Golang CLI tool for generating transcripts of video files. It uses ffmpeg, whisper and ollama.

Usage

go run *.go [--format] <file>

Options

  • --format: Optional flag to trigger formatting the transcript into paragraphs using an LLM

Example

go run *.go --format video.mp4

This command will:

  1. Convert video.mp4 to a WAV
  2. Transcribe the audio using Whisper
  3. Format the transcript into paragraphs using an LLM
  4. Save the formatted transcript to formatted_transcript.txt

Installation

I'm still working on the best way to distribute this. For now, you can clone the repository, ensure you have the required dependencies installed, and update the WhisperPath and ModelPath constants in the code to match your system.

To build the CLI:

go build -o subber

Then move the binary to somewhere on your PATH (e.g. /usr/local/bin).

About

A small CLI tool for converting video & audio to a text transcription

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages