---
title: "Convert conversation to speech"
method: POST
path: "/api/audio/{agentId}/speech/conversation"
tags: ["audio"]
---

# Convert conversation to speech

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

## Request

- Base URL: `http://localhost:3000`
- URL: `http://localhost:3000/api/audio/{agentId}/speech/conversation`
- Auth: none declared

Convert a conversation (multiple messages) to speech

## Path parameters

- `agentId` string, uuid, required

## Request body

- object
  - `messages` object[], required
    - `text` string
    - `speaker` string
    - `timestamp` integer

## Response `200`

Conversation converted to speech successfully

## Other responses

- `400`: Invalid request
- `404`: Agent not found
- `500`: Error converting conversation

---

[API](https://skmtc.dev/elizaos/apis/eliza-os-api.md) - [All operations](https://skmtc.dev/elizaos/apis/eliza-os-api/llms.txt) - [OpenAPI document](https://skmtc.dev/elizaos/apis/eliza-os-api/revisions/d606a12682bb?raw)
