Transcript on top of Daily recordings

If you'd like to add captions to your Daily recordings, you can combine the transcription feature with the new VCS recording feature like so:


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

Here's some more details in the docs: https://docs.daily.co/reference/daily-js/instance-methods/update-recording#custom-video-layouts-with-vcs-baseline-composition

Tagged: