Skip to content

Commit 3aa138c

Browse files
committed
Simplify voice input error messages for SoX installation
1 parent 70ba926 commit 3aa138c

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

‎apps/editor/src/views/panel/backend/message-handlers/handle-voice-input.ts‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,17 @@ const start_recording = (panel_provider: PanelProvider) => {
2828

2929
panel_provider.recording_process.on('error', (error: any) => {
3030
if (error.code == 'ENOENT') {
31-
let error_message =
32-
'The "rec" command was not found. Please install SoX to use voice input.'
31+
let error_message = 'Please install SoX to use voice input.'
3332

3433
if (process.platform == 'darwin') {
3534
error_message =
36-
'The "rec" command was not found. Please install SoX to use voice input (e.g., run "brew install sox" in your terminal).'
35+
'Please install SoX to use voice input (run "brew install sox" in your terminal).'
3736
} else if (process.platform == 'linux') {
3837
error_message =
39-
'The "rec" command was not found. Please install SoX to use voice input (e.g., run "sudo apt install sox" in your terminal).'
38+
'Please install SoX to use voice input (run "sudo apt install sox" in your terminal).'
4039
} else if (process.platform == 'win32') {
4140
error_message =
42-
'The "rec" command was not found. Please install SoX to use voice input (e.g., run "winget install sox.sox" and add it to your PATH).'
41+
'Please install SoX to use voice input (run "winget install sox.sox" and add it to your PATH).'
4342
}
4443

4544
vscode.window.showErrorMessage(error_message)

0 commit comments

Comments
 (0)