Documentation ¶
Index ¶
- type WhisperExec
- func (instance *WhisperExec) ExecuteCommand(arguments ...string) (out string, err error)
- func (instance *WhisperExec) GetPath(path string) (response string)
- func (instance *WhisperExec) GetTranscriptionText(source string) (response string, err error)
- func (instance *WhisperExec) Help() (response string, err error)
- func (instance *WhisperExec) IsInstalled() bool
- func (instance *WhisperExec) Root() string
- func (instance *WhisperExec) SetRoot(dir string) *WhisperExec
- func (instance *WhisperExec) Transcribe(source string, params ...string) (response map[string]interface{}, err error)
- func (instance *WhisperExec) Version() (response string, err error)
- type WhisperHelper
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)
Click to show internal directories.
Click to hide internal directories.