Module exposing: Options, Result
// Source: https://github.com/VoiceBlender/voiceblender | License: MIT | Copyright 2026 Messageroute Ltd
// Provided via justclaw.it.com; keep this notice with the code.
package tts
import (
"context"
"io"
)
// Options controls TTS synthesis parameters.
type Options struct {
Voice string // provider-specific voice identifier
ModelID string // optional, provider-specific model
Language string // optional, language code (e.g. "en-US", "pl-pl")
Prompt string // optional, style/tone instruction (Google Gemini TTS)
APIKey string // per-request API key override
}
// Result holds the synthesized audio stream.
type Result struct {
Audio io.ReadCloser
MimeType string // "audio/mpeg", "audio/wav", etc.
}
// Provider synthesizes text into an audio stream.
type Provider interfa
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key