aws

package
v0.0.76 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PluginTitle   = "rtp-agent.plugins.aws"
	PluginVersion = "1.5.15"
	PluginPackage = "rtp-agent.plugins.aws"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSLLM

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

func NewAWSLLM

func NewAWSLLM(ctx context.Context, region string, model string) (*AWSLLM, error)

func (*AWSLLM) Chat

func (l *AWSLLM) Chat(ctx context.Context, chatCtx *llm.ChatContext, opts ...llm.ChatOption) (llm.LLMStream, error)

func (*AWSLLM) Label added in v0.0.15

func (l *AWSLLM) Label() string

func (*AWSLLM) Model added in v0.0.15

func (l *AWSLLM) Model() string

func (*AWSLLM) Provider added in v0.0.15

func (l *AWSLLM) Provider() string

type AWSSTT

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

func NewAWSSTT

func NewAWSSTT(ctx context.Context, region string, providerOpts ...AWSSTTOption) (*AWSSTT, error)

func (*AWSSTT) Capabilities

func (s *AWSSTT) Capabilities() stt.STTCapabilities

func (*AWSSTT) Label

func (s *AWSSTT) Label() string

func (*AWSSTT) Recognize

func (s *AWSSTT) Recognize(ctx context.Context, frames []*model.AudioFrame, language string) (*stt.SpeechEvent, error)

func (*AWSSTT) Stream

func (s *AWSSTT) Stream(ctx context.Context, language string) (stt.RecognizeStream, error)

type AWSSTTOption added in v0.0.15

type AWSSTTOption func(*AWSSTT)

func WithAWSSTTEnableChannelIdentification added in v0.0.15

func WithAWSSTTEnableChannelIdentification(enable bool) AWSSTTOption

func WithAWSSTTEnablePartialResultsStabilization added in v0.0.15

func WithAWSSTTEnablePartialResultsStabilization(enable bool) AWSSTTOption

func WithAWSSTTIdentifyLanguage added in v0.0.15

func WithAWSSTTIdentifyLanguage(identify bool) AWSSTTOption

func WithAWSSTTIdentifyMultipleLanguages added in v0.0.15

func WithAWSSTTIdentifyMultipleLanguages(identify bool) AWSSTTOption

func WithAWSSTTLanguageModelName added in v0.0.15

func WithAWSSTTLanguageModelName(name string) AWSSTTOption

func WithAWSSTTLanguageOptions added in v0.0.15

func WithAWSSTTLanguageOptions(options string) AWSSTTOption

func WithAWSSTTNumberOfChannels added in v0.0.15

func WithAWSSTTNumberOfChannels(channels int32) AWSSTTOption

func WithAWSSTTPartialResultsStability added in v0.0.15

func WithAWSSTTPartialResultsStability(stability types.PartialResultsStability) AWSSTTOption

func WithAWSSTTPreferredLanguage added in v0.0.15

func WithAWSSTTPreferredLanguage(language types.LanguageCode) AWSSTTOption

func WithAWSSTTSampleRate added in v0.0.15

func WithAWSSTTSampleRate(sampleRate int32) AWSSTTOption

func WithAWSSTTSessionID added in v0.0.15

func WithAWSSTTSessionID(sessionID string) AWSSTTOption

func WithAWSSTTShowSpeakerLabel added in v0.0.15

func WithAWSSTTShowSpeakerLabel(show bool) AWSSTTOption

func WithAWSSTTVocabularyFilterMethod added in v0.0.15

func WithAWSSTTVocabularyFilterMethod(method types.VocabularyFilterMethod) AWSSTTOption

func WithAWSSTTVocabularyFilterName added in v0.0.15

func WithAWSSTTVocabularyFilterName(name string) AWSSTTOption

func WithAWSSTTVocabularyFilterNames added in v0.0.15

func WithAWSSTTVocabularyFilterNames(names string) AWSSTTOption

func WithAWSSTTVocabularyName added in v0.0.15

func WithAWSSTTVocabularyName(name string) AWSSTTOption

func WithAWSSTTVocabularyNames added in v0.0.15

func WithAWSSTTVocabularyNames(names string) AWSSTTOption

type AWSTTS

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

func NewAWSTTS

func NewAWSTTS(ctx context.Context, region string, voice string, providerOpts ...AWSTTSOption) (*AWSTTS, error)

func (*AWSTTS) Capabilities

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

func (*AWSTTS) Label

func (t *AWSTTS) Label() string

func (*AWSTTS) Model added in v0.0.15

func (t *AWSTTS) Model() string

func (*AWSTTS) NumChannels

func (t *AWSTTS) NumChannels() int

func (*AWSTTS) Provider added in v0.0.15

func (t *AWSTTS) Provider() string

func (*AWSTTS) SampleRate

func (t *AWSTTS) SampleRate() int

func (*AWSTTS) Stream

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

func (*AWSTTS) Synthesize

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

func (*AWSTTS) UpdateOptions added in v0.0.15

func (t *AWSTTS) UpdateOptions(opts ...AWSTTSOption)

type AWSTTSOption added in v0.0.15

type AWSTTSOption func(*AWSTTS)

func WithAWSTTSEngine added in v0.0.15

func WithAWSTTSEngine(engine types.Engine) AWSTTSOption

func WithAWSTTSLanguage added in v0.0.15

func WithAWSTTSLanguage(language types.LanguageCode) AWSTTSOption

func WithAWSTTSSampleRate added in v0.0.15

func WithAWSTTSSampleRate(sampleRate int) AWSTTSOption

func WithAWSTTSTextType added in v0.0.15

func WithAWSTTSTextType(textType types.TextType) AWSTTSOption

func WithAWSTTSVoice added in v0.0.15

func WithAWSTTSVoice(voice types.VoiceId) AWSTTSOption

Jump to

Keyboard shortcuts

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