1
Install dependencies
Update the package list and install the core build tools and libcurl:For voice sessions, also install the WebRTC and audio dependencies:
2
Clone and build the library
3
Store your credential securely
Write the credential to a root-readable environment file:
4
Create your kiosk application
Write a minimal kiosk app that reads voice input from ALSA and streams responses:Compile and install the binary:
5
Create a systemd service
Create Enable and start:View live logs:
/etc/systemd/system/humain-kiosk.service:Auto-reconnect on network loss
Auto-reconnect on network loss
The library retries transient network errors automatically (up to Call
max_retries times with
exponential back-off). For persistent failure — e.g., the Pi loses Wi-Fi for more than
90 seconds — the systemd Restart=on-failure directive relaunches the process.For more resilient applications, add an explicit reconnect loop:open_with_retry() both on startup and whenever kiosk_session_message() or
kiosk_session_stream() returns KIOSK_ERR_NETWORK, KIOSK_ERR_TIMEOUT, or
KIOSK_ERR_SESSION_ENDED.Voice session quickstart
Voice session quickstart
Requires the library built with Compile and run:
-DKIOSK_WITH_VOICE=ON -DKIOSK_WITH_ALSA=ON and the voice
dependencies installed (see step 1).