How data-droid/scenenote works
Scene Note is a SwiftUI subtitle-learning app: learners browse or save shows, obtain episode subtitles, analyze transcript text with LLMs, then save and study expressions and vocabulary with speech playback. The graph preserves documented metadata search, subtitle acquisition, transcript processing, adaptive learning, settings, and backup capabilities. Source excerpts confirm analysis/provider and speech paths; broader UI and persistence connections rely on README statements, so unsampled implementation details are not asserted.
Main entry points: EpisodeDetailView.swift Episode Learning · FullTranscriptAnalysisPipeline.swift Transcript Analysis · BrowseView.swift Browse Titles · OpenSubtitlesSubtitleService.swift Subtitle Fetch
Components 25
Browse and Ingest
- App Shell
Sources/SubtitleCore/MainTabView.swift - Browse Titles
Sources/SubtitleCore/BrowseView.swift - Title Search
Sources/SubtitleCore/TMDBSearchService.swift - Show Catalog
Sources/SubtitleCore/ShowCatalogRefreshService.swift - Subtitle Fetch
Sources/SubtitleCore/OpenSubtitlesSubtitleService.swift
Transcript Analysis
- SRT Parsing
Sources/SubtitleCore/SRTSubtitleParser.swift - Transcript Analysis
Sources/SubtitleCore/FullTranscriptAnalysisPipeline.swift - Chunk and Prompt
Sources/SubtitleCore/TranscriptChunkPrompt.swift - LLM Routing
Sources/SubtitleCore/LLMService.swift - Gemini Provider
Sources/SubtitleCore/GeminiProvider.swift - Groq Provider
Sources/SubtitleCore/GroqProvider.swift - Result Parser
Sources/SubtitleCore/TranscriptChunkAnalysisParser.swift
Learning and Review
- Episode Learning
Sources/SubtitleCore/EpisodeDetailView.swift - Expression Lists
Sources/SubtitleCore/ExpressionListView.swift - Vocabulary Lists
Sources/SubtitleCore/WordListView.swift - Sentence Workbench
Sources/SubtitleCore/SentenceWorkbenchViewModel.swift - Study Progress
Sources/SubtitleCore/StudyProgressStore.swift - Speech Playback
Sources/SubtitleCore/EnglishSpeechSynthesizer.swift - Gemini TTS
Sources/SubtitleCore/GeminiTTSSynthesizer.swift
Settings and Data
- Voice Preferences
Sources/SubtitleCore/VoiceSettingsStore.swift - Settings
Sources/SubtitleCore/SettingsView.swift - Data Backup
Sources/SubtitleCore/SceneNoteDataBackup.swift
Other components
- Learner
- TMDB
- OpenSubtitles
Connections 28
- Learner → App Shell: opens
README.md - App Shell → Browse Titles: presents
README.md - Learner → Browse Titles: browses
README.md - Browse Titles → Title Search: searches titles
- Title Search → TMDB: queries
Sources/SubtitleCore/TMDBSearchService.swift - Browse Titles → Show Catalog: manages shows
README.md - Show Catalog → Subtitle Fetch: loads subtitles
- Subtitle Fetch → OpenSubtitles: fetches
README.md - Subtitle Fetch → SRT Parsing: provides SRT
- Learner → Episode Learning: opens episode
README.md - Episode Learning → Transcript Analysis: analyzes transcript
README.md - Transcript Analysis → Chunk and Prompt: builds prompts
Sources/SubtitleCore/FullTranscriptAnalysisPipeline.swift - Transcript Analysis → LLM Routing: routes analysis
Sources/SubtitleCore/FullTranscriptAnalysisPipeline.swift - LLM Routing → Gemini Provider: tries Gemini
Sources/SubtitleCore/LLMService.swift - LLM Routing → Groq Provider: falls back
Sources/SubtitleCore/LLMService.swift - Transcript Analysis → Result Parser: parses responses
Sources/SubtitleCore/FullTranscriptAnalysisPipeline.swift - Result Parser → Episode Learning: returns learning data
- Episode Learning → Expression Lists: shows expressions
README.md - Episode Learning → Vocabulary Lists: shows vocabulary
README.md - Learner → Sentence Workbench: studies sentences
README.md - Sentence Workbench → Study Progress: tracks progress
Sources/SubtitleCore/SentenceWorkbenchViewModel.swift - Sentence Workbench → Speech Playback: plays sentences
Sources/SubtitleCore/SentenceWorkbenchViewModel.swift - Speech Playback → Gemini TTS: uses selected engine
Sources/SubtitleCore/EnglishSpeechSynthesizer.swift - Speech Playback → Voice Preferences: reads settings
Sources/SubtitleCore/EnglishSpeechSynthesizer.swift - Settings → Voice Preferences: updates voice
Sources/SubtitleCore/SettingsView.swift - Learner → Settings: configures app
README.md - Settings → Data Backup: exports data
Sources/SubtitleCore/SettingsView.swift - Data Backup → Study Progress: backs up
Sources/SubtitleCore/SceneNoteDataBackup.swift