Documentation
¶
Overview ¶
Package audiolive serves a private browser companion for live audio translation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LanguageName ¶ added in v1.53.1
LanguageName returns the display name of a supported translation target.
Types ¶
type Config ¶
type Config struct {
Language string `json:"language"`
NoiseReduction bool `json:"noise_reduction"`
Model string `json:"-"`
TranscriptionModel string `json:"-"`
}
Config contains only the public controls used to start a translation session.
type Event ¶
type Event struct {
ItemID string `json:"item_id,omitempty"`
ContentIndex int `json:"content_index,omitempty"`
Transcript *string `json:"transcript,omitempty"`
Type string `json:"type"`
Delta string `json:"delta,omitempty"`
Message string `json:"message,omitempty"`
Tokens int64 `json:"tokens,omitempty"`
InputTokens *int64 `json:"input_tokens,omitempty"`
OutputTokens *int64 `json:"output_tokens,omitempty"`
ElapsedMS *float64 `json:"elapsed_ms,omitempty"`
Format string `json:"format,omitempty"`
SampleRate int `json:"sample_rate,omitempty"`
Channels int `json:"channels,omitempty"`
}
Event carries only display data. It never contains credentials or raw API errors.
type Failure ¶
type Failure string
Failure contains an actionable message prepared by trusted application code. Unclassified errors never reach the browser.
Click to show internal directories.
Click to hide internal directories.