tts

package
v0.0.0-...-20a8030 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: BSD-3-Clause Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Google

type Google struct {
	Lang string
	Name string
	// contains filtered or unexported fields
}

func NewGoogle

func NewGoogle(l, name string) *Google

func (*Google) Close

func (g *Google) Close()

func (*Google) Connect

func (g *Google) Connect(keyfile string) error

func (*Google) Speech

func (g *Google) Speech(text string) ([]byte, error)

type Piper

type Piper struct {
	Lang string
	Name string
	// contains filtered or unexported fields
}

func NewPiper

func NewPiper(l, name string) *Piper

func (*Piper) Close

func (p *Piper) Close()

func (*Piper) Connect

func (p *Piper) Connect(datadir string) error

func (*Piper) Speech

func (p *Piper) Speech(text string) ([]byte, error)

func (*Piper) UseGPU

func (p *Piper) UseGPU(gpu bool)

type Speaker

type Speaker interface {
	Connect(string) error
	Close()
	Speech(text string) ([]byte, error)
}

Jump to

Keyboard shortcuts

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