Documentation
¶
Index ¶
- Constants
- type RealtimeModel
- func (m *RealtimeModel) APIKey() string
- func (m *RealtimeModel) BaseURL() string
- func (m *RealtimeModel) Capabilities() llm.RealtimeCapabilities
- func (m *RealtimeModel) Close() error
- func (m *RealtimeModel) InputSampleRate() int
- func (m *RealtimeModel) Label() string
- func (m *RealtimeModel) Model() string
- func (m *RealtimeModel) OutputSampleRate() int
- func (m *RealtimeModel) Provider() string
- func (m *RealtimeModel) Session() (llm.RealtimeSession, error)
- func (m *RealtimeModel) Voice() string
- type RealtimeOption
- func WithRealtimeBaseURL(baseURL string) RealtimeOption
- func WithRealtimeConnectOptions(options llm.APIConnectOptions) RealtimeOption
- func WithRealtimeInputSampleRate(sampleRate int) RealtimeOption
- func WithRealtimeModel(model string) RealtimeOption
- func WithRealtimeOutputSampleRate(sampleRate int) RealtimeOption
- func WithRealtimeSystemPrompt(prompt string) RealtimeOption
- func WithRealtimeVoice(voice string) RealtimeOption
- func WithRealtimeWebsocketDialer(dialer SpeechmaticsRealtimeWebsocketDialer) RealtimeOption
- func WithRealtimeWebsocketDisabled() RealtimeOption
- type STT
- func (s *STT) Capabilities() stt.STTCapabilities
- func (s *STT) Close() error
- func (s *STT) Finalize() error
- func (s *STT) GetSpeakerIDGroups(ctx context.Context) ([][]SpeechmaticsSpeakerIdentifier, error)
- func (s *STT) GetSpeakerIDs(ctx context.Context) ([]SpeechmaticsSpeakerIdentifier, 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) UpdateSpeakers(focusSpeakers []string, ignoreSpeakers []string, focusMode string) error
- type STTOption
- func WithSpeechmaticsSTTAdaptiveTurnDetection() STTOption
- func WithSpeechmaticsSTTAdditionalVocab(vocab []SpeechmaticsAdditionalVocabEntry) STTOption
- func WithSpeechmaticsSTTAudioEncoding(encoding string) STTOption
- func WithSpeechmaticsSTTBaseURL(baseURL string) STTOption
- func WithSpeechmaticsSTTDomain(domain string) STTOption
- func WithSpeechmaticsSTTEnableDiarization(enabled bool) STTOption
- func WithSpeechmaticsSTTEndOfUtteranceMaxDelay(maxDelay float64) STTOption
- func WithSpeechmaticsSTTEndOfUtteranceSilenceTrigger(trigger float64) STTOption
- func WithSpeechmaticsSTTFixedTurnDetection() STTOption
- func WithSpeechmaticsSTTIncludePartials(enabled bool) STTOption
- func WithSpeechmaticsSTTKnownSpeakers(speakers []SpeechmaticsSpeakerIdentifier) STTOption
- func WithSpeechmaticsSTTLanguage(language string) STTOption
- func WithSpeechmaticsSTTMaxDelay(maxDelay float64) STTOption
- func WithSpeechmaticsSTTMaxSpeakers(maxSpeakers int) STTOption
- func WithSpeechmaticsSTTOperatingPoint(operatingPoint string) STTOption
- func WithSpeechmaticsSTTOutputLocale(outputLocale string) STTOption
- func WithSpeechmaticsSTTPreferCurrentSpeaker(prefer bool) STTOption
- func WithSpeechmaticsSTTPunctuationOverrides(overrides map[string]interface{}) STTOption
- func WithSpeechmaticsSTTSampleRate(sampleRate int) STTOption
- func WithSpeechmaticsSTTSmartTurnDetection() STTOption
- func WithSpeechmaticsSTTSpeakerFocus(focusSpeakers []string, ignoreSpeakers []string, focusMode string) STTOption
- func WithSpeechmaticsSTTSpeakerFormats(activeFormat string, passiveFormat string) STTOption
- func WithSpeechmaticsSTTSpeakerSensitivity(sensitivity float64) STTOption
- func WithSpeechmaticsSTTVAD(detector corevad.VAD) STTOption
- type SpeechmaticsAdditionalVocabEntry
- type SpeechmaticsRealtimeWebsocketDialer
- type SpeechmaticsSTTdeprecated
- type SpeechmaticsSTTOptiondeprecated
- type SpeechmaticsSpeakerIdentifier
- type SpeechmaticsTTSdeprecated
- type SpeechmaticsTTSOptiondeprecated
- type TTS
- func (t *TTS) Capabilities() tts.TTSCapabilities
- func (t *TTS) Close() error
- func (t *TTS) Label() string
- func (t *TTS) Model() string
- func (t *TTS) NumChannels() int
- func (t *TTS) Provider() string
- func (t *TTS) SampleRate() int
- func (t *TTS) Stream(ctx context.Context) (tts.SynthesizeStream, error)
- func (t *TTS) Synthesize(ctx context.Context, text string) (tts.ChunkedStream, error)
- func (t *TTS) UpdateOptions(opts ...TTSOption)
- type TTSOption
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 NewSpeechmaticsSTT
deprecated
func (*STT) Capabilities ¶ added in v0.4.2
func (s *STT) Capabilities() stt.STTCapabilities
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 (*STT) Recognize ¶ added in v0.4.2
func (s *STT) Recognize(ctx context.Context, frames []*model.AudioFrame, language string) (*stt.SpeechEvent, 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 WithSpeechmaticsSTTBaseURL ¶ added in v0.0.15
func WithSpeechmaticsSTTDomain ¶ added in v0.0.15
func WithSpeechmaticsSTTEnableDiarization ¶ added in v0.0.15
func WithSpeechmaticsSTTEndOfUtteranceMaxDelay ¶ added in v0.0.15
func WithSpeechmaticsSTTEndOfUtteranceSilenceTrigger ¶ added in v0.0.15
func WithSpeechmaticsSTTFixedTurnDetection ¶ added in v0.1.7
func WithSpeechmaticsSTTFixedTurnDetection() STTOption
func WithSpeechmaticsSTTIncludePartials ¶ added in v0.0.15
func WithSpeechmaticsSTTKnownSpeakers ¶ added in v0.0.15
func WithSpeechmaticsSTTKnownSpeakers(speakers []SpeechmaticsSpeakerIdentifier) STTOption
func WithSpeechmaticsSTTLanguage ¶ added in v0.0.15
func WithSpeechmaticsSTTMaxDelay ¶ added in v0.0.15
func WithSpeechmaticsSTTMaxSpeakers ¶ added in v0.0.15
func WithSpeechmaticsSTTOperatingPoint ¶ added in v0.0.15
func WithSpeechmaticsSTTOutputLocale ¶ added in v0.0.15
func WithSpeechmaticsSTTPreferCurrentSpeaker ¶ added in v0.0.15
func WithSpeechmaticsSTTPunctuationOverrides ¶ added in v0.0.15
func WithSpeechmaticsSTTSampleRate ¶ added in v0.0.15
func WithSpeechmaticsSTTSmartTurnDetection ¶ added in v0.1.7
func WithSpeechmaticsSTTSmartTurnDetection() STTOption
func WithSpeechmaticsSTTSpeakerFocus ¶ added in v0.0.15
func WithSpeechmaticsSTTSpeakerFormats ¶ added in v0.1.5
func WithSpeechmaticsSTTSpeakerSensitivity ¶ added in v0.0.15
func WithSpeechmaticsSTTVAD ¶ added in v0.1.7
type SpeechmaticsAdditionalVocabEntry ¶ added in v0.0.15
type SpeechmaticsRealtimeWebsocketDialer ¶ added in v0.1.7
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 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 (*TTS) Capabilities ¶ added in v0.4.2
func (t *TTS) Capabilities() tts.TTSCapabilities
func (*TTS) NumChannels ¶ added in v0.4.2
func (*TTS) SampleRate ¶ added in v0.4.2
func (*TTS) Synthesize ¶ added in v0.4.2
func (*TTS) UpdateOptions ¶ added in v0.4.2
type TTSOption ¶ added in v0.4.2
type TTSOption func(*TTS)
func WithSpeechmaticsTTSBaseURL ¶ added in v0.0.15
func WithSpeechmaticsTTSSampleRate ¶ added in v0.0.15
func WithSpeechmaticsTTSVoice ¶ added in v0.0.15
Click to show internal directories.
Click to hide internal directories.