docs(realtime): fix Opus backend installation (#11018)

The Realtime guide incorrectly sent the Opus backend through the model gallery endpoint. Point users to the backend gallery API and document the UI and CLI alternatives.

Assisted-by: Codex:gpt-5

Signed-off-by: Richard Palethorpe <io@richiejp.com>
This commit is contained in:
Richard Palethorpe
2026-07-21 14:33:55 +01:00
committed by GitHub
parent 54d5c18bfb
commit 0d2124894e

View File

@@ -192,10 +192,18 @@ The response contains the SDP answer to complete the WebRTC handshake.
#### Opus backend requirement
WebRTC uses the Opus audio codec for encoding and decoding audio on RTP tracks. The **opus** backend must be installed for WebRTC to work. Install it from the model gallery:
WebRTC uses the Opus audio codec for encoding and decoding audio on RTP tracks. The **opus** backend must be installed for WebRTC to work. Install it from the **Backends** page in the web UI, or from the backend gallery with the API:
```bash
curl http://localhost:8080/models/apply -H "Content-Type: application/json" -d '{"id": "opus"}'
curl -X POST http://localhost:8080/backends/apply \
-H "Content-Type: application/json" \
-d '{"id": "opus"}'
```
For a local binary installation, you can instead use the CLI:
```bash
local-ai backends install opus
```
Or set the `EXTERNAL_GRPC_BACKENDS` environment variable if running a local build: