diff --git a/www/app/transcripts/new/page.tsx b/www/app/transcripts/new/page.tsx index d9105a4f..b7a65325 100644 --- a/www/app/transcripts/new/page.tsx +++ b/www/app/transcripts/new/page.tsx @@ -44,6 +44,12 @@ const TranscriptCreate = () => { getAudioStream, } = useAudioDevice(); const [hasRecorded, setHasRecorded] = useState(false); + const [transcriptStarted, setTranscriptStarted] = useState(false); + + useEffect(() => { + if (!transcriptStarted && webSockets.transcriptText.length !== 0) + setTranscriptStarted(true); + }, [webSockets.transcriptText]); return ( <> @@ -69,15 +75,30 @@ const TranscriptCreate = () => { useActiveTopic={useActiveTopic} autoscroll={true} /> +
{!hasRecorded ? ( -
- -
+ <> + {transcriptStarted && ( +

Transcription

+ )} +
+
+ {!transcriptStarted ? ( +
+ The conversation transcript will appear here after you + start recording. +
+ ) : ( + + )} +
+
+ ) : ( -
+
+
{topics.length > 0 ? ( <> +

Topics

+ {autoscroll && ( ) : ( -
+
Discussion topics will appear here after you start recording.
It may take up to 5 minutes of conversation for the first topic to