Documentation
¶
Index ¶
- Constants
- type AssemblyAISTT
- func (s *AssemblyAISTT) Capabilities() stt.STTCapabilities
- func (s *AssemblyAISTT) Label() string
- func (s *AssemblyAISTT) Model() string
- func (s *AssemblyAISTT) Provider() string
- func (s *AssemblyAISTT) Recognize(ctx context.Context, frames []*model.AudioFrame, language string) (*stt.SpeechEvent, error)
- func (s *AssemblyAISTT) Stream(ctx context.Context, language string) (stt.RecognizeStream, error)
- type AssemblyAISTTOption
- func WithAssemblyAISTTBaseURL(baseURL string) AssemblyAISTTOption
- func WithAssemblyAISTTContinuousPartials(enabled bool) AssemblyAISTTOption
- func WithAssemblyAISTTDomain(domain string) AssemblyAISTTOption
- func WithAssemblyAISTTEndOfTurnConfidenceThreshold(threshold float64) AssemblyAISTTOption
- func WithAssemblyAISTTFormatTurns(enabled bool) AssemblyAISTTOption
- func WithAssemblyAISTTInterruptionDelay(ms int) AssemblyAISTTOption
- func WithAssemblyAISTTKeytermsPrompt(keyterms []string) AssemblyAISTTOption
- func WithAssemblyAISTTLanguageDetection(enabled bool) AssemblyAISTTOption
- func WithAssemblyAISTTMaxSpeakers(maxSpeakers int) AssemblyAISTTOption
- func WithAssemblyAISTTMaxTurnSilence(ms int) AssemblyAISTTOption
- func WithAssemblyAISTTMinTurnSilence(ms int) AssemblyAISTTOption
- func WithAssemblyAISTTModel(model string) AssemblyAISTTOption
- func WithAssemblyAISTTPrompt(prompt string) AssemblyAISTTOption
- func WithAssemblyAISTTSampleRate(sampleRate int) AssemblyAISTTOption
- func WithAssemblyAISTTSpeakerLabels(enabled bool) AssemblyAISTTOption
- func WithAssemblyAISTTVADThreshold(threshold float64) AssemblyAISTTOption
Constants ¶
View Source
const ( PluginTitle = "rtp-agent.plugins.assemblyai" PluginVersion = "1.5.15" PluginPackage = "rtp-agent.plugins.assemblyai" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssemblyAISTT ¶
type AssemblyAISTT struct {
// contains filtered or unexported fields
}
func NewAssemblyAISTT ¶
func NewAssemblyAISTT(apiKey string, opts ...AssemblyAISTTOption) *AssemblyAISTT
func (*AssemblyAISTT) Capabilities ¶
func (s *AssemblyAISTT) Capabilities() stt.STTCapabilities
func (*AssemblyAISTT) Label ¶
func (s *AssemblyAISTT) Label() string
func (*AssemblyAISTT) Model ¶ added in v0.0.18
func (s *AssemblyAISTT) Model() string
func (*AssemblyAISTT) Provider ¶ added in v0.0.18
func (s *AssemblyAISTT) Provider() string
func (*AssemblyAISTT) Recognize ¶
func (s *AssemblyAISTT) Recognize(ctx context.Context, frames []*model.AudioFrame, language string) (*stt.SpeechEvent, error)
func (*AssemblyAISTT) Stream ¶
func (s *AssemblyAISTT) Stream(ctx context.Context, language string) (stt.RecognizeStream, error)
type AssemblyAISTTOption ¶ added in v0.0.15
type AssemblyAISTTOption func(*AssemblyAISTT)
func WithAssemblyAISTTBaseURL ¶ added in v0.0.15
func WithAssemblyAISTTBaseURL(baseURL string) AssemblyAISTTOption
func WithAssemblyAISTTContinuousPartials ¶ added in v0.0.15
func WithAssemblyAISTTContinuousPartials(enabled bool) AssemblyAISTTOption
func WithAssemblyAISTTDomain ¶ added in v0.0.15
func WithAssemblyAISTTDomain(domain string) AssemblyAISTTOption
func WithAssemblyAISTTEndOfTurnConfidenceThreshold ¶ added in v0.0.15
func WithAssemblyAISTTEndOfTurnConfidenceThreshold(threshold float64) AssemblyAISTTOption
func WithAssemblyAISTTFormatTurns ¶ added in v0.0.15
func WithAssemblyAISTTFormatTurns(enabled bool) AssemblyAISTTOption
func WithAssemblyAISTTInterruptionDelay ¶ added in v0.0.15
func WithAssemblyAISTTInterruptionDelay(ms int) AssemblyAISTTOption
func WithAssemblyAISTTKeytermsPrompt ¶ added in v0.0.15
func WithAssemblyAISTTKeytermsPrompt(keyterms []string) AssemblyAISTTOption
func WithAssemblyAISTTLanguageDetection ¶ added in v0.0.15
func WithAssemblyAISTTLanguageDetection(enabled bool) AssemblyAISTTOption
func WithAssemblyAISTTMaxSpeakers ¶ added in v0.0.15
func WithAssemblyAISTTMaxSpeakers(maxSpeakers int) AssemblyAISTTOption
func WithAssemblyAISTTMaxTurnSilence ¶ added in v0.0.15
func WithAssemblyAISTTMaxTurnSilence(ms int) AssemblyAISTTOption
func WithAssemblyAISTTMinTurnSilence ¶ added in v0.0.15
func WithAssemblyAISTTMinTurnSilence(ms int) AssemblyAISTTOption
func WithAssemblyAISTTModel ¶ added in v0.0.15
func WithAssemblyAISTTModel(model string) AssemblyAISTTOption
func WithAssemblyAISTTPrompt ¶ added in v0.0.15
func WithAssemblyAISTTPrompt(prompt string) AssemblyAISTTOption
func WithAssemblyAISTTSampleRate ¶ added in v0.0.15
func WithAssemblyAISTTSampleRate(sampleRate int) AssemblyAISTTOption
func WithAssemblyAISTTSpeakerLabels ¶ added in v0.0.15
func WithAssemblyAISTTSpeakerLabels(enabled bool) AssemblyAISTTOption
func WithAssemblyAISTTVADThreshold ¶ added in v0.0.15
func WithAssemblyAISTTVADThreshold(threshold float64) AssemblyAISTTOption
Click to show internal directories.
Click to hide internal directories.