speech

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package speech reads text aloud with the phone's own voices.

nimbus native plugin add speech

speech.Say(ctx, "Order ready for table seven", speech.Options{Language: "en-IN"})

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Say

func Say(ctx context.Context, text string, o Options) error

Say reads text and returns when it's done. A cancelled ctx stops it.

Types

type Options

type Options struct {
	Language string  `json:"language"` // BCP 47, such as "hi-IN"; empty for the phone's own
	Rate     float32 `json:"rate"`     // 1 is normal; 0 means 1
}

Options shapes the voice.

Jump to

Keyboard shortcuts

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