gradium

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GradiumLLM

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

func NewGradiumLLM

func NewGradiumLLM(apiKey string, model string) *GradiumLLM

func (*GradiumLLM) Chat

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

type GradiumSTT

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

func NewGradiumSTT

func NewGradiumSTT(apiKey string) *GradiumSTT

func (*GradiumSTT) Capabilities

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

func (*GradiumSTT) Label

func (s *GradiumSTT) Label() string

func (*GradiumSTT) Recognize

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

func (*GradiumSTT) Stream

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

type GradiumTTS

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

func NewGradiumTTS

func NewGradiumTTS(apiKey string, voice string) *GradiumTTS

func (*GradiumTTS) Capabilities

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

func (*GradiumTTS) Label

func (t *GradiumTTS) Label() string

func (*GradiumTTS) NumChannels

func (t *GradiumTTS) NumChannels() int

func (*GradiumTTS) SampleRate

func (t *GradiumTTS) SampleRate() int

func (*GradiumTTS) Stream

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

func (*GradiumTTS) Synthesize

func (t *GradiumTTS) 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