Audio Tools
Text to Speech
Convert text to natural-sounding speech.
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
Convert text to natural-sounding speech.
tools.textToSpeech.generateSpeech
| Parameter | Type | Required | Description |
|---|---|---|---|
modelId | string | Yes | The TTS model ID |
text | string | Yes | Text to convert to speech |
voice | string | No | Voice ID or name |
speed | number | No | Speech speed (0.5 - 2.0) |
pitch | number | No | Voice pitch adjustment |
const result = await trpc.tools.textToSpeech.generateSpeech.mutate({
modelId: "tts-pro",
text: "Welcome to EnhanceAI, the future of creative tools.",
voice: "nova",
speed: 1.0,
})
{
taskId: string
status: "pending"
}