---
title: "Generate speech from text"
method: POST
path: "/api/audio/{agentId}/speech/generate"
tags: ["audio"]
---

# Generate speech from text

`POST /api/audio/{agentId}/speech/generate`

Generate speech audio from text using agent's voice settings

## Path parameters

- `agentId` string, uuid, required

## Request body

- object
  - `text` string, required — Text to convert to speech

## Response `200`

Speech generated successfully

## Other responses

- `400` — Invalid request
- `404` — Agent not found
- `500` — Error generating speech

---

[API](https://skmtc.net/elizaos/apis/eliza-os-api.md) · [All operations](https://skmtc.net/elizaos/apis/eliza-os-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elizaos/eliza-os-api/revisions/f43280bfdb0c/schema)
