speechmatics

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.speechmatics"
	PluginVersion = "1.5.15"
	PluginPackage = "rtp-agent.plugins.speechmatics"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SpeechmaticsAdditionalVocabEntry added in v0.0.15

type SpeechmaticsAdditionalVocabEntry struct {
	Content    string   `json:"content"`
	SoundsLike []string `json:"sounds_like,omitempty"`
}

type SpeechmaticsSTT

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

func NewSpeechmaticsSTT

func NewSpeechmaticsSTT(apiKey string, opts ...SpeechmaticsSTTOption) *SpeechmaticsSTT

func (*SpeechmaticsSTT) Capabilities

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

func (*SpeechmaticsSTT) Label

func (s *SpeechmaticsSTT) Label() string

func (*SpeechmaticsSTT) Model added in v0.0.18

func (s *SpeechmaticsSTT) Model() string

func (*SpeechmaticsSTT) Provider added in v0.0.18

func (s *SpeechmaticsSTT) Provider() string

func (*SpeechmaticsSTT) Recognize

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

func (*SpeechmaticsSTT) Stream

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

type SpeechmaticsSTTOption added in v0.0.15

type SpeechmaticsSTTOption func(*SpeechmaticsSTT)

func WithSpeechmaticsSTTAdditionalVocab added in v0.0.15

func WithSpeechmaticsSTTAdditionalVocab(vocab []SpeechmaticsAdditionalVocabEntry) SpeechmaticsSTTOption

func WithSpeechmaticsSTTAudioEncoding added in v0.0.15

func WithSpeechmaticsSTTAudioEncoding(encoding string) SpeechmaticsSTTOption

func WithSpeechmaticsSTTBaseURL added in v0.0.15

func WithSpeechmaticsSTTBaseURL(baseURL string) SpeechmaticsSTTOption

func WithSpeechmaticsSTTDomain added in v0.0.15

func WithSpeechmaticsSTTDomain(domain string) SpeechmaticsSTTOption

func WithSpeechmaticsSTTEnableDiarization added in v0.0.15

func WithSpeechmaticsSTTEnableDiarization(enabled bool) SpeechmaticsSTTOption

func WithSpeechmaticsSTTEndOfUtteranceMaxDelay added in v0.0.15

func WithSpeechmaticsSTTEndOfUtteranceMaxDelay(maxDelay float64) SpeechmaticsSTTOption

func WithSpeechmaticsSTTEndOfUtteranceSilenceTrigger added in v0.0.15

func WithSpeechmaticsSTTEndOfUtteranceSilenceTrigger(trigger float64) SpeechmaticsSTTOption

func WithSpeechmaticsSTTIncludePartials added in v0.0.15

func WithSpeechmaticsSTTIncludePartials(enabled bool) SpeechmaticsSTTOption

func WithSpeechmaticsSTTKnownSpeakers added in v0.0.15

func WithSpeechmaticsSTTKnownSpeakers(speakers []SpeechmaticsSpeakerIdentifier) SpeechmaticsSTTOption

func WithSpeechmaticsSTTLanguage added in v0.0.15

func WithSpeechmaticsSTTLanguage(language string) SpeechmaticsSTTOption

func WithSpeechmaticsSTTMaxDelay added in v0.0.15

func WithSpeechmaticsSTTMaxDelay(maxDelay float64) SpeechmaticsSTTOption

func WithSpeechmaticsSTTMaxSpeakers added in v0.0.15

func WithSpeechmaticsSTTMaxSpeakers(maxSpeakers int) SpeechmaticsSTTOption

func WithSpeechmaticsSTTOperatingPoint added in v0.0.15

func WithSpeechmaticsSTTOperatingPoint(operatingPoint string) SpeechmaticsSTTOption

func WithSpeechmaticsSTTOutputLocale added in v0.0.15

func WithSpeechmaticsSTTOutputLocale(outputLocale string) SpeechmaticsSTTOption

func WithSpeechmaticsSTTPreferCurrentSpeaker added in v0.0.15

func WithSpeechmaticsSTTPreferCurrentSpeaker(prefer bool) SpeechmaticsSTTOption

func WithSpeechmaticsSTTPunctuationOverrides added in v0.0.15

func WithSpeechmaticsSTTPunctuationOverrides(overrides map[string]interface{}) SpeechmaticsSTTOption

func WithSpeechmaticsSTTSampleRate added in v0.0.15

func WithSpeechmaticsSTTSampleRate(sampleRate int) SpeechmaticsSTTOption

func WithSpeechmaticsSTTSpeakerFocus added in v0.0.15

func WithSpeechmaticsSTTSpeakerFocus(focusSpeakers []string, ignoreSpeakers []string, focusMode string) SpeechmaticsSTTOption

func WithSpeechmaticsSTTSpeakerSensitivity added in v0.0.15

func WithSpeechmaticsSTTSpeakerSensitivity(sensitivity float64) SpeechmaticsSTTOption

type SpeechmaticsSpeakerIdentifier added in v0.0.15

type SpeechmaticsSpeakerIdentifier struct {
	Label     string `json:"label"`
	SpeakerID string `json:"speaker_id"`
}

type SpeechmaticsTTS

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

func NewSpeechmaticsTTS

func NewSpeechmaticsTTS(apiKey string, opts ...SpeechmaticsTTSOption) *SpeechmaticsTTS

func (*SpeechmaticsTTS) Capabilities

func (t *SpeechmaticsTTS) Capabilities() tts.TTSCapabilities

func (*SpeechmaticsTTS) Label

func (t *SpeechmaticsTTS) Label() string

func (*SpeechmaticsTTS) Model added in v0.0.18

func (t *SpeechmaticsTTS) Model() string

func (*SpeechmaticsTTS) NumChannels

func (t *SpeechmaticsTTS) NumChannels() int

func (*SpeechmaticsTTS) Provider added in v0.0.18

func (t *SpeechmaticsTTS) Provider() string

func (*SpeechmaticsTTS) SampleRate

func (t *SpeechmaticsTTS) SampleRate() int

func (*SpeechmaticsTTS) Stream

func (*SpeechmaticsTTS) Synthesize

func (t *SpeechmaticsTTS) Synthesize(ctx context.Context, text string) (tts.ChunkedStream, error)

func (*SpeechmaticsTTS) UpdateOptions added in v0.0.15

func (t *SpeechmaticsTTS) UpdateOptions(opts ...SpeechmaticsTTSOption)

type SpeechmaticsTTSOption added in v0.0.15

type SpeechmaticsTTSOption func(*SpeechmaticsTTS)

func WithSpeechmaticsTTSBaseURL added in v0.0.15

func WithSpeechmaticsTTSBaseURL(baseURL string) SpeechmaticsTTSOption

func WithSpeechmaticsTTSSampleRate added in v0.0.15

func WithSpeechmaticsTTSSampleRate(sampleRate int) SpeechmaticsTTSOption

func WithSpeechmaticsTTSVoice added in v0.0.15

func WithSpeechmaticsTTSVoice(voice string) SpeechmaticsTTSOption

Jump to

Keyboard shortcuts

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