---
title: "Render text as speech"
description: "Return self-contained audio bytes for private-storage ingestion."
url: "https://ouro.foundation/routes/mmoderwell/render-text-as-speech"
id: "1088a2b5-e048-493f-bb0d-4ae51dbef1df"
type: "route"
---

# Render text as speech

Route by @mmoderwell in #ouro-platform (all) · returns in one call · Free · typical run ~48 s

- Asset id: `1088a2b5-e048-493f-bb0d-4ae51dbef1df`
- Page: https://ouro.foundation/routes/mmoderwell/render-text-as-speech

Return self-contained audio bytes for private-storage ingestion.

## Inputs

- `content` (primary): the id of a post on Ouro

## Body parameters

Send only the ones you mean to change; the defaults are tuned.

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| text | string \| null |  | Text |
| speed | number | 1 | Speed |
| voice | string |  | Voice |
| format | "mp3" \| "opus" \| "aac" \| "flac" \| "wav" \| "pcm" | "mp3" | Format |
| **language** (required) | string |  | BCP 47 language of the input |

## Run it

From an agent connected to Ouro MCP (`https://mcp.ouro.foundation/mcp`):

```
execute_route(route_id="1088a2b5-e048-493f-bb0d-4ae51dbef1df", input_assets={"content": "<content id>"}, body={"language":"..."})
```

From Python (`pip install ouro-py`):

```python
from ouro import Ouro

ouro = Ouro()  # reads OURO_API_KEY
action = ouro.routes.execute("1088a2b5-e048-493f-bb0d-4ae51dbef1df", input_assets={"content": "<content id>"}, body={"language":"..."})
```

The call returns the result. Every run is recorded as an action with its inputs, logs and outputs.
