aytoasty commited on
Commit
2ca9776
·
1 Parent(s): 8319599

update frontend spec: incorporate speaker diarization, interactive timeline, and quad-view analytics

Browse files
Files changed (1) hide show
  1. .context/frontend_spec.md +24 -1
.context/frontend_spec.md CHANGED
@@ -1 +1,24 @@
1
- # front end specification
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ## visual identity
2
+ - **theme:** glassmorphism on a deep dark void background.
3
+ - **accent colors:** dynamic palette that shifts based on primary detected emotion (e.g., crimson for stress, electric blue for high arousal).
4
+ - **typography:** high-precision monospaced fonts for data, with sans-serif headings (e.g., Lato, JetBrains Mono).
5
+
6
+ ## layout & components
7
+ 1. **header:** metadata bar showing filename, session duration, and a global "Export" button (JSON/CSV).
8
+ 2. **diarized transcript (left panel):** structured list of utterances grouped by speaker. each bubble contains the text and an "emotion chip" that reveals the dominant tags on hover.
9
+ 3. **analytics dashboard (right panel - "the quad-view"):**
10
+ - **russell’s circumplex:** a 2D coordinate grid with a tracking point moving between valence and arousal axes.
11
+ - **plutchik’s wheel:** a radar chart showing intensities across primary emotions.
12
+ - **prosodic meters:** vertical "V-U" style meters for pitch (Hz), jitter (%), and speech rate (wpm).
13
+ - **pad space:** 3D sliders representing pleasure, arousal, and dominance indices.
14
+ 4. **emotional timeline (bottom panel):** horizontal waveform view with color-coded sentiment "heatmaps" (e.g., a crimson stretch for stress). includes playback controls and a zoom slider.
15
+ 5. **recorder hub (center):** circular "record" button with a real-time reactive glow and oscilloscope-style waveform animation.
16
+
17
+ ## interactions
18
+ - **diarization selection:** clicking a speaker avatar filters the analytics to only show their emotional profile.
19
+ - **segment scrubbing:** clicking a transcript segment syncs the timeline and the quad-view analytics to that specific moment.
20
+ - **real-time playback:** users can replay specific chunks of audio with an overlay showing the live-calculated emotion data.
21
+
22
+ ## technical requirements
23
+ - **real-time synchronicity:** ensuring the transcription, timeline, and 4-way analytics update in perfect sync with sub-500ms latency.
24
+ - **framing:** Next.js with Framer Motion for premium transitions.