soniox

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL