Add transcripts to your recordings

Options
ashley
ashley Member, Daily Alumni

Using a custom VCS layout and live transcription, you can make sure those transcripts show up on the recorded stream using this code snippet:


callObject.on('app-message', (newText) => {
    if (msg.fromId === 'transcription' && msg.data.is_final) {
        call.updateRecording({
            layout: {
                preset: "custom",
                composition_params: {
                    "showTextOverlay": true,
                    "text.content": newText
                }
            }
        });
    }
});

The docs here go into more granular detail.


Hope it helps someone!