-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
218 lines (218 loc) · 6.11 KB
/
Copy pathpackage.json
File metadata and controls
218 lines (218 loc) · 6.11 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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
{
"publisher": "maxdewald",
"name": "copilot-speech",
"displayName": "Copilot Speech",
"type": "module",
"version": "0.6.3",
"packageManager": "pnpm@11.17.0",
"volta": {
"node": "24.18.0",
"pnpm": "11.17.0"
},
"description": "Private local speech-to-text for GitHub Copilot Chat.",
"author": "Maximilian Dewald <maximilian@dewald.one>",
"license": "MIT",
"homepage": "https://github.com/maxdewald/copilot-speech#readme",
"repository": {
"type": "git",
"url": "https://github.com/maxdewald/copilot-speech.git"
},
"bugs": {
"url": "https://github.com/maxdewald/copilot-speech/issues"
},
"keywords": [
"copilot",
"dictation",
"speech-to-text",
"voice",
"cohere"
],
"categories": [
"AI",
"Chat"
],
"main": "./dist/extension/index.cjs",
"icon": "images/logo.png",
"files": [
"LICENSE.md",
"README.md",
"dist/extension/**/*",
"dist/native/runtime/**/*",
"images/*"
],
"engines": {
"node": ">=22.18.0",
"vscode": "^1.125.0"
},
"extensionKind": [
"ui"
],
"capabilities": {
"untrustedWorkspaces": {
"supported": true
},
"virtualWorkspaces": true
},
"activationEvents": [
"onStartupFinished"
],
"contributes": {
"commands": [
{
"command": "copilotSpeech.startChatDictation",
"title": "Start Chat Dictation",
"category": "Copilot Speech",
"icon": "$(mic)"
},
{
"command": "copilotSpeech.stopDictation",
"title": "Stop Dictation",
"category": "Copilot Speech",
"icon": "$(debug-stop)"
},
{
"command": "copilotSpeech.cancelDictation",
"title": "Cancel Dictation",
"category": "Copilot Speech"
},
{
"command": "copilotSpeech.showLogs",
"title": "Show Logs",
"category": "Copilot Speech"
},
{
"command": "copilotSpeech.deleteModel",
"title": "Delete Downloaded Model",
"category": "Copilot Speech"
},
{
"command": "copilotSpeech.openSpeechSettings",
"title": "Open Speech Settings",
"category": "Copilot Speech"
}
],
"keybindings": [
{
"command": "copilotSpeech.startChatDictation",
"key": "ctrl+alt+v",
"mac": "cmd+alt+v",
"when": "!copilotSpeech.active"
},
{
"command": "copilotSpeech.stopDictation",
"key": "ctrl+alt+v",
"mac": "cmd+alt+v",
"when": "copilotSpeech.active"
},
{
"command": "copilotSpeech.cancelDictation",
"key": "escape",
"when": "copilotSpeech.recording"
}
],
"configuration": {
"title": "Copilot Speech",
"properties": {
"copilotSpeech.language": {
"type": "string",
"default": "en",
"enum": [
"en",
"fr",
"de",
"it",
"es",
"pt",
"nl",
"pl",
"el",
"ar",
"ja",
"zh",
"vi",
"ko"
],
"enumItemLabels": [
"English",
"French",
"German",
"Italian",
"Spanish",
"Portuguese",
"Dutch",
"Polish",
"Greek",
"Arabic",
"Japanese",
"Chinese",
"Vietnamese",
"Korean"
],
"scope": "machine",
"description": "Language spoken during dictation. Cohere Transcribe does not auto-detect language, so pick the one you will speak. The model is downloaded and cached on first use."
},
"copilotSpeech.device": {
"type": "string",
"default": "auto",
"enum": [
"auto",
"gpu",
"cpu"
],
"enumItemLabels": [
"Auto",
"GPU (WebGPU)",
"CPU"
],
"markdownEnumDescriptions": [
"Try WebGPU first and automatically fall back to CPU if GPU initialization fails.",
"Require WebGPU. Dictation fails if WebGPU cannot initialize.",
"Always run speech recognition on the CPU."
],
"scope": "machine",
"description": "Hardware used for speech recognition."
},
"copilotSpeech.modelIdleMinutes": {
"type": "number",
"default": 15,
"minimum": 0,
"scope": "machine",
"description": "Minutes of inactivity before stopping the shared speech runtime. Set to 0 to keep it running while a VS Code window remains connected. The runtime restarts from the local model cache on the next dictation."
}
}
}
},
"scripts": {
"build": "tsdown",
"dev": "tsdown --watch --sourcemap",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"test": "vitest run",
"test:coverage": "vitest run --coverage.enabled --coverage.reportsDirectory dist/coverage",
"test:watch": "vitest",
"typecheck": "tsc --noEmit",
"check": "pnpm lint && pnpm typecheck && pnpm test && pnpm build",
"native:configure": "node --experimental-strip-types scripts/native.ts configure",
"native:build": "node --experimental-strip-types scripts/native.ts build",
"native:test": "node --experimental-strip-types scripts/native.ts test",
"vscode:prepublish": "pnpm build",
"ext:package": "pnpm native:configure && pnpm native:build && pnpm build && pnpm package:vsix",
"package:vsix": "mkdir -p dist/artifacts && vsce package --no-dependencies --target ${TARGET:-linux-x64} --ignore-other-target-folders --out dist/artifacts/copilot-speech-${TARGET:-linux-x64}.vsix"
},
"dependencies": {
"onnxruntime-node": "1.27.0"
},
"devDependencies": {
"@antfu/eslint-config": "^9.1.0",
"@huggingface/transformers": "^4.2.0",
"@ricky0123/vad-web": "^0.0.30",
"@types/node": "^24.13.3",
"@types/vscode": "^1.125.0",
"@vscode/vsce": "^3.9.2",
"eslint": "^10.7.0",
"jest-mock-vscode": "^4.12.0",
"tsdown": "^0.22.12",
"typescript": "^6.0.3",
"vitest": "^4.1.10"
}
}