google

package
v0.1.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	PluginTitle   = "rtp-agent.plugins.google"
	PluginVersion = "v0.1.2"
	PluginPackage = "rtp-agent.plugins.google"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GoogleLLM

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

func NewGoogleLLM

func NewGoogleLLM(apiKey string, model string) (*GoogleLLM, error)

func (*GoogleLLM) Chat

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

func (*GoogleLLM) Model added in v0.0.15

func (l *GoogleLLM) Model() string

func (*GoogleLLM) Provider added in v0.0.15

func (l *GoogleLLM) Provider() string

type GoogleSTT

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

func NewGoogleSTT

func NewGoogleSTT(credentialsFile string, providerOpts ...GoogleSTTOption) (*GoogleSTT, error)

NewGoogleSTT creates a new STT client using Application Default Credentials, or by providing a path to a credentials JSON file.

func (*GoogleSTT) Capabilities

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

func (*GoogleSTT) Close added in v0.1.0

func (s *GoogleSTT) Close() error

func (*GoogleSTT) InputSampleRate added in v0.1.0

func (s *GoogleSTT) InputSampleRate() uint32

func (*GoogleSTT) Label

func (s *GoogleSTT) Label() string

func (*GoogleSTT) Recognize

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

func (*GoogleSTT) Stream

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

type GoogleSTTOption added in v0.0.15

type GoogleSTTOption func(*GoogleSTT)

func WithGoogleSTTMinConfidenceThreshold added in v0.1.0

func WithGoogleSTTMinConfidenceThreshold(threshold float64) GoogleSTTOption

func WithGoogleSTTModel added in v0.0.15

func WithGoogleSTTModel(model string) GoogleSTTOption

func WithGoogleSTTProfanityFilter added in v0.0.15

func WithGoogleSTTProfanityFilter(profanityFilter bool) GoogleSTTOption

func WithGoogleSTTPunctuate added in v0.0.15

func WithGoogleSTTPunctuate(punctuate bool) GoogleSTTOption

func WithGoogleSTTSampleRate added in v0.0.15

func WithGoogleSTTSampleRate(sampleRate int32) GoogleSTTOption

func WithGoogleSTTSpokenPunctuation added in v0.0.15

func WithGoogleSTTSpokenPunctuation(spokenPunctuation bool) GoogleSTTOption

func WithGoogleSTTVoiceActivityEvents added in v0.1.0

func WithGoogleSTTVoiceActivityEvents(enabled bool) GoogleSTTOption

func WithGoogleSTTWordConfidence added in v0.1.0

func WithGoogleSTTWordConfidence(enabled bool) GoogleSTTOption

type GoogleTTS

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

func NewGoogleTTS

func NewGoogleTTS(credentialsFile string, ttsOpts ...GoogleTTSOption) (*GoogleTTS, error)

NewGoogleTTS creates a new TTS client using Application Default Credentials, or by providing a path to a credentials JSON file.

func (*GoogleTTS) Capabilities

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

func (*GoogleTTS) Close added in v0.1.0

func (t *GoogleTTS) Close() error

func (*GoogleTTS) Label

func (t *GoogleTTS) Label() string

func (*GoogleTTS) Model added in v0.1.0

func (t *GoogleTTS) Model() string

func (*GoogleTTS) NumChannels

func (t *GoogleTTS) NumChannels() int

func (*GoogleTTS) Provider added in v0.1.0

func (t *GoogleTTS) Provider() string

func (*GoogleTTS) SampleRate

func (t *GoogleTTS) SampleRate() int

func (*GoogleTTS) Stream

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

func (*GoogleTTS) Synthesize

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

func (*GoogleTTS) UpdateOptions added in v0.1.0

func (t *GoogleTTS) UpdateOptions(opts ...GoogleTTSOption)

type GoogleTTSOption added in v0.0.15

type GoogleTTSOption func(*googleTTSConfig)

func WithGoogleTTSEffectsProfileID added in v0.1.0

func WithGoogleTTSEffectsProfileID(profileID string) GoogleTTSOption

func WithGoogleTTSLanguage added in v0.0.15

func WithGoogleTTSLanguage(language string) GoogleTTSOption

func WithGoogleTTSModel added in v0.0.15

func WithGoogleTTSModel(model string) GoogleTTSOption

func WithGoogleTTSPitch added in v0.1.0

func WithGoogleTTSPitch(pitch float64) GoogleTTSOption

func WithGoogleTTSPrompt added in v0.1.0

func WithGoogleTTSPrompt(prompt string) GoogleTTSOption

func WithGoogleTTSSpeakingRate added in v0.1.0

func WithGoogleTTSSpeakingRate(rate float64) GoogleTTSOption

func WithGoogleTTSVoice added in v0.0.15

func WithGoogleTTSVoice(voice string) GoogleTTSOption

func WithGoogleTTSVolumeGainDB added in v0.1.0

func WithGoogleTTSVolumeGainDB(volumeGainDB float64) GoogleTTSOption

Jump to

Keyboard shortcuts

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