Versions in this module Expand all Collapse all v1 v1.0.0 May 14, 2023 Changes in this version + const DefaultBase + const DefaultModel + type Client struct + func NewClient(opts ...ClientOption) *Client + func (c *Client) Transcribe(h io.Reader, opts ...TranscribeOption) (*TranscribeResponse, error) + func (c *Client) TranscribeFile(file string, opts ...TranscribeOption) (*TranscribeResponse, error) + func (c *Client) URL(relPath string) string + type ClientOption func(*Client) + func WithBaseURL(url string) ClientOption + func WithHTTPClient(httpClient *http.Client) ClientOption + func WithKey(key string) ClientOption + type Segment struct + AvgLogprob float64 + CompressionRatio float64 + End float64 + ID int + NoSpeechProb float64 + Seek int + Start float64 + Temperature float64 + Text string + Tokens []int + Transient bool + type TranscribeConfig struct + File string + Language string + Model string + type TranscribeOption func(*TranscribeConfig) + func WithFile(file string) TranscribeOption + func WithLanguage(lang string) TranscribeOption + func WithModel(model string) TranscribeOption + type TranscribeResponse struct + Duration float64 + Language string + Segments []Segment + Task string + Text string