piper

package module
v0.0.0-...-b9f71d8 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: MIT Imports: 17 Imported by: 0

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 TTS

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

func New

func New(piperDir string, va asset.Asset) (*TTS, error)

DEPRECATED: use NewEmbedded instead

func NewEmbedded

func NewEmbedded(piperDir string, va asset.Asset) (*TTS, error)

func NewExtracted

func NewExtracted(piperDir string, voiceDir string) (*TTS, error)

func (*TTS) String

func (t *TTS) String() string

func (*TTS) Synthesize

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

type VoiceConfig

type VoiceConfig struct {
	VoiceName string
	ModelCard string
	ModelFn   string
	ConfigFn  string
}

Jump to

Keyboard shortcuts

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