pediatric-ai-scribe-v3/public/js
ifedan-ed 196f4432f0 Add Web Speech Recognition option for real-time streaming
Provides two transcription options:

1. Browser Whisper (Offline, Batch) - RECOMMENDED
   - 100% offline, zero network calls
   - HIPAA-compliant, audio never leaves device
   - Highest accuracy (Whisper)
   - Processes after recording (batch mode)
   - Models self-hosted, bundled in v2

2. Web Speech API (Real-time, Streaming) - EXPERIMENTAL
   - Real-time transcription (see words as you speak)
   - Uses browser's built-in speech recognition
   - ⚠️ Sends audio to cloud (Chrome/Edge → Google)
   - ⚠️ NOT HIPAA-compliant
   - Requires user consent with clear warnings

Features:
- Settings UI for both options
- Clear privacy warnings for Web Speech
- Mutual exclusion (only one active at a time)
- Browser detection shows which provider is used
- Confirmation dialog before enabling Web Speech

Use Cases:
- Clinical/HIPAA: Use Browser Whisper only
- Personal/Non-clinical: Can use Web Speech for real-time feedback
- Maximum privacy: Browser Whisper (offline)
- Maximum speed: Web Speech (if privacy not required)

Implementation:
- speechRecognition.js: Web Speech API wrapper
- transcriptionSettings.js: Settings UI handler
- Privacy info displayed per browser

User can choose based on their privacy vs. speed preference.
2026-03-31 21:57:24 +00:00
..
admin.js Fix model management: empty LiteLLM list, always reload panel, clear-all 2026-03-29 19:32:09 -04:00
adminMilestones.js Add admin dashboard for developmental milestones management 2026-03-31 20:55:41 +00:00
app.js v16: Make Browser Whisper CDN failure graceful with clear warnings 2026-03-31 16:18:46 +00:00
audioBackup.js Server-side audio backups with compression, viewable AI corrections 2026-03-29 10:56:31 +00:00
auth.js Security: remove auth debug logging that exposed emails and responses 2026-03-29 10:41:35 +00:00
browserWhisper.js v16: Make Browser Whisper CDN failure graceful with clear warnings 2026-03-31 16:18:46 +00:00
chartReview.js v13: Increase JSON limit to 10MB, client-side size check for chart review 2026-03-30 22:41:17 +00:00
correctionTracker.js v9: Major feature update — audio backup, SOAP save, Dragon memory, S3 docs, CI/CD, APK 2026-03-28 21:08:32 +00:00
documents.js v9: Major feature update — audio backup, SOAP save, Dragon memory, S3 docs, CI/CD, APK 2026-03-28 21:08:32 +00:00
encounters.js Fix: admin models loading, clear refine/instructions on New, bigger HPI areas, unique labels 2026-03-29 01:35:45 +00:00
hospitalCourse.js Wire physician memories/templates into all AI generation routes 2026-03-25 17:35:30 -04:00
learningHub.js Fix CMS button clickability, replace AI topic input with context box 2026-03-24 11:52:02 -04:00
liveEncounter.js Fix TTS axios/Vertex, generic toast, add stop button to encounter 2026-03-29 22:09:56 -04:00
memories.js Server-side audio backups with compression, viewable AI corrections 2026-03-29 10:56:31 +00:00
milestones.js Add admin dashboard for developmental milestones management 2026-03-31 20:55:41 +00:00
milestonesData.js v3.0: Add multi-provider Bedrock models, newborn milestones, Converse API 2026-03-23 22:13:19 +01:00
nextcloud.js Fix WebDAV selection, pdf-parse, prompt(), CSP, security issues 1/2/4/5 2026-03-24 02:28:43 -04:00
pediatricScheduleData.js Add growth velocity, feeding guidance, BMI classification to well visits 2026-03-23 23:11:24 +01:00
shadess.js Fix module init: defer all tab scripts until component HTML is loaded 2026-03-23 22:03:54 -04:00
sickVisit.js Fix module init: defer all tab scripts until component HTML is loaded 2026-03-23 22:03:54 -04:00
soap.js Zero-config speech: skip upload when no transcription API, use browser speech directly 2026-03-29 02:09:53 +00:00
speechRecognition.js Add Web Speech Recognition option for real-time streaming 2026-03-31 21:57:24 +00:00
transcriptionSettings.js Add Web Speech Recognition option for real-time streaming 2026-03-31 21:57:24 +00:00
voiceDictation.js Zero-config speech: skip upload when no transcription API, use browser speech directly 2026-03-29 02:09:53 +00:00
voicePreferences.js Fix TTS preview for 'Server default' voice option 2026-03-31 16:15:41 +00:00
wellVisit.js Fix vaccine/catchup tabs and serve Quill locally 2026-03-23 22:59:47 -04:00
whisperWorker.js v18: Self-hosted Browser Whisper (zero CDN dependencies) 2026-03-31 20:02:11 +00:00
whisperWorkerV2.js v16: Make Browser Whisper CDN failure graceful with clear warnings 2026-03-31 16:18:46 +00:00