Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.
JavaScript aianthropiccross-platformgeminigroqlinuxmacosnvidiaopen-sourceopenaiparakeetspeech-to-texttranscribewhisperwindows
style: cleaned up styles
Gabriel Stein53585f4c32a5
diff --git a/src/App.jsx b/src/App.jsxindex 8e30818fd..5ab65ead9 100644--- a/src/App.jsx+++ b/src/App.jsx@@ -296,12 +296,12 @@ export default function App() {switch (micState) {case 'idle':return {- className: `${baseClasses} bg-black/40 backdrop-blur-md border border-white/20 cursor-pointer`,+ className: `${baseClasses} bg-black/50 cursor-pointer border-2 border-white/70`,tooltip: "Click to speak"};case 'hover':return {- className: `${baseClasses} bg-black/50 backdrop-blur-md border border-white/20 cursor-pointer`,+ className: `${baseClasses} bg-black/50 cursor-pointer`,tooltip: "Click to speak"};case 'recording':@@ -316,7 +316,7 @@ export default function App() {};default:return {- className: `${baseClasses} bg-black/40 backdrop-blur-md border border-white/20 cursor-pointer`,+ className: `${baseClasses} bg-black/50 cursor-pointer`,style: { transform: 'scale(0.8)' },tooltip: "Click to speak"};@@ -327,14 +327,6 @@ export default function App() {return (<>- {/* Fixed top-right settings button */}- <div className="fixed top-6 right-6 z-50">- <Tooltip content="Settings">- <button className="rounded-full w-10 h-10 flex items-center justify-center bg-black/40 backdrop-blur-md border border-white/20 cursor-pointer hover:bg-black/50 transition-colors duration-150">- <Settings size={18} className="text-white" />- </button>- </Tooltip>- </div>{/* Fixed bottom-right voice button */}<div className="fixed bottom-6 right-6 z-50">diff --git a/src/components/ControlPanel.tsx b/src/components/ControlPanel.tsxindex b4cdbcb75..249bfefb1 100644--- a/src/components/ControlPanel.tsx+++ b/src/components/ControlPanel.tsx@@ -191,17 +191,24 @@ export default function ControlPanel() {<div className="min-h-screen bg-white">{/* Custom Title Bar */}<div className="bg-white border-b border-gray-100 select-none">- <div+ <divclassName="flex items-center justify-between h-12 px-4"style={{ WebkitAppRegion: "drag" }}>- {/* Right section - minimal controls */}- <div+ {/* Left section - empty for drag area */}+ <div></div>++ {/* Right section - settings control */}+ <divclassName="flex items-center gap-2"style={{ WebkitAppRegion: "no-drag" }}><Tooltip content="Open settings">- <Button variant="ghost" size="icon" onClick={() => setShowSettings(!showSettings)}>+ <Button+ variant="ghost"+ size="icon"+ onClick={() => setShowSettings(!showSettings)}+ ><Settings size={16} /></Button></Tooltip>@@ -223,14 +230,18 @@ export default function ControlPanel() {</CardTitle><div className="flex gap-2"><Tooltip content="Refresh history">- <Button onClick={refreshHistory} variant="ghost" size="icon">+ <Button+ onClick={refreshHistory}+ variant="ghost"+ size="icon"+ ><RefreshCw size={16} /></Button></Tooltip><Tooltip content="Clear all transcriptions">- <Button- onClick={clearHistory}- variant="ghost"+ <Button+ onClick={clearHistory}+ variant="ghost"size="icon"className="text-red-600 hover:text-red-700 hover:bg-red-50">@@ -245,66 +256,75 @@ export default function ControlPanel() {<div className="w-8 h-8 mx-auto mb-3 bg-indigo-600 rounded-lg flex items-center justify-center"><span className="text-white text-sm">π</span></div>- <p className="text-neutral-600">Loading transcriptions...</p>+ <p className="text-neutral-600">+ Loading transcriptions...+ </p></div>) : (<div className="space-y-3 max-h-80 overflow-y-auto">{history.map((item, index) => (- <div- key={item.id}+ <div+ key={item.id}className="relative bg-gradient-to-b from-blue-50/30 to-white rounded-xl overflow-hidden shadow-sm hover:shadow-md transition-shadow">- <div className="p-6 pl-16" style={{ paddingTop: "8px" }}>+ <div+ className="p-6 pl-16"+ style={{ paddingTop: "8px" }}+ ><div className="flex items-start justify-between"><div className="flex-1 mr-3">- <div+ <divclassName="flex items-center gap-2 mb-1"style={{ marginTop: "2px", lineHeight: "24px" }}><span className="text-indigo-600 text-xs font-medium">#{history.length - index}</span>- <div className="w-px h-3 bg-neutral-300"/>+ <div className="w-px h-3 bg-neutral-300" /><span className="text-xs text-neutral-500">- {new Date(item.timestamp).toLocaleString("en-US", {- month: "short",- day: "numeric",- hour: "2-digit",- minute: "2-digit"- })}+ {new Date(item.timestamp).toLocaleString(+ "en-US",+ {+ month: "short",+ day: "numeric",+ hour: "2-digit",+ minute: "2-digit",+ }+ )}</span></div>- <p+ <pclassName="text-neutral-800 text-sm"- style={{- fontFamily: 'Noto Sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',+ style={{+ fontFamily:+ 'Noto Sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',lineHeight: "24px",textAlign: "left",marginTop: "2px",- paddingBottom: "2px"+ paddingBottom: "2px",}}>{item.text}</p></div>- <div+ <divclassName="flex gap-1 flex-shrink-0"style={{ marginTop: "2px" }}><Tooltip content="Copy to clipboard">- <Button- size="icon"- variant="ghost"- onClick={() => copyToClipboard(item.text)}+ <Button+ size="icon"+ variant="ghost"+ onClick={() => copyToClipboard(item.text)}className="h-7 w-7"><Copy size={12} /></Button></Tooltip><Tooltip content="Delete transcription">- <Button- size="icon"- variant="ghost"+ <Button+ size="icon"+ variant="ghost"onClick={() => deleteTranscription(item.id)}className="h-7 w-7 text-red-600 hover:text-red-700 hover:bg-red-50">@@ -320,66 +340,6 @@ export default function ControlPanel() {)}</CardContent></Card>-- {/* About Section */}- <Card className="bg-white relative z-10">- <CardHeader>- <CardTitle className="flex items-center gap-2">- <Info size={18} className="text-indigo-600" />- About- </CardTitle>- </CardHeader>- <CardContent>- <p className="text-neutral-600 text-sm leading-relaxed mb-6">- OpenWispr converts your speech to text using AI. Press your- hotkey, speak, and we'll type what you said wherever your cursor- is.- </p>- <div className="grid grid-cols-1 md:grid-cols-3 gap-4 text-sm mb-6">- <div className="text-center p-4 border border-neutral-200 rounded-xl bg-white">- <div className="w-8 h-8 mx-auto mb-2 bg-indigo-600 rounded-lg flex items-center justify-center">- <span className="text-white text-sm">β¨οΈ</span>- </div>- <p className="font-medium text-neutral-800 mb-1">- Default Hotkey- </p>- <p className="text-neutral-600 font-mono text-xs">- ` (backtick)- </p>- </div>- <div className="text-center p-4 border border-neutral-200 rounded-xl bg-white">- <div className="w-8 h-8 mx-auto mb-2 bg-emerald-600 rounded-lg flex items-center justify-center">- <span className="text-white text-sm">π·οΈ</span>- </div>- <p className="font-medium text-neutral-800 mb-1">Version</p>- <p className="text-neutral-600 text-xs">0.1.0</p>- </div>- <div className="text-center p-4 border border-neutral-200 rounded-xl bg-white">- <div className="w-8 h-8 mx-auto mb-2 bg-green-600 rounded-lg flex items-center justify-center">- <span className="text-white text-sm">β</span>- </div>- <p className="font-medium text-neutral-800 mb-1">Status</p>- <p className="text-green-600 text-xs font-medium">Active</p>- </div>- </div>- {/* Reset Onboarding */}- <div className="border-t border-neutral-200 pt-4">- <Button- onClick={() => {- if (confirm('Are you sure you want to reset the onboarding process? This will clear your setup and show the welcome flow again.')) {- localStorage.removeItem('onboardingCompleted');- window.location.reload();- }- }}- variant="outline"- className="w-full text-amber-600 border-amber-300 hover:bg-amber-50 hover:border-amber-400"- >- <span className="mr-2">π</span>- Reset Onboarding- </Button>- </div>- </CardContent>- </Card></div>)}</div>diff --git a/src/components/SettingsPage.tsx b/src/components/SettingsPage.tsxindex 5bd383aeb..9c4689670 100644--- a/src/components/SettingsPage.tsx+++ b/src/components/SettingsPage.tsx@@ -1066,6 +1066,26 @@ export default function SettingsPage({ onClose }) {<p className="text-green-600 text-xs font-medium">Active</p></div></div>+ {/* Reset Onboarding */}+ <div className="border-t border-neutral-200 pt-4">+ <Button+ onClick={() => {+ if (+ confirm(+ "Are you sure you want to reset the onboarding process? This will clear your setup and show the welcome flow again."+ )+ ) {+ localStorage.removeItem("onboardingCompleted");+ window.location.reload();+ }+ }}+ variant="outline"+ className="w-full text-amber-600 border-amber-300 hover:bg-amber-50 hover:border-amber-400"+ >+ <span className="mr-2">π</span>+ Reset Onboarding+ </Button>+ </div></CardContent></Card>@@ -1080,4 +1100,3 @@ export default function SettingsPage({ onClose }) {</div>);}-diff --git a/src/index.css b/src/index.cssindex 5f7abccd0..2b6c6a7ab 100644--- a/src/index.css+++ b/src/index.css@@ -84,29 +84,6 @@font-style: italic;}-/* Elegant parchment-inspired glass effect */-.glass-effect {- backdrop-filter: blur(20px) saturate(1.1);- box-shadow: 0 8px 32px rgba(43, 31, 20, 0.08),- 0 1px 0 rgba(255, 255, 255, 0.2) inset;-}--/* Light mode glass effect */-:root .glass-effect {- background: rgba(255, 255, 255, 0.85);- border: 1px solid rgba(43, 31, 20, 0.1);- box-shadow: 0 8px 32px rgba(43, 31, 20, 0.05),- 0 1px 0 rgba(255, 255, 255, 0.5) inset;-}--/* Dark mode glass effect */-.dark .glass-effect {- background: rgba(15, 15, 25, 0.85);- border: 1px solid rgba(100, 150, 255, 0.2);- box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),- 0 0 0 1px rgba(100, 150, 255, 0.1) inset;-}-h1, h2, h3, h4, h5, h6 {font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;font-weight: 600;