mirror of
https://github.com/cgzirim/seek-tune.git
synced 2025-12-17 08:54:19 +00:00
Set listen duration to 20 seconds
This commit is contained in:
parent
f85b3f00d4
commit
b52684f5af
1 changed files with 2 additions and 2 deletions
|
|
@ -153,10 +153,10 @@ function App() {
|
|||
chunks.push(e.data);
|
||||
};
|
||||
|
||||
// Stop recording after 15 seconds
|
||||
// Stop recording after 20 seconds
|
||||
setTimeout(function () {
|
||||
mediaRecorder.stop();
|
||||
}, 15000);
|
||||
}, 20000);
|
||||
|
||||
mediaRecorder.addEventListener("stop", () => {
|
||||
const blob = new Blob(chunks, { type: "audio/wav" });
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue