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 SpeechmaticsAdditionalVocabEntry
- type SpeechmaticsRealtimeWebsocketDialer
- type SpeechmaticsSTT
- func (s *SpeechmaticsSTT) Capabilities() stt.STTCapabilities
- func (s *SpeechmaticsSTT) Close() error
- func (s *SpeechmaticsSTT) Finalize() error
- func (s *SpeechmaticsSTT) GetSpeakerIDGroups(ctx context.Context) ([][]SpeechmaticsSpeakerIdentifier, error)
- func (s *SpeechmaticsSTT) GetSpeakerIDs(ctx context.Context) ([]SpeechmaticsSpeakerIdentifier, error)
- func (s *SpeechmaticsSTT) InputSampleRate() uint32
- func (s *SpeechmaticsSTT) Label() string
- func (s *SpeechmaticsSTT) Model() string
- func (s *SpeechmaticsSTT) Provider() string
- func (s *SpeechmaticsSTT) Recognize(ctx context.Context, frames []*model.AudioFrame, language string) (*stt.SpeechEvent, error)
- func (s *SpeechmaticsSTT) Stream(ctx context.Context, language string) (stt.RecognizeStream, error)
- func (s *SpeechmaticsSTT) UpdateSpeakers(focusSpeakers []string, ignoreSpeakers []string, focusMode string) error
- type SpeechmaticsSTTOption
- func WithSpeechmaticsSTTAdaptiveTurnDetection() SpeechmaticsSTTOption
- func WithSpeechmaticsSTTAdditionalVocab(vocab []SpeechmaticsAdditionalVocabEntry) SpeechmaticsSTTOption
- func WithSpeechmaticsSTTAudioEncoding(encoding string) SpeechmaticsSTTOption
- func WithSpeechmaticsSTTBaseURL(baseURL string) SpeechmaticsSTTOption
- func WithSpeechmaticsSTTDomain(domain string) SpeechmaticsSTTOption
- func WithSpeechmaticsSTTEnableDiarization(enabled bool) SpeechmaticsSTTOption
- func WithSpeechmaticsSTTEndOfUtteranceMaxDelay(maxDelay float64) SpeechmaticsSTTOption
- func WithSpeechmaticsSTTEndOfUtteranceSilenceTrigger(trigger float64) SpeechmaticsSTTOption
- func WithSpeechmaticsSTTFixedTurnDetection() SpeechmaticsSTTOption
- func WithSpeechmaticsSTTIncludePartials(enabled bool) SpeechmaticsSTTOption
- func WithSpeechmaticsSTTKnownSpeakers(speakers []SpeechmaticsSpeakerIdentifier) SpeechmaticsSTTOption
- func WithSpeechmaticsSTTLanguage(language string) SpeechmaticsSTTOption
- func WithSpeechmaticsSTTMaxDelay(maxDelay float64) SpeechmaticsSTTOption
- func WithSpeechmaticsSTTMaxSpeakers(maxSpeakers int) SpeechmaticsSTTOption
- func WithSpeechmaticsSTTOperatingPoint(operatingPoint string) SpeechmaticsSTTOption
- func WithSpeechmaticsSTTOutputLocale(outputLocale string) SpeechmaticsSTTOption
- func WithSpeechmaticsSTTPreferCurrentSpeaker(prefer bool) SpeechmaticsSTTOption
- func WithSpeechmaticsSTTPunctuationOverrides(overrides map[string]interface{}) SpeechmaticsSTTOption
- func WithSpeechmaticsSTTSampleRate(sampleRate int) SpeechmaticsSTTOption
- func WithSpeechmaticsSTTSmartTurnDetection() SpeechmaticsSTTOption
- func WithSpeechmaticsSTTSpeakerFocus(focusSpeakers []string, ignoreSpeakers []string, focusMode string) SpeechmaticsSTTOption
- func WithSpeechmaticsSTTSpeakerFormats(activeFormat string, passiveFormat string) SpeechmaticsSTTOption
- func WithSpeechmaticsSTTSpeakerSensitivity(sensitivity float64) SpeechmaticsSTTOption
- func WithSpeechmaticsSTTVAD(detector corevad.VAD) SpeechmaticsSTTOption
- type SpeechmaticsSpeakerIdentifier
- type SpeechmaticsTTS
- func (t *SpeechmaticsTTS) Capabilities() tts.TTSCapabilities
- func (t *SpeechmaticsTTS) Close() error
- func (t *SpeechmaticsTTS) Label() string
- func (t *SpeechmaticsTTS) Model() string
- func (t *SpeechmaticsTTS) NumChannels() int
- func (t *SpeechmaticsTTS) Provider() string
- func (t *SpeechmaticsTTS) SampleRate() int
- func (t *SpeechmaticsTTS) Stream(ctx context.Context) (tts.SynthesizeStream, error)
- func (t *SpeechmaticsTTS) Synthesize(ctx context.Context, text string) (tts.ChunkedStream, error)
- func (t *SpeechmaticsTTS) UpdateOptions(opts ...SpeechmaticsTTSOption)
- type SpeechmaticsTTSOption
Constants ¶
View Source
const ( PluginTitle = "rtp-agent.plugins.speechmatics" PluginVersion = "v0.4.1" 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 SpeechmaticsAdditionalVocabEntry ¶ added in v0.0.15
type SpeechmaticsRealtimeWebsocketDialer ¶ added in v0.1.7
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) Close ¶ added in v0.1.0
func (s *SpeechmaticsSTT) Close() error
func (*SpeechmaticsSTT) Finalize ¶ added in v0.1.7
func (s *SpeechmaticsSTT) Finalize() error
func (*SpeechmaticsSTT) GetSpeakerIDGroups ¶ added in v0.1.7
func (s *SpeechmaticsSTT) GetSpeakerIDGroups(ctx context.Context) ([][]SpeechmaticsSpeakerIdentifier, error)
func (*SpeechmaticsSTT) GetSpeakerIDs ¶ added in v0.1.7
func (s *SpeechmaticsSTT) GetSpeakerIDs(ctx context.Context) ([]SpeechmaticsSpeakerIdentifier, error)
func (*SpeechmaticsSTT) InputSampleRate ¶ added in v0.1.0
func (s *SpeechmaticsSTT) InputSampleRate() uint32
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)
func (*SpeechmaticsSTT) UpdateSpeakers ¶ added in v0.1.7
func (s *SpeechmaticsSTT) UpdateSpeakers(focusSpeakers []string, ignoreSpeakers []string, focusMode string) error
type SpeechmaticsSTTOption ¶ added in v0.0.15
type SpeechmaticsSTTOption func(*SpeechmaticsSTT)
func WithSpeechmaticsSTTAdaptiveTurnDetection ¶ added in v0.1.7
func WithSpeechmaticsSTTAdaptiveTurnDetection() SpeechmaticsSTTOption
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 WithSpeechmaticsSTTFixedTurnDetection ¶ added in v0.1.7
func WithSpeechmaticsSTTFixedTurnDetection() 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 WithSpeechmaticsSTTSmartTurnDetection ¶ added in v0.1.7
func WithSpeechmaticsSTTSmartTurnDetection() SpeechmaticsSTTOption
func WithSpeechmaticsSTTSpeakerFocus ¶ added in v0.0.15
func WithSpeechmaticsSTTSpeakerFocus(focusSpeakers []string, ignoreSpeakers []string, focusMode string) SpeechmaticsSTTOption
func WithSpeechmaticsSTTSpeakerFormats ¶ added in v0.1.5
func WithSpeechmaticsSTTSpeakerFormats(activeFormat string, passiveFormat string) SpeechmaticsSTTOption
func WithSpeechmaticsSTTSpeakerSensitivity ¶ added in v0.0.15
func WithSpeechmaticsSTTSpeakerSensitivity(sensitivity float64) SpeechmaticsSTTOption
func WithSpeechmaticsSTTVAD ¶ added in v0.1.7
func WithSpeechmaticsSTTVAD(detector corevad.VAD) SpeechmaticsSTTOption
type SpeechmaticsSpeakerIdentifier ¶ added in v0.0.15
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) Close ¶ added in v0.1.7
func (t *SpeechmaticsTTS) Close() error
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 (t *SpeechmaticsTTS) Stream(ctx context.Context) (tts.SynthesizeStream, error)
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
Click to show internal directories.
Click to hide internal directories.