whisperclient

package
v0.0.0-...-ad14627 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: MIT Imports: 4 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 {
	// contains filtered or unexported fields
}

Client is a wrapper around the WhisperAI API

func New

func New(apiKey, model string) *Client

New returns a new Client

func (*Client) TranscribeAudio

func (c *Client) TranscribeAudio(in TranscribeAudioInput) ([]byte, error)

TranscribeAudio transcribes the audio from the given input

type TranscribeAudioInput

type TranscribeAudioInput struct {
	Name string
	Data io.Reader
}

TranscribeAudioInput is the input for the TranscribeAudio method

Jump to

Keyboard shortcuts

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