Documentation
¶
Overview ¶
Package gradium provides Gradium speech-to-text (WebSocket or REST).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type STTService ¶
type STTService struct {
// contains filtered or unexported fields
}
STTService implements services.STTService using Gradium's transcription API.
func NewSTT ¶
func NewSTT(apiKey, baseURL, model string) *STTService
NewSTT creates a Gradium STT service.
func (*STTService) Transcribe ¶
func (s *STTService) Transcribe(ctx context.Context, audio []byte, sampleRate, numChannels int) ([]*frames.TranscriptionFrame, error)
Transcribe sends audio to Gradium and returns transcription frames.
Click to show internal directories.
Click to hide internal directories.