prepend first section of audio while detecting speech (was cut before)

This commit is contained in:
Dobromir Popov
2023-03-07 11:54:56 +02:00
parent 6429852505
commit 5354d8c328
2 changed files with 53 additions and 10 deletions

View File

@ -35,7 +35,7 @@ wss.on('connection', (ws) => {
}
};
//"yyyymmdd-hhMMss"
var timestampfilename = Date.now("yyyymmdd-hhMMss");
//save the audio data to a file to /rec subfolder
@ -85,7 +85,6 @@ app.get('/wsurl', (req, res) => {
res.send(process.env.WS_URL, 200, { 'Content-Type': 'text/plain' });
});
app.listen(8080, () => {
console.log('Server listening on port 8080');
});