Skip to content

Instantly share code, notes, and snippets.

View zlatinz's full-sized avatar

Zlatin Zlatev zlatinz

View GitHub Profile
@zlatinz
zlatinz / convert.js
Created November 16, 2024 18:12
Convert Microsoft Teams JSON transcript to SRT subtitles (Node.js)
const fs = require('fs');
/* Read a Microsoft Teams JSON file and convert it to a SRT file, using the fields: startOffset, endOffset and text */
// Usage: node convert.js <input.json> <output.srt>
/*example JSON file:
{
"$schema": "http://stream.office.com/schemas/transcript.json",
"version": "1.0.0",