docs: add voice assistant documentation

This commit is contained in:
weishu
2026-01-19 18:48:13 +08:00
parent 8f5b773b23
commit e9db67e18b
6 changed files with 160 additions and 0 deletions
+16
View File
@@ -113,6 +113,8 @@ On first run, HAPI:
| `HAPI_HOME` | `~/.hapi` | Config directory path |
| `DB_PATH` | `~/.hapi/hapi.db` | Database file path |
| `CORS_ORIGINS` | - | Allowed CORS origins |
| `ELEVENLABS_API_KEY` | - | ElevenLabs API key for voice |
| `ELEVENLABS_AGENT_ID` | Auto-created | Custom ElevenLabs agent ID |
</details>
## CLI setup
@@ -220,6 +222,20 @@ With the runner running:
- You can spawn sessions remotely from the web app
- Sessions persist even when the terminal is closed
### Voice assistant setup
Enable voice control:
1. Get an API key from [elevenlabs.io](https://elevenlabs.io/app/settings/api-keys)
2. Set the environment variable:
```bash
export ELEVENLABS_API_KEY="your-api-key"
hapi server --relay
```
See [Voice Assistant](./voice-assistant.md) for usage details.
### Security notes
- Keep tokens secret and rotate if needed