From 164732154030c8fa7f471069d300f7d180e729a4 Mon Sep 17 00:00:00 2001 From: Yun Chan Date: Sun, 5 Apr 2026 10:08:55 +0900 Subject: [PATCH] =?UTF-8?q?=EC=98=A4=EB=94=94=EC=98=A4=20=EB=94=94?= =?UTF-8?q?=EB=B0=94=EC=9D=B4=EC=8A=A4=20=ED=95=9C=EA=B8=80=20=EA=B9=A8?= =?UTF-8?q?=EC=A7=90=20=EC=88=98=EC=A0=95:=20PowerShell=20UTF-8=20?= =?UTF-8?q?=EC=B6=9C=EB=A0=A5=20=EA=B0=95=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/services/AudioCaptureService.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/services/AudioCaptureService.ts b/src/main/services/AudioCaptureService.ts index 9b6a993..18e443e 100644 --- a/src/main/services/AudioCaptureService.ts +++ b/src/main/services/AudioCaptureService.ts @@ -234,10 +234,11 @@ class AudioCaptureService extends EventEmitter { try { // PowerShell로 Windows 오디오 입력 디바이스 열거 const { execSync } = await import('child_process') - const psCommand = `Get-CimInstance Win32_SoundDevice | Where-Object { $_.StatusInfo -eq 3 } | Select-Object -Property DeviceID, Name | ConvertTo-Json -Compress` + const psCommand = `[Console]::OutputEncoding = [Text.Encoding]::UTF8; Get-CimInstance Win32_SoundDevice | Where-Object { $_.StatusInfo -eq 3 } | Select-Object -Property DeviceID, Name | ConvertTo-Json -Compress` const output = execSync(`powershell -NoProfile -Command "${psCommand}"`, { encoding: 'utf8', timeout: 5000, + env: { ...process.env, PYTHONIOENCODING: 'utf-8' }, }).trim() if (output) {