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
feat: gate meeting recording behind paid plan and add calendar integration messaging
Gabriel Steincbf91afbb068
diff --git a/src/components/IntegrationsView.tsx b/src/components/IntegrationsView.tsxindex c41942f6f..0232e6d45 100644--- a/src/components/IntegrationsView.tsx+++ b/src/components/IntegrationsView.tsx@@ -1,12 +1,13 @@import { useState, useEffect, useCallback } from "react";import { useTranslation } from "react-i18next";-import { Loader2, Mail, Plus, Unlink } from "lucide-react";+import { Info, Loader2, Lock, Mail, Plus, Unlink } from "lucide-react";import { Button } from "./ui/button";import { Badge } from "./ui/badge";import { SettingsPanel, SettingsPanelRow } from "./ui/SettingsSection";import { ConfirmDialog } from "./ui/dialog";import { useSettingsStore } from "../stores/settingsStore";import { useScreenRecordingPermission } from "../hooks/useScreenRecordingPermission";+import { useUsage } from "../hooks/useUsage";import googleCalendarIcon from "../assets/icons/google-calendar.svg";export default function IntegrationsView() {@@ -17,6 +18,8 @@ export default function IntegrationsView() {const [confirmDisconnectEmail, setConfirmDisconnectEmail] = useState<string | null>(null);const [showPermissionDialog, setShowPermissionDialog] = useState(false);const screenRecording = useScreenRecordingPermission();+ const usage = useUsage();+ const isProUser = !!(usage?.isSubscribed || usage?.isTrial);const hasAccounts = gcalAccounts.length > 0;const startOAuth = useCallback(async () => {@@ -163,6 +166,42 @@ export default function IntegrationsView() {)}</SettingsPanel>+ {!hasAccounts && (+ <div className="rounded-lg border border-border/40 dark:border-border-subtle/40 bg-muted/20 dark:bg-surface-2/30 p-4 flex items-start gap-3">+ <Info size={15} className="text-primary/60 shrink-0 mt-0.5" />+ <div className="flex-1 min-w-0">+ <p className="text-xs font-medium text-foreground/80">+ {t("integrations.notABot.title")}+ </p>+ <p className="text-xs text-muted-foreground/60 mt-0.5 leading-relaxed">+ {t("integrations.notABot.description")}+ </p>+ </div>+ </div>+ )}++ {!isProUser && (+ <div className="rounded-lg border border-border/40 dark:border-border-subtle/40 bg-muted/30 dark:bg-surface-2/40 p-4 flex items-start gap-3">+ <Lock size={15} className="text-muted-foreground/50 shrink-0 mt-0.5" />+ <div className="flex-1 min-w-0">+ <p className="text-xs font-medium text-foreground/80">+ {t("integrations.meetingGate.title")}+ </p>+ <p className="text-xs text-muted-foreground/60 mt-0.5 leading-relaxed">+ {t("integrations.meetingGate.description")}+ </p>+ <Button+ size="sm"+ onClick={() => usage?.openCheckout()}+ disabled={usage?.checkoutLoading}+ className="mt-2.5 text-xs h-7"+ >+ {t("integrations.meetingGate.upgrade")}+ </Button>+ </div>+ </div>+ )}+<ConfirmDialogopen={!!confirmDisconnectEmail}onOpenChange={(open) => {diff --git a/src/components/UpcomingMeetings.tsx b/src/components/UpcomingMeetings.tsxindex 0270c88ae..b0085cbf5 100644--- a/src/components/UpcomingMeetings.tsx+++ b/src/components/UpcomingMeetings.tsx@@ -1,11 +1,12 @@import { useState, useMemo } from "react";import { useTranslation } from "react-i18next";-import { Calendar, Loader2, Monitor, Video } from "lucide-react";+import { Calendar, Loader2, Lock, Monitor, Video } from "lucide-react";import { Button } from "./ui/button";import { cn } from "./lib/utils";import type { CalendarEvent } from "../types/calendar";import { formatUpcomingDateGroup } from "../utils/dateFormatting";import { useScreenRecordingPermission } from "../hooks/useScreenRecordingPermission";+import { useUsage } from "../hooks/useUsage";interface UpcomingMeetingsProps {events: CalendarEvent[];@@ -39,6 +40,8 @@ export default function UpcomingMeetings({ events, isLoading }: UpcomingMeetingsconst { t, i18n } = useTranslation();const [hoveredEventId, setHoveredEventId] = useState<string | null>(null);const screenRecording = useScreenRecordingPermission();+ const usage = useUsage();+ const isProUser = !!(usage?.isSubscribed || usage?.isTrial);const now = useMemo(() => new Date(), []);@@ -117,6 +120,24 @@ export default function UpcomingMeetings({ events, isLoading }: UpcomingMeetings{t("upcoming.openSettings")}</Button></>+ ) : !isProUser ? (+ <>+ <Lock size={24} className="text-muted-foreground/30 mb-2.5" />+ <p className="text-xs font-medium text-muted-foreground/70 text-center mb-1">+ {t("upcoming.paidOnly")}+ </p>+ <p className="text-xs text-muted-foreground/50 text-center mb-3">+ {t("upcoming.paidOnlyDescription")}+ </p>+ <Button+ size="sm"+ onClick={() => usage?.openCheckout()}+ disabled={usage?.checkoutLoading}+ className="text-xs h-7"+ >+ {t("upcoming.upgrade")}+ </Button>+ </>) : (<><Calendar size={24} className="text-muted-foreground/30 mb-2.5" />diff --git a/src/components/notes/PersonalNotesView.tsx b/src/components/notes/PersonalNotesView.tsxindex 4b34c5e85..d51a8937f 100644--- a/src/components/notes/PersonalNotesView.tsx+++ b/src/components/notes/PersonalNotesView.tsx@@ -370,19 +370,24 @@ export default function PersonalNotesView({// Pre-warm WebSocket when entering meeting mode (before user hits record)useEffect(() => {- if (isMeetingMode) {+ if (isMeetingMode && isProUser) {prepareMeetingTranscription();}- }, [isMeetingMode, prepareMeetingTranscription]);+ }, [isMeetingMode, isProUser, prepareMeetingTranscription]);useEffect(() => {if (!meetingRecordingRequest || activeNoteId !== meetingRecordingRequest.noteId) return;+ if (!isProUser) {+ onMeetingRecordingRequestHandled?.();+ return;+ }meetingNoteIdRef.current = meetingRecordingRequest.noteId;startMeetingTranscription();onMeetingRecordingRequestHandled?.();}, [meetingRecordingRequest,activeNoteId,+ isProUser,startMeetingTranscription,onMeetingRecordingRequestHandled,]);diff --git a/src/locales/de/translation.json b/src/locales/de/translation.jsonindex 07f706013..b406122c7 100644--- a/src/locales/de/translation.json+++ b/src/locales/de/translation.json@@ -1748,6 +1748,15 @@"pro": "Pro","proLimit": "Unbegrenzt","upgrade": "Upgrade"+ },+ "meetingGate": {+ "title": "Meeting-Aufzeichnung erfordert einen kostenpflichtigen Plan",+ "description": "Upgraden Sie, um Meetings aufzuzeichnen, Echtzeit-Transkriptionen zu erhalten und AI-Meetingnotizen zu erstellen.",+ "upgrade": "Plan upgraden"+ },+ "notABot": {+ "title": "OpenWhispr ist ein Meeting-Rekorder, kein Bot",+ "description": "OpenWhispr erfasst Audio direkt von deinem System — es nimmt niemals als Teilnehmer an deinen Meetings teil. Verbinde einfach deinen Kalender und mach Notizen wie gewohnt."}},"upcoming": {@@ -1757,7 +1766,14 @@"noMoreMeetings": "Keine weiteren Meetings heute","now": "Jetzt","join": "Beitreten",- "untitledEvent": "Unbenanntes Ereignis"+ "untitledEvent": "Unbenanntes Ereignis",+ "paidOnly": "Meeting-Aufzeichnung ist eine kostenpflichtige Funktion",+ "paidOnlyDescription": "Aktualisieren Sie Ihren Plan, um Meetings in Echtzeit aufzuzeichnen und zu transkribieren.",+ "upgrade": "Plan upgraden",+ "connectCalendar": "Kalender verbinden",+ "connectCalendarDescription": "Verknüpfe deinen Google Kalender, um anstehende Meetings zu sehen und automatisch Notizen aufzuzeichnen.",+ "notABot": "OpenWhispr nimmt über dein Systemaudio auf — es tritt niemals als Bot deinen Meetings bei.",+ "connectCalendarButton": "Kalender verbinden"},"notesView": {"searchPlaceholder": "Notizen durchsuchen…",diff --git a/src/locales/en/translation.json b/src/locales/en/translation.jsonindex c2da9e4e7..216f873fb 100644--- a/src/locales/en/translation.json+++ b/src/locales/en/translation.json@@ -1827,6 +1827,15 @@"pro": "Pro","proLimit": "Unlimited","upgrade": "Upgrade"+ },+ "meetingGate": {+ "title": "Meeting recording requires a paid plan",+ "description": "Upgrade to record meetings, get real-time transcriptions, and generate AI meeting notes.",+ "upgrade": "Upgrade Plan"+ },+ "notABot": {+ "title": "OpenWhispr is a meeting recorder, not a bot",+ "description": "OpenWhispr captures audio directly from your system — it never joins your meetings as a participant. Just connect your calendar and take notes as normal."}},"upcoming": {@@ -1838,7 +1847,14 @@"join": "Join","untitledEvent": "Untitled Event","screenRecordingRequired": "Screen Recording permission is needed to capture meeting audio.",- "openSettings": "Open System Settings"+ "openSettings": "Open System Settings",+ "paidOnly": "Meeting recording is a paid feature",+ "paidOnlyDescription": "Upgrade your plan to record and transcribe meetings in real time.",+ "upgrade": "Upgrade Plan",+ "connectCalendar": "Connect your calendar",+ "connectCalendarDescription": "Link your Google Calendar to see upcoming meetings and automatically record notes.",+ "notABot": "OpenWhispr records using your system audio — it never joins meetings as a bot.",+ "connectCalendarButton": "Connect Calendar"},"notesView": {"searchPlaceholder": "Search notes…",diff --git a/src/locales/es/translation.json b/src/locales/es/translation.jsonindex 7cf40809b..695baa0fa 100644--- a/src/locales/es/translation.json+++ b/src/locales/es/translation.json@@ -1752,6 +1752,15 @@"pro": "Pro","proLimit": "Ilimitado","upgrade": "Mejorar"+ },+ "meetingGate": {+ "title": "La grabación de reuniones requiere un plan de pago",+ "description": "Actualiza para grabar reuniones, obtener transcripciones en tiempo real y generar notas de reunión con AI.",+ "upgrade": "Actualizar plan"+ },+ "notABot": {+ "title": "OpenWhispr es un grabador de reuniones, no un bot",+ "description": "OpenWhispr captura el audio directamente de tu sistema — nunca se une a tus reuniones como participante. Solo conecta tu calendario y toma notas con normalidad."}},"upcoming": {@@ -1761,7 +1770,14 @@"noMoreMeetings": "No hay más reuniones hoy","now": "Ahora","join": "Unirse",- "untitledEvent": "Evento sin título"+ "untitledEvent": "Evento sin título",+ "paidOnly": "La grabación de reuniones es una función de pago",+ "paidOnlyDescription": "Actualiza tu plan para grabar y transcribir reuniones en tiempo real.",+ "upgrade": "Actualizar plan",+ "connectCalendar": "Conecta tu calendario",+ "connectCalendarDescription": "Vincula tu Google Calendar para ver próximas reuniones y grabar notas automáticamente.",+ "notABot": "OpenWhispr graba usando el audio de tu sistema — nunca se une a las reuniones como un bot.",+ "connectCalendarButton": "Conectar calendario"},"notesView": {"searchPlaceholder": "Buscar notas…",diff --git a/src/locales/fr/translation.json b/src/locales/fr/translation.jsonindex f19a657fb..ac94c680b 100644--- a/src/locales/fr/translation.json+++ b/src/locales/fr/translation.json@@ -1752,6 +1752,15 @@"pro": "Pro","proLimit": "Illimité","upgrade": "Passer au supérieur"+ },+ "meetingGate": {+ "title": "L'enregistrement de réunions nécessite un forfait payant",+ "description": "Passez au niveau supérieur pour enregistrer les réunions, obtenir des transcriptions en temps réel et générer des notes de réunion AI.",+ "upgrade": "Mettre à niveau"+ },+ "notABot": {+ "title": "OpenWhispr est un enregistreur de réunions, pas un bot",+ "description": "OpenWhispr capture l'audio directement depuis votre système — il ne rejoint jamais vos réunions en tant que participant. Connectez simplement votre calendrier et prenez vos notes normalement."}},"upcoming": {@@ -1761,7 +1770,14 @@"noMoreMeetings": "Plus de réunions aujourd'hui","now": "En cours","join": "Rejoindre",- "untitledEvent": "Événement sans titre"+ "untitledEvent": "Événement sans titre",+ "paidOnly": "L'enregistrement de réunions est une fonctionnalité payante",+ "paidOnlyDescription": "Mettez à niveau votre forfait pour enregistrer et transcrire les réunions en temps réel.",+ "upgrade": "Mettre à niveau",+ "connectCalendar": "Connectez votre calendrier",+ "connectCalendarDescription": "Associez votre Google Calendar pour voir vos prochaines réunions et enregistrer des notes automatiquement.",+ "notABot": "OpenWhispr enregistre via l'audio de votre système — il ne rejoint jamais vos réunions en tant que bot.",+ "connectCalendarButton": "Connecter le calendrier"},"notesView": {"searchPlaceholder": "Rechercher des notes…",diff --git a/src/locales/it/translation.json b/src/locales/it/translation.jsonindex de8964e22..603134dbf 100644--- a/src/locales/it/translation.json+++ b/src/locales/it/translation.json@@ -1752,6 +1752,15 @@"pro": "Pro","proLimit": "Illimitato","upgrade": "Aggiorna"+ },+ "meetingGate": {+ "title": "La registrazione delle riunioni richiede un piano a pagamento",+ "description": "Aggiorna per registrare le riunioni, ottenere trascrizioni in tempo reale e generare note delle riunioni con AI.",+ "upgrade": "Aggiorna piano"+ },+ "notABot": {+ "title": "OpenWhispr è un registratore di riunioni, non un bot",+ "description": "OpenWhispr cattura l'audio direttamente dal tuo sistema — non entra mai nelle tue riunioni come partecipante. Basta collegare il calendario e prendere appunti normalmente."}},"upcoming": {@@ -1761,7 +1770,14 @@"noMoreMeetings": "Nessun'altra riunione oggi","now": "In corso","join": "Partecipa",- "untitledEvent": "Evento senza titolo"+ "untitledEvent": "Evento senza titolo",+ "paidOnly": "La registrazione delle riunioni è una funzionalità a pagamento",+ "paidOnlyDescription": "Aggiorna il tuo piano per registrare e trascrivere le riunioni in tempo reale.",+ "upgrade": "Aggiorna piano",+ "connectCalendar": "Collega il tuo calendario",+ "connectCalendarDescription": "Collega il tuo Google Calendar per vedere le prossime riunioni e registrare note automaticamente.",+ "notABot": "OpenWhispr registra usando l'audio del tuo sistema — non entra mai nelle riunioni come bot.",+ "connectCalendarButton": "Collega calendario"},"notesView": {"searchPlaceholder": "Cerca note…",diff --git a/src/locales/ja/translation.json b/src/locales/ja/translation.jsonindex 86defac68..458754a5b 100644--- a/src/locales/ja/translation.json+++ b/src/locales/ja/translation.json@@ -1748,6 +1748,15 @@"pro": "Pro","proLimit": "無制限","upgrade": "アップグレード"+ },+ "meetingGate": {+ "title": "会議の録音には有料プランが必要です",+ "description": "アップグレードして、会議を録音し、リアルタイムの文字起こしと AI 会議メモを生成できます。",+ "upgrade": "プランをアップグレード"+ },+ "notABot": {+ "title": "OpenWhispr はミーティング録音ツールであり、ボットではありません",+ "description": "OpenWhispr はシステムから直接オーディオをキャプチャします — 参加者としてミーティングに参加することはありません。カレンダーを接続して、通常通りノートを取るだけです。"}},"upcoming": {@@ -1757,7 +1766,14 @@"noMoreMeetings": "今日の予定はありません","now": "進行中","join": "参加",- "untitledEvent": "無題のイベント"+ "untitledEvent": "無題のイベント",+ "paidOnly": "会議の録音は有料機能です",+ "paidOnlyDescription": "プランをアップグレードして、会議をリアルタイムで録音・文字起こしできます。",+ "upgrade": "プランをアップグレード",+ "connectCalendar": "カレンダーを接続",+ "connectCalendarDescription": "Google カレンダーを連携して、今後のミーティングを確認し、自動的にノートを記録します。",+ "notABot": "OpenWhispr はシステムオーディオで録音します — ボットとしてミーティングに参加することはありません。",+ "connectCalendarButton": "カレンダーを接続"},"notesView": {"searchPlaceholder": "ノートを検索…",diff --git a/src/locales/pt/translation.json b/src/locales/pt/translation.jsonindex 3eef4f66b..0f616a4ce 100644--- a/src/locales/pt/translation.json+++ b/src/locales/pt/translation.json@@ -1752,6 +1752,15 @@"pro": "Pro","proLimit": "Ilimitado","upgrade": "Atualizar"+ },+ "meetingGate": {+ "title": "A gravação de reuniões requer um plano pago",+ "description": "Atualize para gravar reuniões, obter transcrições em tempo real e gerar notas de reunião com AI.",+ "upgrade": "Atualizar plano"+ },+ "notABot": {+ "title": "O OpenWhispr é um gravador de reuniões, não um bot",+ "description": "O OpenWhispr captura áudio diretamente do seu sistema — ele nunca entra nas suas reuniões como participante. Basta conectar seu calendário e fazer anotações normalmente."}},"upcoming": {@@ -1761,7 +1770,14 @@"noMoreMeetings": "Sem mais reuniões hoje","now": "Agora","join": "Entrar",- "untitledEvent": "Evento sem título"+ "untitledEvent": "Evento sem título",+ "paidOnly": "A gravação de reuniões é um recurso pago",+ "paidOnlyDescription": "Atualize seu plano para gravar e transcrever reuniões em tempo real.",+ "upgrade": "Atualizar plano",+ "connectCalendar": "Conecte seu calendário",+ "connectCalendarDescription": "Vincule seu Google Calendar para ver próximas reuniões e gravar notas automaticamente.",+ "notABot": "O OpenWhispr grava usando o áudio do seu sistema — ele nunca entra nas reuniões como um bot.",+ "connectCalendarButton": "Conectar calendário"},"notesView": {"searchPlaceholder": "Pesquisar notas…",diff --git a/src/locales/ru/translation.json b/src/locales/ru/translation.jsonindex 0958a9ad6..f6969bb08 100644--- a/src/locales/ru/translation.json+++ b/src/locales/ru/translation.json@@ -1752,6 +1752,15 @@"pro": "Pro","proLimit": "Безлимитно","upgrade": "Улучшить"+ },+ "meetingGate": {+ "title": "Запись встреч требует платного плана",+ "description": "Обновите, чтобы записывать встречи, получать транскрипции в реальном времени и создавать заметки встреч с помощью AI.",+ "upgrade": "Обновить план"+ },+ "notABot": {+ "title": "OpenWhispr — это запись встреч, а не бот",+ "description": "OpenWhispr захватывает аудио напрямую из вашей системы — он никогда не присоединяется к встречам как участник. Просто подключите календарь и делайте заметки как обычно."}},"upcoming": {@@ -1761,7 +1770,14 @@"noMoreMeetings": "Больше встреч сегодня нет","now": "Сейчас","join": "Присоединиться",- "untitledEvent": "Без названия"+ "untitledEvent": "Без названия",+ "paidOnly": "Запись встреч — платная функция",+ "paidOnlyDescription": "Обновите план, чтобы записывать и транскрибировать встречи в реальном времени.",+ "upgrade": "Обновить план",+ "connectCalendar": "Подключите календарь",+ "connectCalendarDescription": "Свяжите Google Календарь, чтобы видеть предстоящие встречи и автоматически записывать заметки.",+ "notABot": "OpenWhispr записывает через системный звук — он никогда не присоединяется к встречам как бот.",+ "connectCalendarButton": "Подключить календарь"},"notesView": {"searchPlaceholder": "Поиск заметок…",diff --git a/src/locales/zh-CN/translation.json b/src/locales/zh-CN/translation.jsonindex f84f1e7d2..10430d060 100644--- a/src/locales/zh-CN/translation.json+++ b/src/locales/zh-CN/translation.json@@ -1748,6 +1748,15 @@"pro": "Pro","proLimit": "无限","upgrade": "升级"+ },+ "meetingGate": {+ "title": "会议录制需要付费方案",+ "description": "升级以录制会议、获取实时转录并生成 AI 会议笔记。",+ "upgrade": "升级方案"+ },+ "notABot": {+ "title": "OpenWhispr 是会议录制工具,不是机器人",+ "description": "OpenWhispr 直接从您的系统捕获音频 — 它不会以参与者身份加入您的会议。只需连接日历,正常记录笔记即可。"}},"upcoming": {@@ -1757,7 +1766,14 @@"noMoreMeetings": "今天没有更多会议了","now": "进行中","join": "加入",- "untitledEvent": "无标题事件"+ "untitledEvent": "无标题事件",+ "paidOnly": "会议录制是付费功能",+ "paidOnlyDescription": "升级您的方案以实时录制和转录会议。",+ "upgrade": "升级方案",+ "connectCalendar": "连接您的日历",+ "connectCalendarDescription": "关联 Google 日历以查看即将到来的会议并自动记录笔记。",+ "notABot": "OpenWhispr 通过系统音频录制 — 它不会以机器人身份加入您的会议。",+ "connectCalendarButton": "连接日历"},"notesView": {"searchPlaceholder": "搜索笔记…",diff --git a/src/locales/zh-TW/translation.json b/src/locales/zh-TW/translation.jsonindex d95a68ac6..72d3f6aad 100644--- a/src/locales/zh-TW/translation.json+++ b/src/locales/zh-TW/translation.json@@ -1748,6 +1748,15 @@"pro": "Pro","proLimit": "無限","upgrade": "升級"+ },+ "meetingGate": {+ "title": "會議錄製需要付費方案",+ "description": "升級以錄製會議、取得即時轉錄並產生 AI 會議筆記。",+ "upgrade": "升級方案"+ },+ "notABot": {+ "title": "OpenWhispr 是會議錄製工具,不是機器人",+ "description": "OpenWhispr 直接從您的系統擷取音訊 — 它不會以參與者身分加入您的會議。只需連接日曆,正常記錄筆記即可。"}},"upcoming": {@@ -1757,7 +1766,14 @@"noMoreMeetings": "今天沒有更多會議了","now": "進行中","join": "加入",- "untitledEvent": "無標題事件"+ "untitledEvent": "無標題事件",+ "paidOnly": "會議錄製是付費功能",+ "paidOnlyDescription": "升級您的方案以即時錄製和轉錄會議。",+ "upgrade": "升級方案",+ "connectCalendar": "連接您的日曆",+ "connectCalendarDescription": "關聯 Google 日曆以查看即將到來的會議並自動記錄筆記。",+ "notABot": "OpenWhispr 透過系統音訊錄製 — 它不會以機器人身分加入您的會議。",+ "connectCalendarButton": "連接日曆"},"notesView": {"searchPlaceholder": "搜尋筆記…",