Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.medera.info/llms.txt

Use this file to discover all available pages before exploring further.

Real-time stateless dictation for clinical editors. No session required — just open the WebSocket, stream PCM audio, receive transcript text and command events.
import { MederaClient } from '@medera/sdk';
const client = new MederaClient({ accessToken });

const ws = await client.transcribe.connect({
  language: 'en-US',
  punctuation: 'smart',
  commands: ['new_paragraph', 'next_section', 'period'],
});

ws.on('interim', (e) => editor.previewText(e.text));
ws.on('final', (e) => editor.commitText(e.text));
ws.on('command', (e) => editor.runCommand(e.command));

const mic = await navigator.mediaDevices.getUserMedia({ audio: true });
ws.streamAudio(mic);
See Transcribe endpoint for full schema.