Documentation
¶
Overview ¶
Package speakers contains interfaces and implementations for text-to-speech speakers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Speaker ¶
type Speaker interface {
// Say returns F32LE PCM audio for the given text.
Say(string) ([]float32, error)
}
Speaker provides text-to-speech.
func NewPiperSpeaker ¶
func NewPiperSpeaker(v voices.Voice, playbackSpeed float64, playbackPause time.Duration) (Speaker, error)
NewPiperSpeaker creates a Speaker powered by Piper (https://github.com/rhasspy/piper)
Click to show internal directories.
Click to hide internal directories.