Documentation
¶
Index ¶
- Constants
- type SpeechmaticsAdditionalVocabEntry
- type SpeechmaticsSTT
- func (s *SpeechmaticsSTT) Capabilities() stt.STTCapabilities
- 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)
- type 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 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 WithSpeechmaticsSTTSpeakerFocus(focusSpeakers []string, ignoreSpeakers []string, focusMode string) SpeechmaticsSTTOption
- func WithSpeechmaticsSTTSpeakerSensitivity(sensitivity float64) SpeechmaticsSTTOption
- type SpeechmaticsSpeakerIdentifier
- type SpeechmaticsTTS
- func (t *SpeechmaticsTTS) Capabilities() tts.TTSCapabilities
- 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 = "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 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 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 (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.