> ## Documentation Index
> Fetch the complete documentation index at: https://humain.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Embedded devices

> Run Humain Kiosk on embedded Linux, Raspberry Pi, FreeRTOS, and Zephyr using the C99 library.

The Humain Kiosk C library (`kiosk-c`) is a C99 client for devices that cannot run a full
operating system or browser runtime. It wraps the [Device REST API](https://humain.mintlify.site/connections/rest-text.md) and
[WebSocket streaming API](https://humain.mintlify.site/connections/websocket-streaming.md) in a minimal, dependency-light interface
backed by **libcurl**.

All AI processing is server-side. The library sends text or audio to the Humain backend and
receives responses — the device itself needs no LLM, STT, or TTS capability.

***

## Requirements

| Requirement | Minimum |
| - | - |
| C standard | C99 |
| libcurl | 7.68.0 |
| TLS | OpenSSL 1.1+ or mbedTLS 2.16+ |
| Session mode | Text (REST + WebSocket) · Voice via WebRTC (Linux targets) |
| ROM | \~40 KB (text only) · \~240 KB with voice |
| RAM | \~8 KB per text session · \~512 KB for WebRTC voice session |
| Network | TCP/IP with DNS, HTTPS (port 443) |

> [!NOTE]
>
> Voice sessions require `-DKIOSK_WITH_VOICE=ON` at build time and a Linux target.
> FreeRTOS and Zephyr support text sessions only in v1. For voice on constrained
> hardware, see the [audio hardware guide](https://humain.mintlify.site/embedded/audio-hardware.md) for recommended
> companion module architectures.

***

## Choose your platform

> [card] [C library reference](https://humain.mintlify.site/embedded/c-library.md)
>
> Full API reference for `kiosk.h` — configuration, session lifecycle, streaming callback,
> error codes, and memory model.

> [card] [Raspberry Pi](https://humain.mintlify.site/embedded/raspberry-pi.md)
>
> Step-by-step guide for Raspberry Pi (arm64, Raspberry Pi OS). Covers build, systemd
> service, audio routing, and auto-reconnect.

> [card] [FreeRTOS](https://humain.mintlify.site/embedded/freertos.md)
>
> Integrate the kiosk library into a FreeRTOS task. Covers heap sizing, task stack
> requirements, and text / streaming usage.

> [card] [Zephyr RTOS](https://humain.mintlify.site/embedded/zephyr.md)
>
> Zephyr module integration. Covers Kconfig options, CMakeLists.txt, and a minimal
> sample application using the Zephyr HTTP client.

***

## Reference

> [card] [Audio hardware](https://humain.mintlify.site/embedded/audio-hardware.md)
>
> Microphone and speaker selection guide for kiosk terminals — USB, I²S, MEMS, and
> analogue options with STT accuracy notes.

> [card] [Credential management](https://humain.mintlify.site/embedded/credential-management.md)
>
> Secure credential storage on embedded targets — environment files, dm-crypt,
> ATECC608 secure element, and TPM 2.0.

> [card] [OTA updates](https://humain.mintlify.site/embedded/ota-updates.md)
>
> Keeping the library and firmware up to date with SWUpdate, Mender, and Balena Cloud.
> Includes credential preservation across updates.

> [card] [C library (GitHub)](https://github.com/humain/kiosk-c)
>
> Source, CMakeLists, toolchain files, and pre-built release binaries for common targets.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.