Procedurally generates a radio weather report

overwrite

+2 -2
package-lock.json
··· 1 { 2 "name": "morning-report", 3 - "version": "0.0.1", 4 "lockfileVersion": 3, 5 "requires": true, 6 "packages": { 7 "": { 8 "name": "morning-report", 9 - "version": "0.0.1", 10 "license": "MIT", 11 "dependencies": { 12 "json5": "2.2.3",
··· 1 { 2 "name": "morning-report", 3 + "version": "0.0.2", 4 "lockfileVersion": 3, 5 "requires": true, 6 "packages": { 7 "": { 8 "name": "morning-report", 9 + "version": "0.0.2", 10 "license": "MIT", 11 "dependencies": { 12 "json5": "2.2.3",
+1 -1
package.json
··· 1 { 2 "name": "morning-report", 3 - "version": "0.0.1", 4 "description": "Procedurally generates a radio weather report", 5 "keywords": [ 6 "weather",
··· 1 { 2 "name": "morning-report", 3 + "version": "0.0.2", 4 "description": "Procedurally generates a radio weather report", 5 "keywords": [ 6 "weather",
+1 -1
src/stitcher.ts
··· 26 const args: string[] = []; 27 files.forEach(f => args.push('-i', f)); 28 args.push('-filter_complex', `[0:a][1:a][2:a]concat=n=${files.length}:v=0:a=1[out]`); 29 - args.push('-map', '[out]', '-ar', '44100', '-ac', '2', '-c:a', 'pcm_s16le', 'output.wav'); 30 await ffmpeg(args, files.length); 31 } 32
··· 26 const args: string[] = []; 27 files.forEach(f => args.push('-i', f)); 28 args.push('-filter_complex', `[0:a][1:a][2:a]concat=n=${files.length}:v=0:a=1[out]`); 29 + args.push('-map', '[out]', '-ar', '44100', '-ac', '2', '-c:a', 'pcm_s16le', 'output.wav', '-y'); 30 await ffmpeg(args, files.length); 31 } 32
+6 -3
test/stitcher.test.ts
··· 41 '2', 42 '-c:a', 43 'pcm_s16le', 44 - 'output.wav' 45 ]); 46 }); 47 ··· 62 '2', 63 '-c:a', 64 'pcm_s16le', 65 - 'output.wav' 66 ]); 67 }); 68 ··· 81 '2', 82 '-c:a', 83 'pcm_s16le', 84 - 'output.wav' 85 ]); 86 }); 87 });
··· 41 '2', 42 '-c:a', 43 'pcm_s16le', 44 + 'output.wav', 45 + '-y' 46 ]); 47 }); 48 ··· 63 '2', 64 '-c:a', 65 'pcm_s16le', 66 + 'output.wav', 67 + '-y' 68 ]); 69 }); 70 ··· 83 '2', 84 '-c:a', 85 'pcm_s16le', 86 + 'output.wav', 87 + '-y' 88 ]); 89 }); 90 });