-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
216 lines (216 loc) · 7.01 KB
/
package.json
File metadata and controls
216 lines (216 loc) · 7.01 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
{
"name": "voice-prompt",
"displayName": "Voice Typing",
"description": "Capture voice, rewrite into clean prompts, and inject into VS Code / Cursor input.",
"version": "0.2.1",
"publisher": "qingy-wu",
"repository": {
"type": "git",
"url": "https://github.com/bread22/voice-typing.git"
},
"homepage": "https://github.com/bread22/voice-typing#readme",
"bugs": {
"url": "https://github.com/bread22/voice-typing/issues"
},
"license": "MIT",
"engines": {
"vscode": "^1.90.0"
},
"keywords": [
"voice",
"speech",
"dictation",
"whisper",
"microphone",
"accessibility",
"transcription",
"stt"
],
"categories": [
"Other",
"Machine Learning"
],
"galleryBanner": {
"color": "#1a1a2e",
"theme": "dark"
},
"icon": "icon.png",
"main": "./dist/extension.js",
"activationEvents": [
"onCommand:voicePrompt.startRecording",
"onCommand:voicePrompt.setCloudApiKey"
],
"contributes": {
"commands": [
{
"command": "voicePrompt.startRecording",
"title": "Voice Prompt: Start Recording"
},
{
"command": "voicePrompt.setCloudApiKey",
"title": "Voice Prompt: Set Cloud API Key"
}
],
"keybindings": [
{
"command": "voicePrompt.startRecording",
"key": "alt+v",
"when": ""
}
],
"configuration": {
"title": "Voice Prompt",
"properties": {
"voicePrompt.stt.provider": {
"type": "string",
"default": "whisper-cpp",
"enum": ["whisper-cpp", "http"],
"enumDescriptions": [
"Local whisper-cpp CLI (recommended, no server needed)",
"HTTP endpoint (for custom STT servers)"
],
"description": "Speech-to-text provider."
},
"voicePrompt.stt.model": {
"type": "string",
"default": "base",
"enum": ["tiny.en", "tiny", "base.en", "base", "small.en", "small"],
"enumDescriptions": [
"English-only, ~75 MB, fastest",
"Multilingual, ~75 MB, fast",
"English-only, ~142 MB, good accuracy",
"Multilingual, ~142 MB, good accuracy (recommended for multi-language)",
"English-only, ~466 MB, best English accuracy",
"Multilingual, ~466 MB, best multilingual accuracy"
],
"description": "Whisper model size. Models without '.en' suffix support all languages."
},
"voicePrompt.stt.whisperCppPath": {
"type": "string",
"default": "",
"description": "Path to whisper-cpp binary. Leave empty to auto-detect from PATH."
},
"voicePrompt.stt.modelPath": {
"type": "string",
"default": "",
"description": "Path to GGML model file. Leave empty to auto-download."
},
"voicePrompt.stt.httpEndpoint": {
"type": "string",
"default": "http://127.0.0.1:8765/transcribe",
"description": "HTTP STT endpoint (used when provider is 'http')."
},
"voicePrompt.stt.timeoutMs": {
"type": "number",
"default": 30000,
"minimum": 5000,
"maximum": 120000,
"description": "STT timeout in milliseconds."
},
"voicePrompt.stt.language": {
"type": "string",
"default": "auto",
"description": "Language code for speech recognition. Use 'auto' to detect automatically, or a specific code like 'en', 'zh', 'ja', 'ko', etc."
},
"voicePrompt.rewrite.provider": {
"type": "string",
"default": "ollama",
"enum": ["ollama", "cloud", "none"],
"description": "Rewrite provider."
},
"voicePrompt.rewrite.model": {
"type": "string",
"default": "llama3.2:3b",
"description": "Rewrite model identifier."
},
"voicePrompt.rewrite.cloudBaseUrl": {
"type": "string",
"default": "https://api.openai.com/v1/chat/completions",
"description": "Cloud rewrite API endpoint (OpenAI-compatible)."
},
"voicePrompt.rewrite.ollamaBaseUrl": {
"type": "string",
"default": "http://127.0.0.1:11434",
"description": "Ollama base URL."
},
"voicePrompt.rewrite.timeoutMs": {
"type": "number",
"default": 20000,
"minimum": 1000,
"maximum": 120000,
"description": "Rewrite request timeout in milliseconds."
},
"voicePrompt.rewrite.style": {
"type": "string",
"default": "engineering",
"enum": ["concise", "detailed", "engineering", "debugging"],
"description": "Rewrite style preset."
},
"voicePrompt.previewBeforeInsert": {
"type": "boolean",
"default": false,
"description": "Show editable preview before insertion."
},
"voicePrompt.autoFallbackToCloud": {
"type": "boolean",
"default": false,
"description": "Fallback to cloud provider if local rewrite fails."
},
"voicePrompt.noRewriteBehavior": {
"type": "string",
"default": "stt_passthrough",
"enum": ["stt_passthrough", "disable_plugin"],
"description": "Behavior when no rewrite backend is available."
},
"voicePrompt.showStatusBarButton": {
"type": "boolean",
"default": true,
"description": "Show status bar microphone button."
},
"voicePrompt.insertTrailingSpace": {
"type": "boolean",
"default": true,
"description": "Append a space after inserted text for easier consecutive inputs."
},
"voicePrompt.vad.enabled": {
"type": "boolean",
"default": true,
"description": "Enable VAD auto-end behavior."
},
"voicePrompt.vad.silenceMs": {
"type": "number",
"default": 1500,
"minimum": 600,
"maximum": 3000,
"description": "Silence duration (ms) before auto-stop. Increase if speech is cut off."
},
"voicePrompt.vad.minSpeechMs": {
"type": "number",
"default": 300,
"minimum": 100,
"maximum": 1000,
"description": "Minimum speech duration to accept input."
}
}
}
},
"scripts": {
"build": "tsc -p .",
"bundle": "node esbuild.mjs --production",
"bundle:dev": "node esbuild.mjs",
"package": "npm run bundle && npx vsce package --no-dependencies --skip-license --allow-missing-repository",
"dev": "node esbuild.mjs && npx vsce package --no-dependencies --skip-license --allow-missing-repository -o voice-prompt-dev.vsix",
"watch": "tsc -w -p .",
"test": "npm run build && node test/runTests.js"
},
"devDependencies": {
"@types/node": "^22.13.10",
"@types/vscode": "^1.90.0",
"@vscode/vsce": "^2.32.0",
"esbuild": "^0.25.0",
"typescript": "^5.8.2"
},
"dependencies": {
"undici": "^7.5.0"
}
}