---
title: "Synthesize speech from text"
method: POST
path: "/api/audio/{agentId}/audio-messages/synthesize"
tags: ["audio"]
---

# Synthesize speech from text

`POST /api/audio/{agentId}/audio-messages/synthesize`

Convert text to speech using agent's voice settings

## Path parameters

- `agentId` string, uuid, required

## Request body

- object
  - `text` string, required — Text to convert to speech
  - `options` object
    - `voice` string — Voice ID or name
    - `language` string — Language code

## Response `200`

Speech synthesized successfully

## Other responses

- `400` — Invalid request
- `404` — Agent not found
- `500` — Error synthesizing 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)
