Skip to content

Feature Request: Add config flag to disable desktop notifications in VoiceServer #496

Description

@virtualian

Summary

Add a configuration option to disable macOS desktop notification banners while keeping voice output enabled. Currently, desktop notifications are always displayed alongside voice - there's no way to have voice-only output.

Use Case

  • Users who find desktop banners distracting but want voice feedback
  • Presentation/recording scenarios where banners would be visible on screen
  • Personal preference for audio-only notifications

Proposed Solution

Add notifications.desktop.enabled to settings.json:

{
  "notifications": {
    "desktop": {
      "enabled": false
    }
  }
}

Additionally, support per-request override via POST body:

curl -X POST http://localhost:8888/notify \
  -H "Content-Type: application/json" \
  -d '{"message": "Hello", "desktop": false}'

Implementation

I have a working implementation in my fork that:

  • Adds global config loaded from settings.json (defaults to true for backwards compatibility)
  • Wraps the osascript call in a conditional
  • Supports per-request desktop parameter override
  • Reports status in /health endpoint

PR available: virtualian/pai#7

Happy to submit a PR to upstream if this is desired.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions