Documentation
¶
Index ¶
- func CheckFFmpegInstallation() error
- func EmbedSubtitles(videoFilename string, srtFilename string, outputVideoFilename string) error
- func ExtractAudio(videoFilename string, audioFilename string) error
- func GenerateSRT(timedTexts []TimedText, srtFilename string) error
- func SegmentAudio(audioFilename string, segmentLength int) error
- func SendToWhisper(audioFilename string, apiKey string) (string, error)
- type TimedText
- type TranscriptionResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckFFmpegInstallation ¶
func CheckFFmpegInstallation() error
CheckFFmpegInstallation checks if FFmpeg is installed on the system
func EmbedSubtitles ¶
func ExtractAudio ¶
ExtractAudio Extracts audio from a video file using FFmpeg
func GenerateSRT ¶
func SegmentAudio ¶
Types ¶
type TranscriptionResponse ¶
type TranscriptionResponse struct {
Text string `json:"text"`
}
Click to show internal directories.
Click to hide internal directories.