# voice.say

Source: https://docs.lightair.app/developers/remote-api/voice.say

> Says text aloud on the Voice track, after anything already waiting to be said.

JSON-RPC 2.0 method of Lightair's Remote API (ws://localhost:4455/rpc). Group: Chat and voice. Script plugins need the `project.write` permission.

The Voice track is added when the workspace has none. Text that's refused (personal data, slurs) answers an error saying why. `widgets.speak` is an older name for this method.

## Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `text` | `string` | yes | What to say. |
| `profile` | `string` | no | A voice profile's name or id. Default: the default voice. |
| `max_chars` | `number` | no | Cut the text at this many characters, 10 to 5000. Default 1000. |

## Result

| Name | Type | Required | Description |
|---|---|---|---|
| `said` | `string` | no | What will be said. |

## Errors

Invalid params (-32602) without `text`. A state error (-32005) when the text is refused or the voice can't speak.

## From an AI agent

The MCP server's `say_aloud or voice (action: say)` reaches this method.

## Example

```json
{ "jsonrpc": "2.0", "id": 1, "method": "voice.say", "params": { "text": "Thanks for the raid!" } }
```

Result:

```json
{ "said": "Thanks for the raid!" }
```

## Related

- [voice.stop](https://docs.lightair.app/developers/remote-api/voice.stop.md)
- [voice.profiles](https://docs.lightair.app/developers/remote-api/voice.profiles.md)
- [cohost.say](https://docs.lightair.app/developers/remote-api/cohost.say.md)
