diff --git a/ui/packages/app/src/components/StatusTracker/StatusTracker.svelte b/ui/packages/app/src/components/StatusTracker/StatusTracker.svelte index 8fc6246261..0e1cf537e6 100644 --- a/ui/packages/app/src/components/StatusTracker/StatusTracker.svelte +++ b/ui/packages/app/src/components/StatusTracker/StatusTracker.svelte @@ -53,6 +53,7 @@ export let status: "complete" | "pending" | "error"; export let scroll_to_output: boolean = false; export let timer: boolean = true; + export let visible: boolean = true; let el: HTMLDivElement; @@ -120,6 +121,7 @@
{#if status === "pending"} diff --git a/ui/packages/audio/src/Audio.svelte b/ui/packages/audio/src/Audio.svelte index 78aba71a6f..b228f52276 100644 --- a/ui/packages/audio/src/Audio.svelte +++ b/ui/packages/audio/src/Audio.svelte @@ -69,14 +69,14 @@ recording = false; } audio_blob = new Blob(audio_chunks, { type: "audio/wav" }); + audio_chunks = []; value = { data: await blob_to_data_url(audio_blob), name }; dispatch(streaming ? "stream" : "change", value); - const audioTracks = stream.getAudioTracks(); - audioTracks.forEach((track) => track.stop()); }); + inited = true; } async function record() {