speechmatics

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: 28 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type RealtimeModel added in v0.1.7

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

func NewRealtimeModel added in v0.1.7

func NewRealtimeModel(apiKey string, opts ...RealtimeOption) (*RealtimeModel, error)

func (*RealtimeModel) APIKey added in v0.1.7

func (m *RealtimeModel) APIKey() string

func (*RealtimeModel) BaseURL added in v0.1.7

func (m *RealtimeModel) BaseURL() string

func (*RealtimeModel) Capabilities added in v0.1.7

func (m *RealtimeModel) Capabilities() llm.RealtimeCapabilities

func (*RealtimeModel) Close added in v0.1.7

func (m *RealtimeModel) Close() error

func (*RealtimeModel) InputSampleRate added in v0.1.7

func (m *RealtimeModel) InputSampleRate() int

func (*RealtimeModel) Label added in v0.1.7

func (m *RealtimeModel) Label() string

func (*RealtimeModel) Model added in v0.1.7

func (m *RealtimeModel) Model() string

func (*RealtimeModel) OutputSampleRate added in v0.1.7

func (m *RealtimeModel) OutputSampleRate() int

func (*RealtimeModel) Provider added in v0.1.7

func (m *RealtimeModel) Provider() string

func (*RealtimeModel) Session added in v0.1.7

func (m *RealtimeModel) Session() (llm.RealtimeSession, error)

func (*RealtimeModel) Voice added in v0.1.7

func (m *RealtimeModel) Voice() string

type RealtimeOption added in v0.1.7

type RealtimeOption func(*RealtimeModel)

func WithRealtimeBaseURL added in v0.1.7

func WithRealtimeBaseURL(baseURL string) RealtimeOption

func WithRealtimeConnectOptions added in v0.1.7

func WithRealtimeConnectOptions(options llm.APIConnectOptions) RealtimeOption

func WithRealtimeInputSampleRate added in v0.1.7

func WithRealtimeInputSampleRate(sampleRate int) RealtimeOption

func WithRealtimeModel added in v0.1.7

func WithRealtimeModel(model string) RealtimeOption

func WithRealtimeOutputSampleRate added in v0.1.7

func WithRealtimeOutputSampleRate(sampleRate int) RealtimeOption

func WithRealtimeSystemPrompt added in v0.1.7

func WithRealtimeSystemPrompt(prompt string) RealtimeOption

func WithRealtimeVoice added in v0.1.7

func WithRealtimeVoice(voice string) RealtimeOption

func WithRealtimeWebsocketDialer added in v0.1.7

func WithRealtimeWebsocketDialer(dialer SpeechmaticsRealtimeWebsocketDialer) RealtimeOption

func WithRealtimeWebsocketDisabled added in v0.1.7

func WithRealtimeWebsocketDisabled() RealtimeOption

type STT added in v0.4.2

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

func NewSTT added in v0.4.2

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

func NewSpeechmaticsSTT deprecated

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

Deprecated: use NewSTT.

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) Finalize added in v0.4.2

func (s *STT) Finalize() error

func (*STT) GetSpeakerIDGroups added in v0.4.2

func (s *STT) GetSpeakerIDGroups(ctx context.Context) ([][]SpeechmaticsSpeakerIdentifier, error)

func (*STT) GetSpeakerIDs added in v0.4.2

func (s *STT) GetSpeakerIDs(ctx context.Context) ([]SpeechmaticsSpeakerIdentifier, 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) UpdateSpeakers added in v0.4.2

func (s *STT) UpdateSpeakers(focusSpeakers []string, ignoreSpeakers []string, focusMode string) error

type STTOption added in v0.4.2

type STTOption func(*STT)

func WithSpeechmaticsSTTAdaptiveTurnDetection added in v0.1.7

func WithSpeechmaticsSTTAdaptiveTurnDetection() STTOption

func WithSpeechmaticsSTTAdditionalVocab added in v0.0.15

func WithSpeechmaticsSTTAdditionalVocab(vocab []SpeechmaticsAdditionalVocabEntry) STTOption

func WithSpeechmaticsSTTAudioEncoding added in v0.0.15

func WithSpeechmaticsSTTAudioEncoding(encoding string) STTOption

func WithSpeechmaticsSTTBaseURL added in v0.0.15

func WithSpeechmaticsSTTBaseURL(baseURL string) STTOption

func WithSpeechmaticsSTTDomain added in v0.0.15

func WithSpeechmaticsSTTDomain(domain string) STTOption

func WithSpeechmaticsSTTEnableDiarization added in v0.0.15

func WithSpeechmaticsSTTEnableDiarization(enabled bool) STTOption

func WithSpeechmaticsSTTEndOfUtteranceMaxDelay added in v0.0.15

func WithSpeechmaticsSTTEndOfUtteranceMaxDelay(maxDelay float64) STTOption

func WithSpeechmaticsSTTEndOfUtteranceSilenceTrigger added in v0.0.15

func WithSpeechmaticsSTTEndOfUtteranceSilenceTrigger(trigger float64) STTOption

func WithSpeechmaticsSTTFixedTurnDetection added in v0.1.7

func WithSpeechmaticsSTTFixedTurnDetection() STTOption

func WithSpeechmaticsSTTIncludePartials added in v0.0.15

func WithSpeechmaticsSTTIncludePartials(enabled bool) STTOption

func WithSpeechmaticsSTTKnownSpeakers added in v0.0.15

func WithSpeechmaticsSTTKnownSpeakers(speakers []SpeechmaticsSpeakerIdentifier) STTOption

func WithSpeechmaticsSTTLanguage added in v0.0.15

func WithSpeechmaticsSTTLanguage(language string) STTOption

func WithSpeechmaticsSTTMaxDelay added in v0.0.15

func WithSpeechmaticsSTTMaxDelay(maxDelay float64) STTOption

func WithSpeechmaticsSTTMaxSpeakers added in v0.0.15

func WithSpeechmaticsSTTMaxSpeakers(maxSpeakers int) STTOption

func WithSpeechmaticsSTTOperatingPoint added in v0.0.15

func WithSpeechmaticsSTTOperatingPoint(operatingPoint string) STTOption

func WithSpeechmaticsSTTOutputLocale added in v0.0.15

func WithSpeechmaticsSTTOutputLocale(outputLocale string) STTOption

func WithSpeechmaticsSTTPreferCurrentSpeaker added in v0.0.15

func WithSpeechmaticsSTTPreferCurrentSpeaker(prefer bool) STTOption

func WithSpeechmaticsSTTPunctuationOverrides added in v0.0.15

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

func WithSpeechmaticsSTTSampleRate added in v0.0.15

func WithSpeechmaticsSTTSampleRate(sampleRate int) STTOption

func WithSpeechmaticsSTTSmartTurnDetection added in v0.1.7

func WithSpeechmaticsSTTSmartTurnDetection() STTOption

func WithSpeechmaticsSTTSpeakerFocus added in v0.0.15

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

func WithSpeechmaticsSTTSpeakerFormats added in v0.1.5

func WithSpeechmaticsSTTSpeakerFormats(activeFormat string, passiveFormat string) STTOption

func WithSpeechmaticsSTTSpeakerSensitivity added in v0.0.15

func WithSpeechmaticsSTTSpeakerSensitivity(sensitivity float64) STTOption

func WithSpeechmaticsSTTVAD added in v0.1.7

func WithSpeechmaticsSTTVAD(detector corevad.VAD) STTOption

type SpeechmaticsAdditionalVocabEntry added in v0.0.15

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

type SpeechmaticsRealtimeWebsocketDialer added in v0.1.7

type SpeechmaticsRealtimeWebsocketDialer func(string, http.Header) (*websocket.Conn, *http.Response, error)

type SpeechmaticsSTT deprecated

type SpeechmaticsSTT = STT

Deprecated: use STT.

type SpeechmaticsSTTOption deprecated added in v0.0.15

type SpeechmaticsSTTOption = STTOption

Deprecated: use STTOption.

type SpeechmaticsSpeakerIdentifier added in v0.0.15

type SpeechmaticsSpeakerIdentifier struct {
	Label              string   `json:"label"`
	SpeakerID          string   `json:"speaker_id,omitempty"`
	SpeakerIdentifiers []string `json:"speaker_identifiers,omitempty"`
}

type SpeechmaticsTTS deprecated

type SpeechmaticsTTS = TTS

Deprecated: use TTS.

type SpeechmaticsTTSOption deprecated added in v0.0.15

type SpeechmaticsTTSOption = TTSOption

Deprecated: use TTSOption.

type TTS added in v0.4.2

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

func NewSpeechmaticsTTS deprecated

func NewSpeechmaticsTTS(apiKey string, opts ...TTSOption) *TTS

Deprecated: use NewTTS.

func NewTTS added in v0.4.2

func NewTTS(apiKey string, opts ...TTSOption) *TTS

func (*TTS) Capabilities added in v0.4.2

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

func (*TTS) Close added in v0.4.2

func (t *TTS) Close() error

func (*TTS) Label added in v0.4.2

func (t *TTS) Label() string

func (*TTS) Model added in v0.4.2

func (t *TTS) Model() string

func (*TTS) NumChannels added in v0.4.2

func (t *TTS) NumChannels() int

func (*TTS) Provider added in v0.4.2

func (t *TTS) Provider() string

func (*TTS) SampleRate added in v0.4.2

func (t *TTS) SampleRate() int

func (*TTS) Stream added in v0.4.2

func (t *TTS) Stream(ctx context.Context) (tts.SynthesizeStream, error)

func (*TTS) Synthesize added in v0.4.2

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

func (*TTS) UpdateOptions added in v0.4.2

func (t *TTS) UpdateOptions(opts ...TTSOption)

type TTSOption added in v0.4.2

type TTSOption func(*TTS)

func WithSpeechmaticsTTSBaseURL added in v0.0.15

func WithSpeechmaticsTTSBaseURL(baseURL string) TTSOption

func WithSpeechmaticsTTSSampleRate added in v0.0.15

func WithSpeechmaticsTTSSampleRate(sampleRate int) TTSOption

func WithSpeechmaticsTTSVoice added in v0.0.15

func WithSpeechmaticsTTSVoice(voice string) TTSOption

Jump to

Keyboard shortcuts

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