piper

package module
v0.0.0-...-74ed3da Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: MIT Imports: 17 Imported by: 2

README

piper

Embedded distribution of the rhasspy/piper TTS system for Go

Documentation

Index

Constants

View Source
const (
	DistArcName  = "dist.tzst"
	DistMetaName = "dist.json"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*VoiceOptions)

func WithNoise

func WithNoise(noise float32) Option

func WithPause

func WithPause(pause float32) Option

func WithSpeed

func WithSpeed(speed float32) Option

type TTS

type TTS struct {
	ModelCard string
	VoiceName string
	// contains filtered or unexported fields
}

func New

func New(dataDir string, voice asset.Asset) (*TTS, error)

func (*TTS) Synthesize

func (t *TTS) Synthesize(text string, opts ...Option) (wav []byte, err error)

type VoiceOptions

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

Jump to

Keyboard shortcuts

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