whisper

package
v0.0.0-...-2ec7614 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 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 Client

type Client struct {
	provider.Transcriber
}

func New

func New(url string, options ...Option) (*Client, error)

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 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