Skip to content

Latest commit

 

History

History
56 lines (38 loc) · 1.41 KB

README.md

File metadata and controls

56 lines (38 loc) · 1.41 KB

GPT-Whisper-Captions

Description

This repository contains a Go module for video transcription using OpenAI's Whisper API. It allows you to extract audio from a video file, send it to the Whisper API for transcription, and then embed the transcribed text back into the video as subtitles.

Installation

  1. Make sure you have Go installed on your system. If not, you can download and install it from here.

  2. Make sure FFmpeg is installed on your system. If not, you can download it from here.

As a library

go get github.com/stevenlawton/GPT-Whisper-captions

Usage

In your Go app you can do something like

package main

import (
    "log"
    "os"

    captions "github.com/stevenlawton/GPT-Whisper-captions"
)

func main() {
   // Check if FFmpeg is installed
   err = captions.CheckFFmpegInstallation()
   if err != nil {
      log.Fatal("FFmpeg is not installed: ", err)
      return
   }

}

Features

  • Audio extraction from video using FFmpeg
  • Audio segmentation for more manageable transcription
  • Transcription using OpenAI's Whisper API
  • SRT file generation for subtitles
  • Embedding subtitles back into the video

Contributing

Feel free to open issues or submit pull requests. Your contributions are welcome!

License

This project is licensed under the MIT License - see the LICENSE.md file for details.