diff --git a/src/dictation_service/ai_dictation_simple.py b/src/dictation_service/ai_dictation_simple.py index e115067..8d4da32 100644 --- a/src/dictation_service/ai_dictation_simple.py +++ b/src/dictation_service/ai_dictation_simple.py @@ -370,10 +370,11 @@ def process_partial_text(text): if app_state == AppState.DICTATION: logging.info(f"💭 {text}") - # Show brief notification for longer partial text + # Show brief notification without revealing exact words (privacy) if len(text) > 3: + word_count = len(text.split()) send_notification( - "🎤 Speaking", text[:50] + "..." if len(text) > 50 else text, 1000 + "🎤 Listening", f"Dictating... ({word_count} words)", 1000 ) elif app_state == AppState.CONVERSATION: logging.info(f"💭 [Conversation] {text}") @@ -429,9 +430,10 @@ async def process_final_text(text): if app_state == AppState.DICTATION: logging.info(f"✅ {formatted}") + word_count = len(formatted.split()) send_notification( - "🎤 Dictation", - f"Typed: {formatted[:30]}{'...' if len(formatted) > 30 else ''}", + "🎤 Dictation Complete", + f"Text typed successfully ({word_count} words)", 2000, )