2 Commits

Author SHA1 Message Date
12862b4f85 no output files pls
All checks were successful
NPM Audit Check / Check NPM audit (push) Successful in -2m17s
Unit tests / Unit tests (push) Successful in -2m5s
2025-08-31 12:33:30 -05:00
16d5e834a5 overwrite
All checks were successful
NPM Audit Check / Check NPM audit (push) Successful in -2m18s
Unit tests / Unit tests (push) Successful in -2m6s
2025-08-30 11:28:18 -05:00
5 changed files with 12 additions and 7 deletions

2
.gitignore vendored
View File

@@ -103,3 +103,5 @@ config/config.json5
distribution/
.env
test/*.js*
output.wav
output.mp3

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "morning-report",
"version": "0.0.1",
"version": "0.0.2",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "morning-report",
"version": "0.0.1",
"version": "0.0.2",
"license": "MIT",
"dependencies": {
"json5": "2.2.3",

View File

@@ -1,6 +1,6 @@
{
"name": "morning-report",
"version": "0.0.1",
"version": "0.0.2",
"description": "Procedurally generates a radio weather report",
"keywords": [
"weather",

View File

@@ -26,7 +26,7 @@ async function Stitcher(files: string[]) {
const args: string[] = [];
files.forEach(f => args.push('-i', f));
args.push('-filter_complex', `[0:a][1:a][2:a]concat=n=${files.length}:v=0:a=1[out]`);
args.push('-map', '[out]', '-ar', '44100', '-ac', '2', '-c:a', 'pcm_s16le', 'output.wav');
args.push('-map', '[out]', '-ar', '44100', '-ac', '2', '-c:a', 'pcm_s16le', 'output.wav', '-y');
await ffmpeg(args, files.length);
}

View File

@@ -41,7 +41,8 @@ describe('stitcher', () => {
'2',
'-c:a',
'pcm_s16le',
'output.wav'
'output.wav',
'-y'
]);
});
@@ -62,7 +63,8 @@ describe('stitcher', () => {
'2',
'-c:a',
'pcm_s16le',
'output.wav'
'output.wav',
'-y'
]);
});
@@ -81,7 +83,8 @@ describe('stitcher', () => {
'2',
'-c:a',
'pcm_s16le',
'output.wav'
'output.wav',
'-y'
]);
});
});