Multi-source audio: recording test

Integration guide

  1. Serve this folder over localhost or HTTPS. For example, run npx http-server . -a 127.0.0.1 -p 8080 from this folder and open http://127.0.0.1:8080/multi-source-recording-test.html.
  2. Set the hospital, patient, doctors, and source list. Generate new consultation IDs once, then copy the shared configuration to each participant's page. Enter the API key separately on each page.
  3. Select a different participant on each device or tab. Connect, wait for acceptance, and start recording. Separate devices or microphones avoid recording the same room audio multiple times.
  4. Stop every recording, wait for each source to show uploaded or disabled, then complete from one doctor page. Keep the connections open for the final result.

Shared consultation

Before connecting, choose one doctor and one patient, or record without patient audio using at least two doctors. These buttons update the participant list and shared configuration. When the list changes, new consultation IDs are created. Copy the configuration to every participant page, select a different participant on each, connect, and start recording. Hospital patient ID is required for either setup.

Microphone waveformReady to record
Live microphone waveform appears while recording.

Shows this page's microphone while recording. Speak to see the waveform move.

Disconnected

0 chunks acknowledged · 0 bytes received

The API key is sent in init, never included in shared configuration, and never saved to browser storage. Only the primary doctor sends primary_practitioner_id. A stopped source cannot restart recording in this session.

Session sources

SourceRoleStatusBytes

Disable a declared source only when it will not contribute more audio. Connected sources automatically flush their recorder when source.stop_requested arrives.

Processed result

Waiting for session.processed.

Events