# cohost.say

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

> Has the AI co-host say these words, word for word, in its own voice.

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

## Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `text` | `string` | yes | What to say. |

## Result

| Name | Type | Required | Description |
|---|---|---|---|
| `said` | `string` | no | The words. |

## Errors

Invalid params (-32602) without `text`. A state error (-32005) when there's no co-host, it's off, or PiAir can't say it now.

## From an AI agent

The MCP server's `cohost (action: say)` reaches this method.

## Example

```json
{ "jsonrpc": "2.0", "id": 1, "method": "cohost.say", "params": { "text": "Welcome back, everyone." } }
```

Result:

```json
{ "said": "Welcome back, everyone." }
```

## Related

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