{#if loading}
{/if}
{#if voiceInput}
{ voiceInput = false; }} on:confirm={(e) => { const { text, filename } = e.detail; // url is hostname + /cache/audio/transcription/ + filename const url = `${window.location.origin}/cache/audio/transcription/${filename}`; // Open in new tab if (content.trim() !== '') { content = `${content}\n\n${text}\n\nRecording: ${url}\n\n`; } else { content = `${content}${text}\n\nRecording: ${url}\n\n`; } voiceInput = false; }} />
{:else} {/if}