Skip to main content

Containers

This folder contains the container-side code used for the POC workflow (token.js, backendBot.js, and mockClient.js).

Setup (POC)

Install:

  • Docker
  • Node.js

From this directory:

cd server/containers
npm i
sudo docker compose up

Configure LIVEKIT_URL from ngrok

Get your ngrok public URL:

curl http://localhost:4040/api/tunnels

You will see something like:

"public_url":"https://<randomStuff>.ngrok-free.app"

Replace https:// with wss://, then set it in your .env file:

LIVEKIT_URL=<your-wss-url>

Useful commands

Generate a session token:

node token.js <roomName> <username>

Run the bot and join a session:

node backendBot.js <roomName> <languages>

<languages> is a comma-separated list such as es,en,fr.

Run the mock client:

  1. Create server/prerecordedAudio/
  2. Add WAV files (for example en.wav, es.wav, fr.wav)
  3. Run:
node mockClient.js <roomName> <languages>

token.js, backendBot.js, and mockClient.js all have defaults, so arguments are optional unless you want custom values.