gladia

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type GladiaSTT

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

func NewGladiaSTT

func NewGladiaSTT(apiKey string, opts ...GladiaSTTOption) *GladiaSTT

func (*GladiaSTT) Capabilities

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

func (*GladiaSTT) Label

func (s *GladiaSTT) Label() string

func (*GladiaSTT) Model added in v0.0.18

func (s *GladiaSTT) Model() string

func (*GladiaSTT) Provider added in v0.0.18

func (s *GladiaSTT) Provider() string

func (*GladiaSTT) Recognize

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

func (*GladiaSTT) Stream

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

type GladiaSTTOption added in v0.0.15

type GladiaSTTOption func(*GladiaSTT)

func WithGladiaAudioFormat added in v0.0.15

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

func WithGladiaBaseURL added in v0.0.15

func WithGladiaBaseURL(baseURL string) GladiaSTTOption

func WithGladiaCodeSwitching added in v0.0.15

func WithGladiaCodeSwitching(codeSwitching bool) GladiaSTTOption

func WithGladiaCustomSpelling added in v0.0.15

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

func WithGladiaCustomVocabulary added in v0.0.15

func WithGladiaCustomVocabulary(vocabulary []any) GladiaSTTOption

func WithGladiaEndpointing added in v0.0.15

func WithGladiaEndpointing(endpointing float64, maximumDurationWithoutEndpointing float64) GladiaSTTOption

func WithGladiaInterimResults added in v0.0.15

func WithGladiaInterimResults(interimResults bool) GladiaSTTOption

func WithGladiaLanguages added in v0.0.15

func WithGladiaLanguages(languages []string) GladiaSTTOption

func WithGladiaModel added in v0.0.15

func WithGladiaModel(model string) GladiaSTTOption

func WithGladiaPreProcessing added in v0.0.15

func WithGladiaPreProcessing(audioEnhancer bool, speechThreshold float64) GladiaSTTOption

func WithGladiaRegion added in v0.0.15

func WithGladiaRegion(region string) GladiaSTTOption

func WithGladiaTranslation added in v0.0.15

func WithGladiaTranslation(targetLanguages []string) GladiaSTTOption

func WithGladiaTranslationConfig added in v0.0.15

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

Jump to

Keyboard shortcuts

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