Documentation
¶
Overview ¶
Package beta contains experimental Google provider integrations.
Index ¶
- Constants
- type STT
- func (s *STT) Capabilities() stt.STTCapabilities
- func (s *STT) Close() error
- func (s *STT) InputSampleRate() uint32
- func (s *STT) Label() string
- func (s *STT) Model() string
- func (s *STT) Provider() string
- func (s *STT) Recognize(context.Context, []*model.AudioFrame, string) (*stt.SpeechEvent, error)
- func (s *STT) Stream(ctx context.Context, language string) (stt.RecognizeStream, error)
- type STTOption
- func WithSTTConnectOptions(value llm.APIConnectOptions) STTOption
- func WithSTTCustomVocabulary(values []string) STTOption
- func WithSTTLanguage(value string) STTOption
- func WithSTTLanguageCodes(values []string) STTOption
- func WithSTTModel(value string) STTOption
- func WithSTTSampleRate(value uint32) STTOption
Constants ¶
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 (*STT) Capabilities ¶
func (s *STT) Capabilities() stt.STTCapabilities
func (*STT) InputSampleRate ¶
type STTOption ¶
type STTOption func(*STT)
func WithSTTConnectOptions ¶
func WithSTTConnectOptions(value llm.APIConnectOptions) STTOption
func WithSTTCustomVocabulary ¶
func WithSTTLanguage ¶
WithSTTLanguage sets the fallback language and default recognition hint. An empty string enables language detection unless explicit codes are configured.
func WithSTTLanguageCodes ¶
WithSTTLanguageCodes overrides the language hint. An empty list explicitly enables automatic detection, including when Stream receives a language override.