Documentation
¶
Index ¶
- Constants
- func AWSRealtimeSonic1Voices() []string
- func AWSRealtimeSonic2Voices() []string
- type AWSCredentials
- type AWSLLM
- func (l *AWSLLM) AdditionalRequestFields() any
- func (l *AWSLLM) CacheSystem() bool
- func (l *AWSLLM) CacheTools() bool
- func (l *AWSLLM) Chat(ctx context.Context, chatCtx *llm.ChatContext, opts ...llm.ChatOption) (llm.LLMStream, error)
- func (l *AWSLLM) Label() string
- func (l *AWSLLM) MaxOutputTokens() (int32, bool)
- func (l *AWSLLM) Model() string
- func (l *AWSLLM) Provider() string
- func (l *AWSLLM) Temperature() (float32, bool)
- func (l *AWSLLM) ToolChoice() llm.ToolChoice
- func (l *AWSLLM) TopP() (float32, bool)
- type AWSLLMOption
- func WithAWSLLMAdditionalRequestFields(fields any) AWSLLMOption
- func WithAWSLLMCacheSystem(cache bool) AWSLLMOption
- func WithAWSLLMCacheTools(cache bool) AWSLLMOption
- func WithAWSLLMCredentials(creds AWSCredentials) AWSLLMOption
- func WithAWSLLMMaxOutputTokens(maxOutputTokens int32) AWSLLMOption
- func WithAWSLLMTemperature(temperature float32) AWSLLMOption
- func WithAWSLLMToolChoice(toolChoice llm.ToolChoice) AWSLLMOption
- func WithAWSLLMTopP(topP float32) AWSLLMOption
- type AWSRealtimeModel
- func (m *AWSRealtimeModel) Capabilities() llm.RealtimeCapabilities
- func (m *AWSRealtimeModel) Close() error
- func (m *AWSRealtimeModel) GenerateReplyTimeout() time.Duration
- func (m *AWSRealtimeModel) Label() string
- func (m *AWSRealtimeModel) MaxTokens() (int, bool)
- func (m *AWSRealtimeModel) Modalities() string
- func (m *AWSRealtimeModel) Model() string
- func (m *AWSRealtimeModel) Provider() string
- func (m *AWSRealtimeModel) Region() string
- func (m *AWSRealtimeModel) Session() (llm.RealtimeSession, error)
- func (m *AWSRealtimeModel) Temperature() (float64, bool)
- func (m *AWSRealtimeModel) ToolChoice() llm.ToolChoice
- func (m *AWSRealtimeModel) TopP() (float64, bool)
- func (m *AWSRealtimeModel) TurnDetection() string
- func (m *AWSRealtimeModel) Voice() string
- type AWSRealtimeOption
- func WithAWSRealtimeClient(client awsRealtimeClient) AWSRealtimeOption
- func WithAWSRealtimeCredentialExpiry(expiry func() (time.Time, bool)) AWSRealtimeOption
- func WithAWSRealtimeGenerateReplyTimeout(timeout time.Duration) AWSRealtimeOption
- func WithAWSRealtimeMaxSessionDuration(duration time.Duration) AWSRealtimeOption
- func WithAWSRealtimeMaxTokens(maxTokens int) AWSRealtimeOption
- func WithAWSRealtimeModel(model string) AWSRealtimeOption
- func WithAWSRealtimeRegion(region string) AWSRealtimeOption
- func WithAWSRealtimeTemperature(temperature float64) AWSRealtimeOption
- func WithAWSRealtimeToolChoice(toolChoice llm.ToolChoice) AWSRealtimeOption
- func WithAWSRealtimeTopP(topP float64) AWSRealtimeOption
- func WithAWSRealtimeTurnDetection(turnDetection string) AWSRealtimeOption
- func WithAWSRealtimeVoice(voice string) AWSRealtimeOption
- type AWSSTT
- func (s *AWSSTT) Capabilities() stt.STTCapabilities
- func (s *AWSSTT) Close() error
- func (s *AWSSTT) InputSampleRate() uint32
- func (s *AWSSTT) Label() string
- func (s *AWSSTT) Language() string
- func (s *AWSSTT) Model() string
- func (s *AWSSTT) Provider() string
- func (s *AWSSTT) Recognize(ctx context.Context, frames []*model.AudioFrame, language string) (*stt.SpeechEvent, error)
- func (s *AWSSTT) Stream(ctx context.Context, language string) (stt.RecognizeStream, error)
- type AWSSTTOption
- func WithAWSSTTCredentials(creds AWSCredentials) AWSSTTOption
- func WithAWSSTTEnableChannelIdentification(enable bool) AWSSTTOption
- func WithAWSSTTEnablePartialResultsStabilization(enable bool) AWSSTTOption
- func WithAWSSTTIdentifyLanguage(identify bool) AWSSTTOption
- func WithAWSSTTIdentifyMultipleLanguages(identify bool) AWSSTTOption
- func WithAWSSTTLanguage(language types.LanguageCode) AWSSTTOption
- func WithAWSSTTLanguageModelName(name string) AWSSTTOption
- func WithAWSSTTLanguageOptions(options string) AWSSTTOption
- func WithAWSSTTNumberOfChannels(channels int32) AWSSTTOption
- func WithAWSSTTPartialResultsStability(stability types.PartialResultsStability) AWSSTTOption
- func WithAWSSTTPreferredLanguage(language types.LanguageCode) AWSSTTOption
- func WithAWSSTTSampleRate(sampleRate int32) AWSSTTOption
- func WithAWSSTTSessionID(sessionID string) AWSSTTOption
- func WithAWSSTTShowSpeakerLabel(show bool) AWSSTTOption
- func WithAWSSTTVocabularyFilterMethod(method types.VocabularyFilterMethod) AWSSTTOption
- func WithAWSSTTVocabularyFilterName(name string) AWSSTTOption
- func WithAWSSTTVocabularyFilterNames(names string) AWSSTTOption
- func WithAWSSTTVocabularyName(name string) AWSSTTOption
- func WithAWSSTTVocabularyNames(names string) AWSSTTOption
- type AWSTTS
- func (t *AWSTTS) Capabilities() tts.TTSCapabilities
- func (t *AWSTTS) Close() error
- func (t *AWSTTS) Label() string
- func (t *AWSTTS) Model() string
- func (t *AWSTTS) NumChannels() int
- func (t *AWSTTS) Provider() string
- func (t *AWSTTS) SampleRate() int
- func (t *AWSTTS) Stream(ctx context.Context) (tts.SynthesizeStream, error)
- func (t *AWSTTS) Synthesize(ctx context.Context, text string) (tts.ChunkedStream, error)
- func (t *AWSTTS) UpdateOptions(opts ...AWSTTSOption)
- type AWSTTSOption
- func WithAWSTTSCredentials(creds AWSCredentials) AWSTTSOption
- func WithAWSTTSEngine(engine types.Engine) AWSTTSOption
- func WithAWSTTSLanguage(language types.LanguageCode) AWSTTSOption
- func WithAWSTTSSampleRate(sampleRate int) AWSTTSOption
- func WithAWSTTSTextType(textType types.TextType) AWSTTSOption
- func WithAWSTTSVoice(voice types.VoiceId) AWSTTSOption
Constants ¶
View Source
const ( PluginTitle = "rtp-agent.plugins.aws" PluginVersion = "v0.1.7" PluginPackage = "rtp-agent.plugins.aws" )
View Source
const ( AWSRealtimeModelNovaSonic1 = "amazon.nova-sonic-v1:0" AWSRealtimeModelNovaSonic2 = "amazon.nova-2-sonic-v1:0" AWSRealtimeModalitiesAudio = "audio" AWSRealtimeModalitiesMixed = "mixed" AWSRealtimeTurnDetectionHigh = "HIGH" AWSRealtimeTurnDetectionMedium = "MEDIUM" AWSRealtimeTurnDetectionLow = "LOW" )
Variables ¶
This section is empty.
Functions ¶
func AWSRealtimeSonic1Voices ¶ added in v0.1.5
func AWSRealtimeSonic1Voices() []string
func AWSRealtimeSonic2Voices ¶ added in v0.1.5
func AWSRealtimeSonic2Voices() []string
Types ¶
type AWSCredentials ¶ added in v0.1.5
type AWSLLM ¶
type AWSLLM struct {
// contains filtered or unexported fields
}
func (*AWSLLM) AdditionalRequestFields ¶ added in v0.1.5
func (*AWSLLM) CacheSystem ¶ added in v0.1.5
func (*AWSLLM) CacheTools ¶ added in v0.1.5
func (*AWSLLM) Chat ¶
func (l *AWSLLM) Chat(ctx context.Context, chatCtx *llm.ChatContext, opts ...llm.ChatOption) (llm.LLMStream, error)
func (*AWSLLM) MaxOutputTokens ¶ added in v0.1.5
func (*AWSLLM) Temperature ¶ added in v0.1.5
func (*AWSLLM) ToolChoice ¶ added in v0.1.5
func (l *AWSLLM) ToolChoice() llm.ToolChoice
type AWSLLMOption ¶ added in v0.1.5
type AWSLLMOption func(*AWSLLM)
func WithAWSLLMAdditionalRequestFields ¶ added in v0.1.5
func WithAWSLLMAdditionalRequestFields(fields any) AWSLLMOption
func WithAWSLLMCacheSystem ¶ added in v0.1.5
func WithAWSLLMCacheSystem(cache bool) AWSLLMOption
func WithAWSLLMCacheTools ¶ added in v0.1.5
func WithAWSLLMCacheTools(cache bool) AWSLLMOption
func WithAWSLLMCredentials ¶ added in v0.1.5
func WithAWSLLMCredentials(creds AWSCredentials) AWSLLMOption
func WithAWSLLMMaxOutputTokens ¶ added in v0.1.5
func WithAWSLLMMaxOutputTokens(maxOutputTokens int32) AWSLLMOption
func WithAWSLLMTemperature ¶ added in v0.1.5
func WithAWSLLMTemperature(temperature float32) AWSLLMOption
func WithAWSLLMToolChoice ¶ added in v0.1.5
func WithAWSLLMToolChoice(toolChoice llm.ToolChoice) AWSLLMOption
func WithAWSLLMTopP ¶ added in v0.1.5
func WithAWSLLMTopP(topP float32) AWSLLMOption
type AWSRealtimeModel ¶ added in v0.1.5
type AWSRealtimeModel struct {
// contains filtered or unexported fields
}
func NewAWSRealtimeModel ¶ added in v0.1.5
func NewAWSRealtimeModel(model string, opts ...AWSRealtimeOption) *AWSRealtimeModel
func NewAWSRealtimeModelWithNovaSonic1 ¶ added in v0.1.5
func NewAWSRealtimeModelWithNovaSonic1(opts ...AWSRealtimeOption) *AWSRealtimeModel
func NewAWSRealtimeModelWithNovaSonic2 ¶ added in v0.1.5
func NewAWSRealtimeModelWithNovaSonic2(opts ...AWSRealtimeOption) *AWSRealtimeModel
func (*AWSRealtimeModel) Capabilities ¶ added in v0.1.5
func (m *AWSRealtimeModel) Capabilities() llm.RealtimeCapabilities
func (*AWSRealtimeModel) Close ¶ added in v0.1.5
func (m *AWSRealtimeModel) Close() error
func (*AWSRealtimeModel) GenerateReplyTimeout ¶ added in v0.1.5
func (m *AWSRealtimeModel) GenerateReplyTimeout() time.Duration
func (*AWSRealtimeModel) Label ¶ added in v0.1.5
func (m *AWSRealtimeModel) Label() string
func (*AWSRealtimeModel) MaxTokens ¶ added in v0.1.5
func (m *AWSRealtimeModel) MaxTokens() (int, bool)
func (*AWSRealtimeModel) Modalities ¶ added in v0.1.5
func (m *AWSRealtimeModel) Modalities() string
func (*AWSRealtimeModel) Model ¶ added in v0.1.5
func (m *AWSRealtimeModel) Model() string
func (*AWSRealtimeModel) Provider ¶ added in v0.1.5
func (m *AWSRealtimeModel) Provider() string
func (*AWSRealtimeModel) Region ¶ added in v0.1.5
func (m *AWSRealtimeModel) Region() string
func (*AWSRealtimeModel) Session ¶ added in v0.1.5
func (m *AWSRealtimeModel) Session() (llm.RealtimeSession, error)
func (*AWSRealtimeModel) Temperature ¶ added in v0.1.5
func (m *AWSRealtimeModel) Temperature() (float64, bool)
func (*AWSRealtimeModel) ToolChoice ¶ added in v0.1.5
func (m *AWSRealtimeModel) ToolChoice() llm.ToolChoice
func (*AWSRealtimeModel) TopP ¶ added in v0.1.5
func (m *AWSRealtimeModel) TopP() (float64, bool)
func (*AWSRealtimeModel) TurnDetection ¶ added in v0.1.5
func (m *AWSRealtimeModel) TurnDetection() string
func (*AWSRealtimeModel) Voice ¶ added in v0.1.5
func (m *AWSRealtimeModel) Voice() string
type AWSRealtimeOption ¶ added in v0.1.5
type AWSRealtimeOption func(*AWSRealtimeModel)
func WithAWSRealtimeClient ¶ added in v0.1.5
func WithAWSRealtimeClient(client awsRealtimeClient) AWSRealtimeOption
func WithAWSRealtimeCredentialExpiry ¶ added in v0.1.5
func WithAWSRealtimeCredentialExpiry(expiry func() (time.Time, bool)) AWSRealtimeOption
func WithAWSRealtimeGenerateReplyTimeout ¶ added in v0.1.5
func WithAWSRealtimeGenerateReplyTimeout(timeout time.Duration) AWSRealtimeOption
func WithAWSRealtimeMaxSessionDuration ¶ added in v0.1.5
func WithAWSRealtimeMaxSessionDuration(duration time.Duration) AWSRealtimeOption
func WithAWSRealtimeMaxTokens ¶ added in v0.1.5
func WithAWSRealtimeMaxTokens(maxTokens int) AWSRealtimeOption
func WithAWSRealtimeModel ¶ added in v0.1.5
func WithAWSRealtimeModel(model string) AWSRealtimeOption
func WithAWSRealtimeRegion ¶ added in v0.1.5
func WithAWSRealtimeRegion(region string) AWSRealtimeOption
func WithAWSRealtimeTemperature ¶ added in v0.1.5
func WithAWSRealtimeTemperature(temperature float64) AWSRealtimeOption
func WithAWSRealtimeToolChoice ¶ added in v0.1.5
func WithAWSRealtimeToolChoice(toolChoice llm.ToolChoice) AWSRealtimeOption
func WithAWSRealtimeTopP ¶ added in v0.1.5
func WithAWSRealtimeTopP(topP float64) AWSRealtimeOption
func WithAWSRealtimeTurnDetection ¶ added in v0.1.5
func WithAWSRealtimeTurnDetection(turnDetection string) AWSRealtimeOption
func WithAWSRealtimeVoice ¶ added in v0.1.5
func WithAWSRealtimeVoice(voice string) AWSRealtimeOption
type AWSSTT ¶
type AWSSTT struct {
// contains filtered or unexported fields
}
func (*AWSSTT) Capabilities ¶
func (s *AWSSTT) Capabilities() stt.STTCapabilities
func (*AWSSTT) InputSampleRate ¶ added in v0.1.0
type AWSSTTOption ¶ added in v0.0.15
type AWSSTTOption func(*AWSSTT)
func WithAWSSTTCredentials ¶ added in v0.1.5
func WithAWSSTTCredentials(creds AWSCredentials) AWSSTTOption
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 WithAWSSTTLanguage ¶ added in v0.1.5
func WithAWSSTTLanguage(language types.LanguageCode) 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 (*AWSTTS) Capabilities ¶
func (t *AWSTTS) Capabilities() tts.TTSCapabilities
func (*AWSTTS) NumChannels ¶
func (*AWSTTS) SampleRate ¶
func (*AWSTTS) Synthesize ¶
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 WithAWSTTSCredentials ¶ added in v0.1.5
func WithAWSTTSCredentials(creds AWSCredentials) AWSTTSOption
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
Click to show internal directories.
Click to hide internal directories.