speakers

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: MIT Imports: 10 Imported by: 0

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 float32, playbackPause time.Duration) (Speaker, error)

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

Jump to

Keyboard shortcuts

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