Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type STTConfig ¶
type STTConfig struct {
Engine string `json:"engine"`
Model string `json:"model"`
Lang string `json:"lang"`
}
STTConfig holds speech-to-text configuration.
type Transcriber ¶
type Transcriber struct {
// contains filtered or unexported fields
}
Transcriber handles speech-to-text transcription.
func NewTranscriber ¶
func NewTranscriber(config STTConfig) *Transcriber
NewTranscriber creates a new transcriber.
func (*Transcriber) Transcribe ¶
func (t *Transcriber) Transcribe(audioData []byte) (string, error)
Transcribe transcribes audio data to text.
Click to show internal directories.
Click to hide internal directories.