whisper

package
v0.3.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 28, 2024 License: BSD-3-Clause Imports: 11 Imported by: 0

README

Whisper

Whisper is a LLM that requires Python 3, PIP and FFMPEG.

For further help on how to install: https://www.gpu-mart.com/blog/install-whisper-in-ubuntu

Sample usage: whisper panettone.mp3 --language Italian

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WhisperExec

type WhisperExec struct {
	// contains filtered or unexported fields
}

func NewExec

func NewExec(execPath string) *WhisperExec

func (*WhisperExec) ExecuteCommand

func (instance *WhisperExec) ExecuteCommand(arguments ...string) (out string, err error)

func (*WhisperExec) GetPath

func (instance *WhisperExec) GetPath(path string) (response string)

func (*WhisperExec) GetTranscriptionText

func (instance *WhisperExec) GetTranscriptionText(source string) (response string, err error)

func (*WhisperExec) Help

func (instance *WhisperExec) Help() (response string, err error)

func (*WhisperExec) IsInstalled

func (instance *WhisperExec) IsInstalled() bool

func (*WhisperExec) Root

func (instance *WhisperExec) Root() string

func (*WhisperExec) SetRoot

func (instance *WhisperExec) SetRoot(dir string) *WhisperExec

func (*WhisperExec) Transcribe

func (instance *WhisperExec) Transcribe(source string, params ...string) (response map[string]interface{}, err error)

Transcribe processes an audio file, optionally converts it to MP3 if not already in audio format, and generates a transcription. It returns a map containing transcription data and potential errors that occurred during the process.

func (*WhisperExec) Version

func (instance *WhisperExec) Version() (response string, err error)

type WhisperHelper

type WhisperHelper struct {
}
var (
	Whisper *WhisperHelper
)

func (*WhisperHelper) IsInstalled

func (instance *WhisperHelper) IsInstalled() bool

func (*WhisperHelper) NewExec

func (instance *WhisperHelper) NewExec() *WhisperExec

NewExec Creates new Git command

func (*WhisperHelper) Version

func (instance *WhisperHelper) Version() (version string, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL