aws

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

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)

type AWSSTT

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

func NewAWSSTT

func NewAWSSTT(ctx context.Context, region string) (*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 AWSTTS

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

func NewAWSTTS

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

func (*AWSTTS) Capabilities

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

func (*AWSTTS) Label

func (t *AWSTTS) Label() string

func (*AWSTTS) NumChannels

func (t *AWSTTS) NumChannels() int

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)

Jump to

Keyboard shortcuts

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