Documentation ¶
Index ¶
- type Client
- func (c *Client) DeleteModel(ctx context.Context, model string) error
- func (c *Client) DownloadModel(ctx context.Context, path string, fn func(status string, cur, total int64)) (schema.Model, error)
- func (c *Client) ListModels(ctx context.Context) ([]schema.Model, error)
- func (c *Client) Ping(ctx context.Context) error
- func (c *Client) Transcribe(ctx context.Context, model string, r io.Reader, opt ...Opt) (*schema.Transcription, error)
- func (c *Client) Translate(ctx context.Context, model string, r io.Reader, opt ...Opt) (*schema.Transcription, error)
- type Opt
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 ¶
New creates a new client, with the endpoint of the whisper service ie, http://localhost:8080/v1
func (*Client) DownloadModel ¶
func (*Client) ListModels ¶
func (*Client) Transcribe ¶
Click to show internal directories.
Click to hide internal directories.