RFactory

How the bot hears

During a call, RFactory uses exactly one hearing source: the meeting platform’s live captions (platform) or its own speech-to-text service (audio).

Captions vs own transcription

One source is chosen when a call starts and stays fixed for that call:

listen values and the per-platform auto rule

The hearing mode is configured by listen in the scope file and can be overridden before joining via the page’s Listen selector (POST /api/call body field listen):

Value Page selector label Behaviour
auto (default) Auto Resolved at join by resolveListen({ listen, platform, sttConfigured }): Google Meet (platform === 'meet') uses platform; non-Meet platforms (teams, zoom, slack) use audio when own transcription is configured, or fall back to platform when it is not. (web/server.js currently accepts Meet and Teams call links, and web/call.js classifies https://meet.google.com/ links as meet and other call links as teams.)
platform Captions Always use the meeting platform’s live captions.
audio Own transcription Always use rfactory-stt. Fails with stt-not-configured if own transcription is not configured.

Any other listen value is rejected with invalid-listen (at scope load or with HTTP 400 on POST /api/call).

When own transcription is not configured

Own transcription is considered configured (sttConfigured: true) when the web server has both RFACTORY_STT_URL and RFACTORY_STT_SECRET_FILE set and RFACTORY_STT_SECRET_FILE exists on disk.

When it is not configured (sttConfigured: false):

Language

The scope field language (default 'en') takes a BCP-47 language tag (such as en, en-GB, de, or no).

Privacy

Environment and scope reference

Scope fields (RFACTORY_SCOPE_FILE)

Field Type Default Description
listen 'auto' \| 'platform' \| 'audio' 'auto' Default hearing source for calls in this scope. Validated by loadScope (invalid-listen on bad values). Can be overridden per call from the page before joining.
language string (BCP-47) 'en' Call language tag. Its lowercase primary subtag must be one of the 100 codes in WHISPER_LANGUAGES (unsupported-language on bad values).

Web server environment variables

Variable Required Description
RFACTORY_STT_URL For audio Base URL of the rfactory-stt service (for example http://rfactory-stt:8080). Trailing slashes are stripped before appending /inference/<secret>.
RFACTORY_STT_SECRET_FILE For audio Path to the file containing the 32-hex-character (128-bit) inference path secret. createStt trims the file and checks /^[0-9a-f]{32}$/i (throwing stt-secret-invalid if invalid).

Per-call worker environment variables (set internally)

When starting a call, web/call.js (and web/vm-call.js -> desktop/runner -> desktop/guest/agent for desktop VM calls) passes:

Rollback