tts

package
v0.11.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: Apache-2.0, MIT Imports: 13 Imported by: 0

Documentation

Overview

Package tts provides text-to-speech tools for Overkill.

Supported providers:

  • edge: Microsoft Edge TTS (free, no API key, via edge-tts CLI)
  • kittentts: Local KittenTTS (free, via Python + ffmpeg)
  • openai: OpenAI TTS API
  • elevenlabs: ElevenLabs TTS API

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SpeakInput

type SpeakInput struct {
	Text     string `json:"text"`
	Provider string `json:"provider"` // "edge" | "kittentts" | "openai" | "elevenlabs"
	Voice    string `json:"voice"`    // optional per-call voice override
}

SpeakInput is the JSON input for the tts.speak tool.

type SpeakOutput

type SpeakOutput struct {
	AudioPath  string `json:"audio_path"`
	Format     string `json:"format"` // "mp3" | "ogg"
	DurationMs int    `json:"duration_ms"`
	Provider   string `json:"provider"`
}

SpeakOutput is the JSON output from the tts.speak tool.

type Tool

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

Tool implements tools.Tool for text-to-speech synthesis.

func New

func New(cfg config.TTSConfig) *Tool

New creates a new TTS tool with the given config.

func (*Tool) Execute

func (t *Tool) Execute(ctx context.Context, input json.RawMessage) (json.RawMessage, error)

func (*Tool) Name

func (t *Tool) Name() string

Jump to

Keyboard shortcuts

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