synthesizer

package
v0.0.0-...-1c9a717 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sythesizer

type Sythesizer interface {
	// Say returns F32LE PCM audio for the given text.
	Say(string) ([]float32, error)
}

Sythesizer provides text-to-speech.

func NewPiperSpeaker

func NewPiperSpeaker(v Voice) (Sythesizer, error)

NewPiperSpeaker creates a Speaker powered by Piper (https://github.com/rhasspy/piper)

type Voice

type Voice int
const (
	// FeminineVoice is the "Jenny" en-GB voice.
	// Origin: https://github.com/dioco-group/jenny-tts-dataset
	FeminineVoice Voice = iota
	// MasculineVoice is the "Alan" en-GB voice.
	// Origin: https://popey.me
	MasculineVoice
)

Jump to

Keyboard shortcuts

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