Documentation
¶
Overview ¶
Package soniox provides Soniox speech-to-text (WebSocket API used for batch Transcribe).
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 Soniox WebSocket API. Transcribe opens a short-lived WebSocket session, sends audio, finalizes, and returns the transcript.
func NewSTT ¶
func NewSTT(apiKey, url, model string) *STTService
NewSTT creates a Soniox STT service.
func (*STTService) Transcribe ¶
func (s *STTService) Transcribe(ctx context.Context, audio []byte, sampleRate, numChannels int) ([]*frames.TranscriptionFrame, error)
Transcribe sends audio via Soniox WebSocket and returns the final transcript.
Click to show internal directories.
Click to hide internal directories.