Overview
You can tell the server which language a session should use by passing a BCP-47 code aspreferred_language when you open the session.
preferred_language is echoed back as detected_language in the session-open response — the
server does not perform real language detection today.
Session open contract
POST/v1/sessions
preferred_language is optional — omit it entirely to use the kiosk’s default persona/language.
Response (201):
A
disclosure_text field (an EU AI Act disclosure string) is planned for a future release but
is not populated by the server today — it is always omitted from the response. The SDK and
widget code below that reads disclosureText / disclosure_text is forward-compatible and
currently a no-op: it will start rendering the moment the backend populates the field, but
don’t build a launch-blocking UI around it yet.JavaScript / TypeScript SDK
Widget — automatic language selector
languageSelector.enabled is true, the widget shows language buttons before the first message is sent. The chosen language is passed to openSession automatically and the disclosure banner (if any) is shown immediately after the session opens.
React
Vue
Python SDK
Go SDK
.NET SDK
C SDK
NULL for config to use all defaults (text mode, no language preference).
Pass NULL for the result parameter if you do not need the detected language or disclosure text.
WordPress plugin
In the admin panel, go to Settings → Humain Kiosk → Language and choose one of:
The AI disclosure checkbox controls whether the disclosure banner is shown to visitors. The text itself is configured in your kiosk settings on the Humain admin panel — note
disclosure_text is not yet populated by the server (see the note above), so this banner will not render until that ships.
Admin panel — configuring language personas
A kiosk can define a language persona per BCP-47 code under Kiosk → Personas:- Open Kiosk → Personas and click Add persona.
- Set the Language field to a BCP-47 code (e.g.
tr,ar,de). - Write the system prompt in that language, or use the same prompt as the default persona.
- Save.
Gemini Live and language support
Voice sessions run on Gemini Live, which natively supports 90+ languages from a single model — no per-language STT model or TTS voice configuration is needed. The model responds in whatever language the user speaks, independent of persona selection;preferred_language and
language_personas only control which system prompt is loaded (see the warning above).
Text sessions use the same LLM for every language and handle multilingual input without any
server-side configuration — but again, without a way to select a different persona per language
today.
Behaviour reference
The
preferred_language field has no effect on which persona a text session uses. detected_language is always just an echo of what you sent, not a real detection result.