gladia

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PluginTitle   = "rtp-agent.plugins.gladia"
	PluginVersion = "v0.4.2"
	PluginPackage = "rtp-agent.plugins.gladia"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GladiaSTT deprecated

type GladiaSTT = STT

Deprecated: use STT.

type GladiaSTTOption deprecated added in v0.0.15

type GladiaSTTOption = STTOption

Deprecated: use STTOption.

type STT added in v0.4.2

type STT struct {
	// contains filtered or unexported fields
}

func NewGladiaSTT deprecated

func NewGladiaSTT(apiKey string, opts ...STTOption) *STT

Deprecated: use NewSTT.

func NewSTT added in v0.4.2

func NewSTT(apiKey string, opts ...STTOption) *STT

func (*STT) Capabilities added in v0.4.2

func (s *STT) Capabilities() stt.STTCapabilities

func (*STT) Close added in v0.4.2

func (s *STT) Close() error

func (*STT) InputSampleRate added in v0.4.2

func (s *STT) InputSampleRate() uint32

func (*STT) Label added in v0.4.2

func (s *STT) Label() string

func (*STT) Model added in v0.4.2

func (s *STT) Model() string

func (*STT) Provider added in v0.4.2

func (s *STT) Provider() string

func (*STT) Recognize added in v0.4.2

func (s *STT) Recognize(ctx context.Context, frames []*model.AudioFrame, language string) (*stt.SpeechEvent, error)

func (*STT) Stream added in v0.4.2

func (s *STT) Stream(ctx context.Context, language string) (stt.RecognizeStream, error)

func (*STT) UpdateOptions added in v0.4.2

func (s *STT) UpdateOptions(opts ...STTOption)

type STTOption added in v0.4.2

type STTOption func(*STT)

func WithGladiaAudioFormat added in v0.0.15

func WithGladiaAudioFormat(sampleRate int, bitDepth int, channels int, encoding string) STTOption

func WithGladiaBaseURL added in v0.0.15

func WithGladiaBaseURL(baseURL string) STTOption

func WithGladiaCodeSwitching added in v0.0.15

func WithGladiaCodeSwitching(codeSwitching bool) STTOption

func WithGladiaCustomSpelling added in v0.0.15

func WithGladiaCustomSpelling(spelling map[string][]string) STTOption

func WithGladiaCustomVocabulary added in v0.0.15

func WithGladiaCustomVocabulary(vocabulary []any) STTOption

func WithGladiaEndpointing added in v0.0.15

func WithGladiaEndpointing(endpointing float64, maximumDurationWithoutEndpointing float64) STTOption

func WithGladiaEnergyFilter added in v0.1.0

func WithGladiaEnergyFilter(minSilence float64, rmsThreshold float64) STTOption

func WithGladiaInterimResults added in v0.0.15

func WithGladiaInterimResults(interimResults bool) STTOption

func WithGladiaLanguages added in v0.0.15

func WithGladiaLanguages(languages []string) STTOption

func WithGladiaModel added in v0.0.15

func WithGladiaModel(model string) STTOption

func WithGladiaPreProcessing added in v0.0.15

func WithGladiaPreProcessing(audioEnhancer bool, speechThreshold float64) STTOption

func WithGladiaRegion added in v0.0.15

func WithGladiaRegion(region string) STTOption

func WithGladiaTranslation added in v0.0.15

func WithGladiaTranslation(targetLanguages []string) STTOption

func WithGladiaTranslationConfig added in v0.0.15

func WithGladiaTranslationConfig(targetLanguages []string, model string, matchOriginalUtterances bool, lipsync bool, contextAdaptation bool, context string, informal bool) STTOption

Jump to

Keyboard shortcuts

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