Liforma example

OpenAI Realtime embed

SvelteKit coffee-barista embed with OpenAI Realtime as speech-to-speech. Integration: @liforma/client/openai.

BYO voice docs

1. Suggested Realtime instructions

These instructions are applied when minting the ephemeral session (and again via session.update via startByoSpeech) so Anna matches the coffee-barista scenario.

2. Connect OpenAI, then start the player

Paste your OpenAI API key, click Connect, then tap Start experience on the avatar. This app’s API route mints an ephemeral Realtime client secret (demo-only — use a real backend in production).

This demo uses Realtime WebSocket so PCM + transcript map onto createUtterance (same pattern as ElevenLabs). For WebRTC, see the OpenAI BYO docs.

Loading… · Experience: exp_01EXAMPLES_COFFEE_BARISTA

Connect OpenAI

The experience will start after you connect to OpenAI Realtime below.