whisper

package
v0.0.0-...-d39df66 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 11 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 {
	// contains filtered or unexported fields
}

type InferenceResponse

type InferenceResponse struct {
	Task string `json:"task"`

	Language string  `json:"language"`
	Duration float64 `json:"duration"`

	Text string `json:"text"`
}

type Option

type Option func(*Config)

func WithClient

func WithClient(client *http.Client) Option

type Transcriber

type Transcriber struct {
	*Config
}

func NewTranscriber

func NewTranscriber(url, model string, options ...Option) (*Transcriber, error)

func (*Transcriber) Transcribe

Jump to

Keyboard shortcuts

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