tts
componentv1.0.0Text-to-speech synthesis — offline via espeak or online via OpenAI
Usage
This is a built-in component — it ships with kdeps and requires no installation. Use it directly in your workflow resource:
run:
tts:
# see README for options
See the kdeps CLI docs for full component configuration reference.
README
tts
Text-to-speech synthesis. Built-in kdeps component.
Two resources: speak-offline (espeak, no API key needed) and speak-online (OpenAI TTS API).
Usage
# Offline TTS (espeak)
run:
component:
name: tts
resourceId: speak-offline
with:
text: "Hello world"
# Online TTS (OpenAI)
run:
component:
name: tts
resourceId: speak-online
with:
text: "Hello world"
voice: nova
apiKey: "{{ env('OPENAI_API_KEY') }}"
Inputs
| Name | Required | Default | Description |
|---|---|---|---|
| text | yes | — | Text to convert to speech |
| voice | no | alloy | OpenAI voice: alloy, echo, fable, onyx, nova, shimmer |
| apiKey | no | — | OpenAI API key (for speak-online) |
Versions
| Version | Published | Status |
|---|---|---|
| 1.0.0 | 4/12/2026 | active |
Details
- Author
- kdeps
- License
- Apache-2.0
- Latest Version
- 1.0.0
- Published
- 4/12/2026
Tags
ttsspeechopenaiespeakaudio