beta

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: MIT Imports: 17 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package beta contains experimental Google provider integrations.

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type STT

type STT struct {
	stt.ErrorEmitter
	// contains filtered or unexported fields
}

STT is an experimental Gemini Live streaming transcription provider. It does not use Google Cloud Speech credentials or support offline recognition.

func NewSTT

func NewSTT(apiKey string, opts ...STTOption) (*STT, error)

NewSTT uses an explicit API key, then GOOGLE_API_KEY, then GEMINI_API_KEY.

func (*STT) Capabilities

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

func (*STT) Close

func (s *STT) Close() error

func (*STT) InputSampleRate

func (s *STT) InputSampleRate() uint32

func (*STT) Label

func (s *STT) Label() string

func (*STT) Model

func (s *STT) Model() string

func (*STT) Provider

func (s *STT) Provider() string

func (*STT) Recognize

func (s *STT) Recognize(context.Context, []*model.AudioFrame, string) (*stt.SpeechEvent, error)

func (*STT) Stream

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

type STTOption

type STTOption func(*STT)

func WithSTTConnectOptions

func WithSTTConnectOptions(value llm.APIConnectOptions) STTOption

func WithSTTCustomVocabulary

func WithSTTCustomVocabulary(values []string) STTOption

func WithSTTLanguage

func WithSTTLanguage(value string) STTOption

WithSTTLanguage sets the fallback language and default recognition hint. An empty string enables language detection unless explicit codes are configured.

func WithSTTLanguageCodes

func WithSTTLanguageCodes(values []string) STTOption

WithSTTLanguageCodes overrides the language hint. An empty list explicitly enables automatic detection, including when Stream receives a language override.

func WithSTTModel

func WithSTTModel(value string) STTOption

func WithSTTSampleRate

func WithSTTSampleRate(value uint32) STTOption

Jump to

Keyboard shortcuts

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