whisper

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// The path to the GGML model file to use.
	ModelFile string
	// The number of system threads to use to perform the transcription.
	NumThreads int
	// Whether or not past transcription should be used as prompt.
	NoContext bool
}

func (Config) IsValid

func (c Config) IsValid() error

type Context

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

func NewContext

func NewContext(cfg Config) (*Context, error)

func (*Context) Destroy

func (c *Context) Destroy() error

func (*Context) Transcribe

func (c *Context) Transcribe(samples []float32) ([]transcribe.Segment, string, error)

Jump to

Keyboard shortcuts

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