Documentation
¶
Index ¶
- Constants
- type GladiaSTTdeprecated
- type GladiaSTTOptiondeprecated
- type STT
- func (s *STT) Capabilities() stt.STTCapabilities
- func (s *STT) Close() error
- func (s *STT) InputSampleRate() uint32
- func (s *STT) Label() string
- func (s *STT) Model() string
- func (s *STT) Provider() string
- func (s *STT) Recognize(ctx context.Context, frames []*model.AudioFrame, language string) (*stt.SpeechEvent, error)
- func (s *STT) Stream(ctx context.Context, language string) (stt.RecognizeStream, error)
- func (s *STT) UpdateOptions(opts ...STTOption)
- type STTOption
- func WithGladiaAudioFormat(sampleRate int, bitDepth int, channels int, encoding string) STTOption
- func WithGladiaBaseURL(baseURL string) STTOption
- func WithGladiaCodeSwitching(codeSwitching bool) STTOption
- func WithGladiaCustomSpelling(spelling map[string][]string) STTOption
- func WithGladiaCustomVocabulary(vocabulary []any) STTOption
- func WithGladiaEndpointing(endpointing float64, maximumDurationWithoutEndpointing float64) STTOption
- func WithGladiaEnergyFilter(minSilence float64, rmsThreshold float64) STTOption
- func WithGladiaInterimResults(interimResults bool) STTOption
- func WithGladiaLanguages(languages []string) STTOption
- func WithGladiaModel(model string) STTOption
- func WithGladiaPreProcessing(audioEnhancer bool, speechThreshold float64) STTOption
- func WithGladiaRegion(region string) STTOption
- func WithGladiaTranslation(targetLanguages []string) STTOption
- func WithGladiaTranslationConfig(targetLanguages []string, model string, matchOriginalUtterances bool, ...) STTOption
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 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 (*STT) Capabilities ¶ added in v0.4.2
func (s *STT) Capabilities() stt.STTCapabilities
func (*STT) InputSampleRate ¶ added in v0.4.2
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) UpdateOptions ¶ added in v0.4.2
type STTOption ¶ added in v0.4.2
type STTOption func(*STT)
func WithGladiaAudioFormat ¶ added in v0.0.15
func WithGladiaBaseURL ¶ added in v0.0.15
func WithGladiaCodeSwitching ¶ added in v0.0.15
func WithGladiaCustomSpelling ¶ added in v0.0.15
func WithGladiaCustomVocabulary ¶ added in v0.0.15
func WithGladiaEndpointing ¶ added in v0.0.15
func WithGladiaEnergyFilter ¶ added in v0.1.0
func WithGladiaInterimResults ¶ added in v0.0.15
func WithGladiaLanguages ¶ added in v0.0.15
func WithGladiaModel ¶ added in v0.0.15
func WithGladiaPreProcessing ¶ added in v0.0.15
func WithGladiaRegion ¶ added in v0.0.15
func WithGladiaTranslation ¶ added in v0.0.15
Click to show internal directories.
Click to hide internal directories.