fal

package
v0.0.21 Latest Latest
Warning

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

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

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type FalLLM

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

func NewFalLLM

func NewFalLLM(apiKey string, model string) *FalLLM

func (*FalLLM) Chat

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

func (*FalLLM) Model added in v0.0.15

func (l *FalLLM) Model() string

func (*FalLLM) Provider added in v0.0.15

func (l *FalLLM) Provider() string

type FalSTT

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

func NewFalSTT

func NewFalSTT(apiKey string, opts ...FalSTTOption) *FalSTT

func (*FalSTT) Capabilities

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

func (*FalSTT) Label

func (s *FalSTT) Label() string

func (*FalSTT) Model added in v0.0.18

func (s *FalSTT) Model() string

func (*FalSTT) Provider added in v0.0.18

func (s *FalSTT) Provider() string

func (*FalSTT) Recognize

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

func (*FalSTT) Stream

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

type FalSTTOption added in v0.0.15

type FalSTTOption func(*FalSTT)

func WithFalSTTChunkLevel added in v0.0.15

func WithFalSTTChunkLevel(chunkLevel string) FalSTTOption

func WithFalSTTLanguage added in v0.0.15

func WithFalSTTLanguage(language string) FalSTTOption

func WithFalSTTTask added in v0.0.15

func WithFalSTTTask(task string) FalSTTOption

func WithFalSTTVersion added in v0.0.15

func WithFalSTTVersion(version string) FalSTTOption

Jump to

Keyboard shortcuts

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