Skip to content

Commit 69c9cfa

Browse files
Merge pull request #1596 from zachlasiuk/main
TEMPLATE: updated timeout length to be 60 sec for audio demo
2 parents 8c4a6ef + df2a867 commit 69c9cfa

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ package-lock.json
1111
*.DS_Store
1212
nohup.out
1313

14-
venv/
14+
venv/
15+
contributor_private.csv

themes/arm-design-system-hugo-theme/layouts/partials/demo-components/llm-voice-transcriber/javascript--llm-voice-transcriber.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
let audioChunks = [];
8888
let audioBlob = null;
8989
let audio_cap_timeout;
90-
let audio_cap_timeout_value = 15000;
90+
let audio_cap_timeout_value =60000;
9191
let isRecording = false;
9292

9393
const audio_playback = document.getElementById('audio-playback');
@@ -345,7 +345,7 @@
345345

346346
// Set timeout
347347
const controller = new AbortController();
348-
const timeoutId = setTimeout(() => controller.abort(), 5000); // 5 seconds timeout
348+
const timeoutId = setTimeout(() => controller.abort(), 2000); // 20 seconds timeout
349349

350350
console.log('Sending audio to server...');
351351
console.log('--------------------------');

0 commit comments

Comments
 (0)