opencode-smart-voice-notify 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,21 @@
1
1
  {
2
+ // ============================================================
3
+ // OpenCode Smart Voice Notify - Full Configuration Reference
4
+ // ============================================================
5
+ //
6
+ // IMPORTANT: This is a REFERENCE file showing ALL available options.
7
+ //
8
+ // To use this plugin:
9
+ // 1. Copy this file to: ~/.config/opencode/smart-voice-notify.jsonc
10
+ // (On Windows: C:\Users\<YourUser>\.config\opencode\smart-voice-notify.jsonc)
11
+ // 2. Customize the settings below to your preference
12
+ // 3. The plugin auto-creates a minimal config if none exists
13
+ //
14
+ // Sound files are automatically copied to ~/.config/opencode/assets/
15
+ // on first run. You can also use your own custom sound files.
16
+ //
17
+ // ============================================================
18
+
2
19
  // ============================================================
3
20
  // NOTIFICATION MODE SETTINGS (Smart Notification System)
4
21
  // ============================================================
@@ -67,9 +84,11 @@
67
84
  // Requires: pip install edge-tts
68
85
 
69
86
  // Voice options (run 'edge-tts --list-voices' to see all):
70
- // 'en-US-AnaNeural' - Young, cute, cartoon-like
87
+ // 'en-US-AnaNeural' - Young, cute, cartoon-like (RECOMMENDED)
71
88
  // 'en-US-JennyNeural' - Friendly, warm
72
89
  // 'en-US-AriaNeural' - Confident, clear
90
+ // 'en-GB-SoniaNeural' - British, friendly
91
+ // 'en-AU-NatashaNeural' - Australian, warm
73
92
  "edgeVoice": "en-US-AnaNeural",
74
93
 
75
94
  // Pitch adjustment: +0Hz to +100Hz (higher = more anime-like)
@@ -82,19 +101,30 @@
82
101
  // SAPI SETTINGS (Windows Built-in - Last Resort Fallback)
83
102
  // ============================================================
84
103
 
85
- // Voice (run PowerShell to list all):
104
+ // Voice (run PowerShell to list all installed voices):
86
105
  // Add-Type -AssemblyName System.Speech; (New-Object System.Speech.Synthesis.SpeechSynthesizer).GetInstalledVoices() | % { $_.VoiceInfo.Name }
106
+ //
107
+ // Common Windows voices:
108
+ // 'Microsoft Zira Desktop' - Female, US English
109
+ // 'Microsoft David Desktop' - Male, US English
110
+ // 'Microsoft Hazel Desktop' - Female, UK English
87
111
  "sapiVoice": "Microsoft Zira Desktop",
112
+
113
+ // Speech rate: -10 (slowest) to +10 (fastest), 0 is normal
88
114
  "sapiRate": -1,
115
+
116
+ // Pitch: 'x-low', 'low', 'medium', 'high', 'x-high'
89
117
  "sapiPitch": "medium",
118
+
119
+ // Volume: 'silent', 'x-soft', 'soft', 'medium', 'loud', 'x-loud'
90
120
  "sapiVolume": "loud",
91
121
 
92
122
  // ============================================================
93
123
  // INITIAL TTS MESSAGES (Used immediately or after sound)
94
- // These are randomly selected each time
124
+ // These are randomly selected each time for variety
95
125
  // ============================================================
96
126
 
97
- // Messages when agent finishes work
127
+ // Messages when agent finishes work (task completion)
98
128
  "idleTTSMessages": [
99
129
  "All done! Your task has been completed successfully.",
100
130
  "Hey there! I finished working on your request.",
@@ -138,8 +168,10 @@
138
168
  // ============================================================
139
169
  // SOUND FILES (For immediate notifications)
140
170
  // These are played first before TTS reminder kicks in
141
- // Paths are relative to OpenCode config directory (~/.config/opencode/)
142
171
  // ============================================================
172
+ // Paths are relative to ~/.config/opencode/ directory
173
+ // The plugin automatically copies bundled sounds to assets/ on first run
174
+ // You can replace with your own custom MP3/WAV files
143
175
 
144
176
  "idleSound": "assets/Soft-high-tech-notification-sound-effect.mp3",
145
177
  "permissionSound": "assets/Machine-alert-beep-sound-effect.mp3",
@@ -148,11 +180,25 @@
148
180
  // GENERAL SETTINGS
149
181
  // ============================================================
150
182
 
151
- "wakeMonitor": true, // Wake monitor when notifying
152
- "forceVolume": true, // Force volume up if too low
153
- "enableToast": true, // Show TUI toast notifications
154
- "enableSound": true, // Enable audio notifications
155
- "volumeThreshold": 50, // Force volume if below this level
156
- "idleThresholdSeconds": 60, // Consider monitor asleep after this
157
- "debugLog": false // Enable debug logging to file
183
+ // Wake monitor from sleep when notifying (Windows/macOS)
184
+ "wakeMonitor": true,
185
+
186
+ // Force system volume up if below threshold
187
+ "forceVolume": true,
188
+
189
+ // Volume threshold (0-100): force volume if current level is below this
190
+ "volumeThreshold": 50,
191
+
192
+ // Show TUI toast notifications in OpenCode terminal
193
+ "enableToast": true,
194
+
195
+ // Enable audio notifications (sound files and TTS)
196
+ "enableSound": true,
197
+
198
+ // Consider monitor asleep after this many seconds of inactivity (Windows only)
199
+ "idleThresholdSeconds": 60,
200
+
201
+ // Enable debug logging to ~/.config/opencode/smart-voice-notify-debug.log
202
+ // Useful for troubleshooting notification issues
203
+ "debugLog": false
158
204
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-smart-voice-notify",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Smart voice notification plugin for OpenCode with multiple TTS engines (ElevenLabs, Edge TTS, Windows SAPI) and intelligent reminder system",
5
5
  "main": "index.js",
6
6
  "type": "module",
package/util/tts.js CHANGED
@@ -94,8 +94,8 @@ export const getTTSConfig = () => {
94
94
  // ============================================================
95
95
  // SOUND FILES (Used for immediate notifications)
96
96
  // ============================================================
97
- idleSound: 'asset/Soft-high-tech-notification-sound-effect.mp3',
98
- permissionSound: 'asset/Machine-alert-beep-sound-effect.mp3',
97
+ idleSound: 'assets/Soft-high-tech-notification-sound-effect.mp3',
98
+ permissionSound: 'assets/Machine-alert-beep-sound-effect.mp3',
99
99
 
100
100
  // ============================================================
101
101
  // GENERAL SETTINGS