azure

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

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type AzureSTT

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

func NewAzureSTT

func NewAzureSTT(apiKey string, region string) (*AzureSTT, error)

func (*AzureSTT) Capabilities

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

func (*AzureSTT) Label

func (s *AzureSTT) Label() string

func (*AzureSTT) Model added in v0.0.15

func (s *AzureSTT) Model() string

func (*AzureSTT) Provider added in v0.0.15

func (s *AzureSTT) Provider() string

func (*AzureSTT) Recognize

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

func (*AzureSTT) Stream

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

type AzureTTS

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

func NewAzureTTS

func NewAzureTTS(apiKey string, region string, voice string, languages ...string) (*AzureTTS, error)

func (*AzureTTS) Capabilities

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

func (*AzureTTS) Label

func (t *AzureTTS) Label() string

func (*AzureTTS) Language added in v0.0.15

func (t *AzureTTS) Language() string

func (*AzureTTS) Model added in v0.0.15

func (t *AzureTTS) Model() string

func (*AzureTTS) NumChannels

func (t *AzureTTS) NumChannels() int

func (*AzureTTS) Provider added in v0.0.15

func (t *AzureTTS) Provider() string

func (*AzureTTS) SampleRate

func (t *AzureTTS) SampleRate() int

func (*AzureTTS) Stream

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

func (*AzureTTS) Synthesize

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

Jump to

Keyboard shortcuts

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