HAL API — TTS / STT / Mic / Speaker / LED
Full HAL routes live in os/hal/routes/. Reach them from the device with
curl http://127.0.0.1:5001/…, or from your laptop / web dashboard via
nginx at http://<device-ip>/api/hardware/….
Every endpoint returns {"status": 1, "data": <payload>, "message": null} on
success, {"status": 0, "data": null, "message": "…"} on failure.
Two ways to call anything in this section:
- Over HTTP (from anywhere — a Python script, a curl, another service).
- In-process from HAL Python code — import the route function directly and call it with the pydantic request. Useful when you're writing a new HAL driver or route.