-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
173 lines (173 loc) · 5.81 KB
/
package.json
File metadata and controls
173 lines (173 loc) · 5.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
{
"name": "wake-word",
"displayName": "Wake Word",
"description": "Voice control for your editor with customizable wake word. Fully local, zero config.",
"version": "0.5.1",
"license": "Apache-2.0",
"icon": "icon.png",
"publisher": "analytics-in-motion",
"repository": {
"type": "git",
"url": "https://github.com/analyticsinmotion/wake-word"
},
"homepage": "https://github.com/analyticsinmotion/wake-word#readme",
"bugs": {
"url": "https://github.com/analyticsinmotion/wake-word/issues"
},
"engines": {
"vscode": "^1.85.0"
},
"categories": [
"Other"
],
"keywords": [
"voice",
"wake word",
"speech",
"hands-free",
"accessibility",
"copilot",
"claude",
"voice activation"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "wakeWord.enable",
"title": "Wake Word: Enable Listening"
},
{
"command": "wakeWord.disable",
"title": "Wake Word: Disable Listening"
},
{
"command": "wakeWord.toggle",
"title": "Wake Word: Toggle Listening"
},
{
"command": "wakeWord.resetConsent",
"title": "Wake Word: Reset Microphone Consent"
}
],
"configuration": {
"title": "Wake Word",
"properties": {
"wakeWord.routes": {
"type": "array",
"default": [],
"description": "Wake phrase routing table. Each entry maps a spoken phrase to an editor command. If empty, default routes are used (Hey Copilot, Hey Claude, Computer).",
"items": {
"type": "object",
"required": [
"label",
"phrase",
"command"
],
"properties": {
"label": {
"type": "string",
"description": "Human-readable name shown in notifications (e.g. \"Claude\")"
},
"phrase": {
"oneOf": [
{
"type": "string",
"description": "A single spoken phrase to listen for (e.g. \"hey claude\")"
},
{
"type": "array",
"items": { "type": "string" },
"minItems": 1,
"description": "Multiple phrases that trigger the same command (e.g. [\"hey claude\", \"open claude\"])"
}
],
"description": "Spoken phrase(s) to listen for. Use a string for one phrase or an array for multiple aliases."
},
"command": {
"type": "string",
"description": "Command ID to execute (e.g. \"workbench.action.chat.open\")"
},
"cooldownSeconds": {
"type": "number",
"minimum": 5,
"maximum": 300,
"description": "Override the global cooldown for this route (seconds). Falls back to wakeWord.cooldownSeconds if not set."
}
}
}
},
"wakeWord.cooldownSeconds": {
"type": "number",
"default": 30,
"minimum": 5,
"maximum": 300,
"description": "Seconds to pause wake word listening after handing off to an assistant."
},
"wakeWord.enableOnStartup": {
"type": "boolean",
"default": true,
"description": "Start listening automatically when the editor opens."
},
"wakeWord.showNotificationOnDetection": {
"type": "boolean",
"default": true,
"description": "Show a brief notification when a wake phrase is detected."
},
"wakeWord.pauseOnFocusLoss": {
"type": "boolean",
"default": false,
"description": "Pause wake word listening when the editor loses focus and resume when it regains focus."
},
"wakeWord.confidenceThreshold": {
"type": "number",
"default": 0.3,
"minimum": 0.1,
"maximum": 0.9,
"description": "Minimum confidence score (0.1 to 0.9) required to trigger a wake phrase. Lower values detect more but increase false positives."
},
"wakeWord.nodePath": {
"type": "string",
"default": "",
"description": "Path to the Node.js executable. Leave empty to auto-detect. Set this if Wake Word cannot find Node.js (common with nvm or fnm). macOS and Linux only."
},
"wakeWord.engine": {
"type": "string",
"default": "auto",
"enum": ["auto", "windows", "sherpa"],
"enumDescriptions": [
"Use the best engine for your platform (Windows Speech on Windows, sherpa-onnx elsewhere).",
"Force Windows built-in System.Speech engine (Windows only).",
"Force sherpa-onnx keyword spotting engine (cross-platform, requires model download)."
],
"description": "Speech engine to use. Leave on 'auto' unless testing a specific engine."
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"lint": "eslint src --ext ts && node scripts/check-readme.js",
"package": "vsce package",
"publish:vscode": "vsce publish",
"publish:openvsx": "ovsx publish",
"publish:all": "npm run publish:vscode && npm run publish:openvsx",
"release": "npm run compile && npm run package"
},
"devDependencies": {
"@types/node": "^20.11.0",
"@types/vscode": "^1.85.0",
"@vscode/vsce": "^2.22.0",
"ovsx": "^0.8.0",
"typescript": "^5.3.3",
"eslint": "^8.56.0",
"@typescript-eslint/parser": "^8.56.1",
"@typescript-eslint/eslint-plugin": "^8.56.1"
},
"dependencies": {}
}