hume

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: 13 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type HumeLLM

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

func NewHumeLLM

func NewHumeLLM(apiKey string, model string) *HumeLLM

func (*HumeLLM) Chat

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

type HumeTTS

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

func NewHumeTTS

func NewHumeTTS(apiKey string, model string, opts ...HumeTTSOption) *HumeTTS

func (*HumeTTS) Capabilities

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

func (*HumeTTS) Label

func (t *HumeTTS) Label() string

func (*HumeTTS) Model added in v0.0.18

func (t *HumeTTS) Model() string

func (*HumeTTS) NumChannels

func (t *HumeTTS) NumChannels() int

func (*HumeTTS) Provider added in v0.0.18

func (t *HumeTTS) Provider() string

func (*HumeTTS) SampleRate

func (t *HumeTTS) SampleRate() int

func (*HumeTTS) Stream

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

func (*HumeTTS) Synthesize

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

type HumeTTSOption added in v0.0.15

type HumeTTSOption func(*HumeTTS)

func WithHumeTTSAudioFormat added in v0.0.15

func WithHumeTTSAudioFormat(audioFormat string) HumeTTSOption

func WithHumeTTSBaseURL added in v0.0.15

func WithHumeTTSBaseURL(baseURL string) HumeTTSOption

func WithHumeTTSContextGenerationID added in v0.0.15

func WithHumeTTSContextGenerationID(generationID string) HumeTTSOption

func WithHumeTTSContextUtterances added in v0.0.15

func WithHumeTTSContextUtterances(context []HumeTTSUtterance) HumeTTSOption

func WithHumeTTSDescription added in v0.0.15

func WithHumeTTSDescription(description string) HumeTTSOption

func WithHumeTTSInstantMode added in v0.0.15

func WithHumeTTSInstantMode(enabled bool) HumeTTSOption

func WithHumeTTSModelVersion added in v0.0.15

func WithHumeTTSModelVersion(modelVersion string) HumeTTSOption

func WithHumeTTSSpeed added in v0.0.15

func WithHumeTTSSpeed(speed float64) HumeTTSOption

func WithHumeTTSTrailingSilence added in v0.0.15

func WithHumeTTSTrailingSilence(trailingSilence float64) HumeTTSOption

func WithHumeTTSVoiceID added in v0.0.15

func WithHumeTTSVoiceID(id string, provider string) HumeTTSOption

func WithHumeTTSVoiceName added in v0.0.15

func WithHumeTTSVoiceName(name string, provider string) HumeTTSOption

type HumeTTSUtterance added in v0.0.15

type HumeTTSUtterance struct {
	Text            string
	Description     string
	Speed           *float64
	Voice           *HumeTTSVoice
	TrailingSilence *float64
}

type HumeTTSVoice added in v0.0.15

type HumeTTSVoice struct {
	ID       string
	Name     string
	Provider string
}

Jump to

Keyboard shortcuts

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