speech

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2026 License: MIT Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnavailable = errors.New("speech: system text-to-speech is unavailable")

Functions

This section is empty.

Types

type Options

type Options struct {
	Language string
	Voice    string
	Rate     float64
	Pitch    float64
	Volume   float64
}

type Status

type Status struct {
	Err      error
	Speaking bool
	Paused   bool
}

type Synthesizer

type Synthesizer struct {
	// contains filtered or unexported fields
}

func New

func New() *Synthesizer

func (*Synthesizer) Available

func (s *Synthesizer) Available() bool

func (*Synthesizer) Close

func (s *Synthesizer) Close() error

func (*Synthesizer) Pause

func (s *Synthesizer) Pause() error

func (*Synthesizer) Resume

func (s *Synthesizer) Resume() error

func (*Synthesizer) Speak

func (s *Synthesizer) Speak(text string, options Options) error

func (*Synthesizer) Status

func (s *Synthesizer) Status() Status

func (*Synthesizer) Stop

func (s *Synthesizer) Stop() error

Jump to

Keyboard shortcuts

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