Upload folder using huggingface_hub
Browse files
6.6.0/audio/interactive/InteractiveAudio.svelte
CHANGED
|
@@ -281,14 +281,14 @@
|
|
| 281 |
if (pending) {
|
| 282 |
submit_pending_stream_on_pending_end = true;
|
| 283 |
}
|
| 284 |
-
dispatch_blob(audio_chunks, "stop_recording");
|
| 285 |
onclear?.();
|
| 286 |
mode = "";
|
| 287 |
}
|
| 288 |
}
|
| 289 |
|
| 290 |
$effect(() => {
|
| 291 |
-
if (!recording && recorder) stop();
|
| 292 |
});
|
| 293 |
|
| 294 |
$effect(() => {
|
|
|
|
| 281 |
if (pending) {
|
| 282 |
submit_pending_stream_on_pending_end = true;
|
| 283 |
}
|
| 284 |
+
await dispatch_blob(audio_chunks, "stop_recording");
|
| 285 |
onclear?.();
|
| 286 |
mode = "";
|
| 287 |
}
|
| 288 |
}
|
| 289 |
|
| 290 |
$effect(() => {
|
| 291 |
+
if (!recording && recorder && mode !== "") stop();
|
| 292 |
});
|
| 293 |
|
| 294 |
$effect(() => {
|