From 312e83eeec004a87e432e7777fb25293effefbc7 Mon Sep 17 00:00:00 2001 From: rishikanthc Date: Tue, 15 Oct 2024 19:14:26 -0700 Subject: [PATCH] feat(speaker-labels): Display speakers in transcript pane --- src/lib/components/DisplayPane.svelte | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/src/lib/components/DisplayPane.svelte b/src/lib/components/DisplayPane.svelte index df1f017..a6b3331 100644 --- a/src/lib/components/DisplayPane.svelte +++ b/src/lib/components/DisplayPane.svelte @@ -2,6 +2,7 @@ import { ScrollArea } from 'bits-ui'; import { Button } from 'bits-ui'; import { Tabs } from 'bits-ui'; + import { Volume2 } from 'lucide-svelte'; import AudioViz from '$lib/components/AudioViz.svelte'; import { Combobox } from 'bits-ui'; import { Sparkles, ChevronsUpDown, Search, Check } from 'lucide-svelte'; @@ -88,12 +89,25 @@ {#if transcript} {#each transcript as t} {#if t.text !== ''} -
-
+
+
+ {#if t.speaker} +
+ +
{t.speaker}
+
+ {/if} {t.timestamps.from.split(',')[0]}
-

{t.text}

+

{t.text}

{/if}