spitch

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

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type SpitchSTT

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

func NewSpitchSTT

func NewSpitchSTT(apiKey string) *SpitchSTT

func (*SpitchSTT) Capabilities

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

func (*SpitchSTT) Label

func (s *SpitchSTT) Label() string

func (*SpitchSTT) Model added in v0.0.18

func (s *SpitchSTT) Model() string

func (*SpitchSTT) Provider added in v0.0.18

func (s *SpitchSTT) Provider() string

func (*SpitchSTT) Recognize

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

func (*SpitchSTT) Stream

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

type SpitchTTS

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

func NewSpitchTTS

func NewSpitchTTS(apiKey string, voice string, opts ...SpitchTTSOption) *SpitchTTS

func (*SpitchTTS) Capabilities

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

func (*SpitchTTS) Label

func (t *SpitchTTS) Label() string

func (*SpitchTTS) Model added in v0.0.18

func (t *SpitchTTS) Model() string

func (*SpitchTTS) NumChannels

func (t *SpitchTTS) NumChannels() int

func (*SpitchTTS) Provider added in v0.0.18

func (t *SpitchTTS) Provider() string

func (*SpitchTTS) SampleRate

func (t *SpitchTTS) SampleRate() int

func (*SpitchTTS) Stream

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

func (*SpitchTTS) Synthesize

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

type SpitchTTSOption added in v0.0.15

type SpitchTTSOption func(*SpitchTTS)

func WithSpitchTTSBaseURL added in v0.0.15

func WithSpitchTTSBaseURL(baseURL string) SpitchTTSOption

func WithSpitchTTSLanguage added in v0.0.15

func WithSpitchTTSLanguage(language string) SpitchTTSOption

func WithSpitchTTSOutputFormat added in v0.0.15

func WithSpitchTTSOutputFormat(outputFormat string) SpitchTTSOption

func WithSpitchTTSSampleRate added in v0.0.15

func WithSpitchTTSSampleRate(sampleRate int) SpitchTTSOption

func WithSpitchTTSVoice added in v0.0.15

func WithSpitchTTSVoice(voice string) SpitchTTSOption

Jump to

Keyboard shortcuts

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