gowhisper

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2025 License: Apache-2.0 Imports: 9 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 {
	*client.Client
}

func New

func New(endpoint string, opts ...client.ClientOpt) (*Client, error)

New creates a new client, with the elevenslabs token

func (*Client) DeleteModel

func (c *Client) DeleteModel(ctx context.Context, model string) error

func (*Client) DownloadModel

func (c *Client) DownloadModel(ctx context.Context, path string, fn func(cur, total uint64)) (*schema.Model, error)

func (*Client) ListModels

func (c *Client) ListModels(ctx context.Context) ([]schema.Model, error)

func (*Client) Ping

func (c *Client) Ping(ctx context.Context) error

func (*Client) Transcribe

Transcribe performs a transcription request in the language of the speech

func (*Client) Translate

Translate performs a transcription request and returns the result in english

type TranscriptionRequest

type TranscriptionRequest struct {
	openai.TranscriptionRequest
	Diarize *bool `json:"diarize,omitempty"`
}

type TranscriptionResponse

type TranscriptionResponse struct {
	openai.TranscriptionResponse
}

type TranslationRequest

type TranslationRequest struct {
	openai.TranslationRequest
	Stream  *bool `json:"stream,omitempty"`
	Diarize *bool `json:"diarize,omitempty"`
}

Jump to

Keyboard shortcuts

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