spitch

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type STT added in v0.4.2

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

func NewSTT added in v0.4.2

func NewSTT(apiKey string) *STT

func NewSpitchSTT deprecated

func NewSpitchSTT(apiKey string) *STT

Deprecated: use NewSTT.

func (*STT) Capabilities added in v0.4.2

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

func (*STT) Label added in v0.4.2

func (s *STT) Label() string

func (*STT) Model added in v0.4.2

func (s *STT) Model() string

func (*STT) Provider added in v0.4.2

func (s *STT) Provider() string

func (*STT) Recognize added in v0.4.2

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

func (*STT) Stream added in v0.4.2

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

type SpitchSTT deprecated

type SpitchSTT = STT

Deprecated: use STT.

type SpitchTTS deprecated

type SpitchTTS = TTS

Deprecated: use TTS.

type SpitchTTSOption deprecated added in v0.0.15

type SpitchTTSOption = TTSOption

Deprecated: use TTSOption.

type TTS added in v0.4.2

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

func NewSpitchTTS deprecated

func NewSpitchTTS(apiKey string, voice string, opts ...TTSOption) *TTS

Deprecated: use NewTTS.

func NewTTS added in v0.4.2

func NewTTS(apiKey string, voice string, opts ...TTSOption) *TTS

func (*TTS) Capabilities added in v0.4.2

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

func (*TTS) Label added in v0.4.2

func (t *TTS) Label() string

func (*TTS) Model added in v0.4.2

func (t *TTS) Model() string

func (*TTS) NumChannels added in v0.4.2

func (t *TTS) NumChannels() int

func (*TTS) Provider added in v0.4.2

func (t *TTS) Provider() string

func (*TTS) SampleRate added in v0.4.2

func (t *TTS) SampleRate() int

func (*TTS) Stream added in v0.4.2

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

func (*TTS) Synthesize added in v0.4.2

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

type TTSOption added in v0.4.2

type TTSOption func(*TTS)

func WithSpitchTTSBaseURL added in v0.0.15

func WithSpitchTTSBaseURL(baseURL string) TTSOption

func WithSpitchTTSLanguage added in v0.0.15

func WithSpitchTTSLanguage(language string) TTSOption

func WithSpitchTTSOutputFormat added in v0.0.15

func WithSpitchTTSOutputFormat(outputFormat string) TTSOption

func WithSpitchTTSSampleRate added in v0.0.15

func WithSpitchTTSSampleRate(sampleRate int) TTSOption

func WithSpitchTTSVoice added in v0.0.15

func WithSpitchTTSVoice(voice string) TTSOption

Jump to

Keyboard shortcuts

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