Documentation
¶
Overview ¶
Package speak provides a tool for text-to-speech synthesis.
Index ¶
- type Inputs
- type Tool
- func (t *Tool) Available() bool
- func (t *Tool) Execute(ctx context.Context, args map[string]any) (string, error)
- func (t *Tool) Name() string
- func (t *Tool) Paths(ctx context.Context, args map[string]any) (read, write []string, err error)
- func (t *Tool) Sandboxable() bool
- func (t *Tool) Schema() tool.Schema
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Inputs ¶
type Inputs struct {
Text string `` /* 127-byte string literal not displayed */
OutputPath string `` /* 127-byte string literal not displayed */
Voice string `json:"voice,omitempty" jsonschema:"description=Voice identifier (e.g. alloy\\, af_heart). Default from config."`
}
Inputs defines the parameters for the Speak tool.
type Tool ¶
type Tool struct {
tool.Base
// Cfg is the full config — needed because this tool creates sub-agents
// via agent.New(), which requires access to agents, providers, modes,
// and the full BuildAgent pipeline.
Cfg config.Config
CfgPaths config.Paths
Rt *config.Runtime
}
Tool implements text-to-speech synthesis via a TTS server.
func (*Tool) Sandboxable ¶
Sandboxable returns false because the tool makes network calls.
Click to show internal directories.
Click to hide internal directories.