whisper

package
v0.0.0-...-d33b70a Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AsrResp

type AsrResp struct {
	Segments []struct {
		Start float64 `json:"start"`
		End   float64 `json:"end"`
		Text  string  `json:"text"`
	} `json:"segments"`
}

func Asr

func Asr(whisperEndpoint, filePath, language string) (*AsrResp, error)

func (*AsrResp) Decode

func (r *AsrResp) Decode()

func (*AsrResp) MakeContent

func (r *AsrResp) MakeContent() []string

func (*AsrResp) MakeContentWithTime

func (r *AsrResp) MakeContentWithTime() []string

Jump to

Keyboard shortcuts

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