Architecture Note: PLAYACTR leverages a multi-model AI stack combining Deepgram for real-time audio transcription, Claude for deep strategic analysis, and Groq for ultra-fast inference - delivering comprehensive sports video analytics with AI-powered insights.
%%{init: {'theme': 'dark', 'themeVariables': { 'primaryColor': '#C17852', 'primaryTextColor': '#F0F6FC', 'primaryBorderColor': '#4A5E32', 'lineColor': '#E6C98F', 'secondaryColor': '#161B22', 'tertiaryColor': '#0D1117', 'background': '#0D1117', 'mainBkg': '#161B22', 'nodeBorder': '#4A5E32', 'clusterBkg': '#161B22', 'clusterBorder': '#4A5E32', 'titleColor': '#E6C98F', 'edgeLabelBackground': '#161B22'}}}%%
flowchart LR
subgraph Input["🎬 Video Source"]
VID["📹 Sports Video
Game Footage"]
AUD["🔊 Audio Track
Commentary"]
end
subgraph Deepgram["🎙️ Deepgram API"]
STT["🎤 Speech-to-Text
Real-time ASR"]
DIAR["👥 Speaker Diarization"]
PUNC["📝 Punctuation
& Formatting"]
end
subgraph Output["📄 Transcript"]
TXT["💬 Play-by-Play Text"]
TS["⏱️ Timestamps"]
SPK["🗣️ Speaker Labels"]
end
VID --> AUD
AUD --> STT
STT --> DIAR
DIAR --> PUNC
PUNC --> TXT
PUNC --> TS
PUNC --> SPK
%%{init: {'theme': 'dark', 'themeVariables': { 'primaryColor': '#C17852', 'primaryTextColor': '#F0F6FC', 'primaryBorderColor': '#4A5E32', 'lineColor': '#E6C98F', 'secondaryColor': '#161B22', 'tertiaryColor': '#0D1117', 'background': '#0D1117', 'mainBkg': '#161B22', 'nodeBorder': '#4A5E32', 'clusterBkg': '#161B22', 'clusterBorder': '#4A5E32', 'titleColor': '#E6C98F', 'edgeLabelBackground': '#161B22'}}}%%
flowchart LR
subgraph Input["📥 Input Data"]
TRS["📄 Transcript
Play-by-Play"]
CTX["📋 Game Context
Score, Time"]
end
subgraph Claude["🧠 Claude Analysis"]
PRM["📝 Prompt Engineering"]
ANL["🔍 Deep Analysis
Strategic Reasoning"]
INS["💡 Insight Generation"]
end
subgraph Output["📊 Strategic Insights"]
PLY["🏈 Play Breakdown"]
STR["📈 Strategy Analysis"]
REC["🎯 Recommendations"]
end
TRS --> PRM
CTX --> PRM
PRM --> ANL
ANL --> INS
INS --> PLY
INS --> STR
INS --> REC
%%{init: {'theme': 'dark', 'themeVariables': { 'primaryColor': '#C17852', 'primaryTextColor': '#F0F6FC', 'primaryBorderColor': '#4A5E32', 'lineColor': '#E6C98F', 'secondaryColor': '#161B22', 'tertiaryColor': '#0D1117', 'background': '#0D1117', 'mainBkg': '#161B22', 'nodeBorder': '#4A5E32', 'clusterBkg': '#161B22', 'clusterBorder': '#4A5E32', 'titleColor': '#E6C98F', 'edgeLabelBackground': '#161B22'}}}%%
flowchart LR
subgraph Query["🔍 Real-time Query"]
USR["👤 User Question"]
CTX["📋 Play Context"]
end
subgraph Groq["⚡ Groq LPU"]
QUE["📥 Query Processing"]
LLM["🚀 LLaMA Model
Ultra-Fast Inference"]
GEN["📤 Response Generation"]
end
subgraph Response["💬 Instant Analysis"]
ANS["✅ Quick Answer"]
STT["📊 Stats Lookup"]
CMP["🔄 Comparison"]
end
USR --> QUE
CTX --> QUE
QUE --> LLM
LLM --> GEN
GEN --> ANS
GEN --> STT
GEN --> CMP
%%{init: {'theme': 'dark', 'themeVariables': { 'primaryColor': '#C17852', 'primaryTextColor': '#F0F6FC', 'primaryBorderColor': '#4A5E32', 'lineColor': '#E6C98F', 'secondaryColor': '#161B22', 'tertiaryColor': '#0D1117', 'background': '#0D1117', 'mainBkg': '#161B22', 'nodeBorder': '#4A5E32', 'clusterBkg': '#161B22', 'clusterBorder': '#4A5E32', 'titleColor': '#E6C98F', 'edgeLabelBackground': '#161B22'}}}%%
flowchart TB
subgraph Source["🎬 Video Input"]
VID["📹 Game Video"]
end
subgraph Extract["🖼️ Frame Extraction"]
FPS["⏱️ Frame Rate
Sampling"]
KF["🎯 Key Frame
Detection"]
end
subgraph Vision["👁️ AI Vision"]
OBJ["🔲 Object Detection
Players, Ball"]
POS["📍 Position Tracking"]
ACT["🏃 Action Recognition"]
end
subgraph Tags["🏷️ AI Tagging"]
PLY["🏈 Play Type"]
FRM["📐 Formation"]
EVT["🎉 Event Tags"]
end
VID --> FPS
FPS --> KF
KF --> OBJ
OBJ --> POS
OBJ --> ACT
POS --> PLY
ACT --> PLY
PLY --> FRM
PLY --> EVT
%%{init: {'theme': 'dark', 'themeVariables': { 'primaryColor': '#C17852', 'primaryTextColor': '#F0F6FC', 'primaryBorderColor': '#4A5E32', 'lineColor': '#E6C98F', 'secondaryColor': '#161B22', 'tertiaryColor': '#0D1117', 'background': '#0D1117', 'mainBkg': '#161B22', 'nodeBorder': '#4A5E32', 'clusterBkg': '#161B22', 'clusterBorder': '#4A5E32', 'titleColor': '#E6C98F', 'edgeLabelBackground': '#161B22'}}}%%
flowchart TB
subgraph Input["📥 Raw Input"]
VID["🎬 Sports Video"]
AUD["🔊 Audio Stream"]
end
subgraph Stage1["🎙️ Stage 1: Deepgram"]
DG["Deepgram ASR"]
TRS["📄 Transcript"]
end
subgraph Stage2["🧠 Stage 2: Claude"]
CL["Claude Analysis"]
INS["💡 Deep Insights"]
end
subgraph Stage3["⚡ Stage 3: Groq"]
GQ["Groq Fast Query"]
RT["⚡ Real-time Response"]
end
subgraph Output["📊 Combined Analytics"]
DSH["📊 Analytics Dashboard"]
RPT["📋 Game Report"]
API["🔌 API Output"]
end
VID --> AUD
AUD --> DG
DG --> TRS
TRS --> CL
CL --> INS
INS --> GQ
INS --> DSH
GQ --> RT
RT --> DSH
DSH --> RPT
DSH --> API
%%{init: {'theme': 'dark', 'themeVariables': { 'primaryColor': '#C17852', 'primaryTextColor': '#F0F6FC', 'primaryBorderColor': '#4A5E32', 'lineColor': '#E6C98F', 'secondaryColor': '#161B22', 'tertiaryColor': '#0D1117', 'background': '#0D1117', 'mainBkg': '#161B22', 'nodeBorder': '#4A5E32', 'clusterBkg': '#161B22', 'clusterBorder': '#4A5E32', 'titleColor': '#E6C98F', 'edgeLabelBackground': '#161B22'}}}%%
flowchart TB
subgraph Upload["📤 Video Upload"]
UP["🎬 Upload Interface"]
VAL["✅ Validation"]
STR["💾 Storage"]
end
subgraph Processing["⚙️ AI Processing Stack"]
subgraph Audio["🎙️ Audio Pipeline"]
DG["Deepgram
🎤 Transcription"]
end
subgraph Visual["👁️ Visual Pipeline"]
VIS["🖼️ Frame Analysis
🏷️ AI Tagging"]
end
subgraph Analysis["🧠 Analysis Pipeline"]
CL["Claude
📊 Strategic Analysis"]
GQ["Groq
⚡ Fast Queries"]
end
end
subgraph Output["📊 Analytics Dashboard"]
DSH["🖥️ Dashboard UI"]
PLY["🏈 Play Viewer"]
STT["📈 Statistics"]
QRY["🔍 Query Interface"]
end
UP --> VAL
VAL --> STR
STR --> DG
STR --> VIS
DG --> CL
VIS --> CL
CL --> DSH
CL --> GQ
GQ --> QRY
DSH --> PLY
DSH --> STT