google

package
v0.0.0-...-66bbac4 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const GoogleTTS common.TTSModel = "google"

Variables

This section is empty.

Functions

func NewTTSOptionsGoogle

func NewTTSOptionsGoogle() common.TTSOptions

Types

type TTSGoogle

type TTSGoogle struct{}

func NewTTSGoogle

func NewTTSGoogle() *TTSGoogle

func (*TTSGoogle) TTS

func (c *TTSGoogle) TTS(message common.TTSMessage) (common.TTSResult, error)

func (*TTSGoogle) TTSWithContext

func (c *TTSGoogle) TTSWithContext(ctx context.Context, message common.TTSMessage) (common.TTSResult, error)

func (*TTSGoogle) TTSWithOptions

func (c *TTSGoogle) TTSWithOptions(ctx context.Context, opts common.TTSOptions) (common.TTSResult, error)

type TTSOptionsGoogle

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

func (TTSOptionsGoogle) GetRequest

func (c TTSOptionsGoogle) GetRequest() interface{}

func (TTSOptionsGoogle) GetTimeout

func (c TTSOptionsGoogle) GetTimeout() time.Duration

func (TTSOptionsGoogle) WithAudioEncoding

func (c TTSOptionsGoogle) WithAudioEncoding(encoding string) common.TTSOptions

func (TTSOptionsGoogle) WithLanguage

func (c TTSOptionsGoogle) WithLanguage(language string) common.TTSOptions

func (TTSOptionsGoogle) WithModel

func (TTSOptionsGoogle) WithPitch

func (c TTSOptionsGoogle) WithPitch(pitch float64) common.TTSOptions

func (TTSOptionsGoogle) WithPrompt

func (c TTSOptionsGoogle) WithPrompt(string) common.TTSOptions

func (TTSOptionsGoogle) WithSimilarityBoost

func (c TTSOptionsGoogle) WithSimilarityBoost(float32) common.TTSOptions

func (TTSOptionsGoogle) WithSpeakingRate

func (c TTSOptionsGoogle) WithSpeakingRate(rate float64) common.TTSOptions

func (TTSOptionsGoogle) WithStability

func (c TTSOptionsGoogle) WithStability(float32) common.TTSOptions

func (TTSOptionsGoogle) WithText

func (c TTSOptionsGoogle) WithText(text string) common.TTSOptions

func (TTSOptionsGoogle) WithTimeout

func (c TTSOptionsGoogle) WithTimeout(timeout time.Duration) common.TTSOptions

func (TTSOptionsGoogle) WithVoice

func (c TTSOptionsGoogle) WithVoice(voice string) common.TTSOptions

func (TTSOptionsGoogle) WithVolumeGain

func (c TTSOptionsGoogle) WithVolumeGain(gain float64) common.TTSOptions

Jump to

Keyboard shortcuts

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