microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.13k stars 28.52k forks source link

Microphone not working #176139

Closed SanatSharmaa closed 1 year ago

SanatSharmaa commented 1 year ago

Type: Performance Issue

Microphone not working while using speech_recognition library

VS Code version: Code 1.76.0 (92da9481c0904c6adfe372c12da3b7748d74bdcb, 2023-03-01T10:22:44.506Z) OS version: Windows_NT x64 10.0.19045 Modes: Sandboxed: No

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i3-7020U CPU @ 2.30GHz (4 x 2304)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off| |Load (avg)|undefined| |Memory (System)|7.88GB (4.24GB free)| |Process Argv|C:\\Users\\ACER\\Desktop --crash-reporter-id 32d3255a-b87c-49a0-8645-345afbe0b5c8| |Screen Reader|no| |VM|0%|
Process Info ``` CPU % Mem MB PID Process 2 193 7436 code main 0 41 4840 utility-network-service 0 154 5044 window (03 module.py - Desktop - Visual Studio Code) 3 87 5116 issue-reporter 0 102 6308 shared-process 0 86 7364 fileWatcher 0 86 8284 fileWatcher 0 76 9008 ptyHost 0 66 7048 C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noexit -command "try { . \"c:\Users\ACER\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\contrib\terminal\browser\media\shellIntegration.ps1\" } catch {}" 0 6 11824 console-window-host (Windows internal process) 0 201 7084 window (jarvis.py - Jarvis - Visual Studio Code) 1 173 7608 gpu-process 0 25 7708 crashpad-handler 0 158 8168 utility-process 0 29 656 c:\Users\ACER\AppData\Local\Programs\Python\Python310\python.exe c:\Users\ACER\.vscode\extensions\ms-python.isort-2022.8.0\bundled\tool\server.py 0 11 6324 console-window-host (Windows internal process) 0 183 5028 electron-nodejs ("C:\Users\ACER\AppData\Local\Programs\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node c:\Users\ACER\.vscode\extensions\ms-python.vscode-pylance-2023.3.10\dist\server.bundle.js --cancellationReceive=file:1dab5e01d8ea28d3018f8953ba73403c0e1897a6c5 --node-ipc --clientProcessId=8168) 0 82 11936 electron-nodejs ("C:\Users\ACER\AppData\Local\Programs\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node "c:\Users\ACER\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\json-language-features\server\dist\node\jsonServerMain" --node-ipc --clientProcessId=8168) 0 113 11368 utility-process ```
Workspace Info ``` | Window (03 module.py - Desktop - Visual Studio Code) | Window (jarvis.py - Jarvis - Visual Studio Code) | Folder (Desktop): 4 files | File types: lnk(3) ini(1) | Conf files: | Folder (Jarvis): 1 files | File types: py(1) | Conf files:; ```
Extensions (10) Extension|Author (truncated)|Version ---|---|--- code-runner|for|0.12.0 isort|ms-|2022.8.0 python|ms-|2023.4.0 vscode-pylance|ms-|2023.3.10 jupyter|ms-|2023.2.1000592019 jupyter-keymap|ms-|1.1.0 jupyter-renderers|ms-|1.0.15 vscode-jupyter-cell-tags|ms-|0.1.6 vscode-jupyter-slideshow|ms-|0.1.5 cpptools|ms-|1.14.4 (1 theme extensions excluded)
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 pythonvspyl392:30443607 vserr242cf:30382550 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263cf:30335440 vscorecescf:30445987 pythondataviewer:30285071 vscod805:30301674 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 cmake_vspar411:30581797 vsaa593:30376534 pythonvs932:30410667 cppdebug:30492333 vsclangdf:30486550 c4g48928:30535728 dsvsc012cf:30540253 azure-dev_surveyone:30548225 pyindex848:30662994 nodejswelcome1cf:30587006 3biah626:30602489 pyind779:30671433 f6dab269:30613381 pythonsymbol12:30671437 vsccsb:30677849 pythonb192:30669360 ```
brammie15 commented 1 year ago

Doens't the speech_recognition use the default Windows Microphone. Also make sure you have downloaded all the required libraries for the speech_recognition to work.

SanatSharmaa commented 1 year ago

Doens't the speech_recognition use the default Windows Microphone. Also make sure you have downloaded all the required libraries for the speech_recognition to work.

Already did. But still not working.

deepak1556 commented 1 year ago

Can you share a minimal example of the action you are trying to perform, ex: is this in the context of a notebook ?

VSCodeTriageBot commented 1 year ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!