tts

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SynthesizeAzure

func SynthesizeAzure(ctx context.Context, service config.TTSService, voiceName, text string) ([]byte, error)

func SynthesizeAzureMultiTalker

func SynthesizeAzureMultiTalker(ctx context.Context, service config.TTSService, voiceName string, turns []MultiTalkerTurn) ([]byte, error)

Types

type MultiTalkerTurn

type MultiTalkerTurn struct {
	Speaker string `xml:"speaker,attr"`
	Text    string `xml:",chardata"`
}

type ResponseError

type ResponseError struct {
	StatusCode int
	Body       string
}

func (*ResponseError) Error

func (e *ResponseError) Error() string

func (*ResponseError) Retryable

func (e *ResponseError) Retryable() bool

Jump to

Keyboard shortcuts

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