whisperer

package
v0.0.0-...-cb929b8 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrFailedToDownloadFileFromS3Not200Or206 = errors.New("response from S3 was not a 200 OK or 206 Partial Content")
)

Functions

This section is empty.

Types

type WhisperOutput

type WhisperOutput struct {
	Text     string                  `json:"text"`
	Segments []WhisperOutputSegments `json:"segments"`
}

type WhisperOutputSegments

type WhisperOutputSegments struct {
	Id               uint    `json:"id"`
	Seek             uint    `json:"seek"`
	Start            float32 `json:"start"`
	End              float32 `json:"end"`
	Text             string  `json:"text"`
	Tokens           []uint  `json:"tokens"`
	Temperature      float32 `json:"temperature"`
	AvgLogProb       float32 `json:"avg_logprob"`
	CompressionRatio float32 `json:"compression_ratio"`
	NoSpeechProb     float32 `json:"no_speech_prob"`
}

type Whisperer

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

func New

func New(log zerolog.Logger, gRpcServer string) (*Whisperer, error)

func (*Whisperer) Close

func (w *Whisperer) Close()

func (*Whisperer) Run

func (w *Whisperer) Run()

Jump to

Keyboard shortcuts

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