You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Audio bell does not work in integrated terminal #47711
accessibilityKeyboard, mouse, ARIA, vision, screen readers (non-specific) issuesfeature-requestRequest for new features or functionalityinsiders-releasedPatch has been released in VS Code InsidersterminalGeneral terminal issues that don't fall under another labelverification-neededVerification of issue is requestedverifiedVerification succeeded
(Plan to use this ASCII to ring some task when the compilation is finish 😹)
Maybe make the beep sound can be configured (like in KDE Konsole in my case) would fix it.
Even with terminal.integrated.enableBell enabled, running printf "\a" in the VS Code Integrated Terminal triggers no sound, despite the same command triggering a sound in my OS terminal.
MacOS 10.14.5
Reacted by ૮༼⚆︿⚆༽つ, Krishna Pravin, Tomasz and Nick Anderson
Is this supposed to be resolved as of 1.72.2 (commit d045a5e)? If so, it is not working for me on macOS 10.15.7; running printf '\a' in the VSCode terminal does nothing.
Found myself on Version: 1.72.2 and can confirm that enabling the setting does in fact give you a bell sound :D
Enable with Cmd + Shift + P, search/select Preferences: Open Settings (UI), search for "bell" and check on the "Terminal > Integrated: Enable Bell" toggle.
Thanks all, it's working now. However, it doesn't use the alert sound I have configured on my Mac ("Glass" ding in System Sounds), and the "bloop" sound that VSCode uses is much too quiet; I have to turn my volume up to 100% for it to be at the same level as the Glass sound at 25%. Is there a way to adjust the volume level and/or the audio file that is played?
i can confirm printf '\a' or echo '\a' will give a chime. BUT:
it is NOT the system chime, NOR does it bump the VSCode icon in the dock, NOR does it add a notification icon to VSCode in the dock. (terminal does all this, see icon attached)
to reproduce in terminal, you might have to test it using a sleep, so you have time to unfocus the terminal before it rings the bell:
sleep 5 && printf '\a' and then quickly focus another app within 5 seconds
Denis Howe (@denishowew) For getting notified when a command/script finishes, I've been using say for some time, as suggested by others here. However, the chime/alert sound plays in many other situations, too, such as when a tab-autocomplete or history reverse-search (^R) fails.
accessibilityKeyboard, mouse, ARIA, vision, screen readers (non-specific) issuesfeature-requestRequest for new features or functionalityinsiders-releasedPatch has been released in VS Code InsidersterminalGeneral terminal issues that don't fall under another labelverification-neededVerification of issue is requestedverifiedVerification succeeded
Activity
Tyriar commentedon Apr 30, 2018
Looks like there's an issue with the bell in the packages version of VS Code (not in the dev build):
Uncaught (in promise) DOMException: Unable to decode audio dataTyriar commentedon Apr 30, 2018
This may be related to Electron https://bugs.chromium.org/p/chromium/issues/detail?id=409402, should verify after we upgrade to Electron 2.
Tyriar commentedon Sep 12, 2018
Not fixed in Electron 2?
DrSensor commentedon Mar 3, 2019
I have the same problem with this in my machine:
(Plan to use this ASCII to ring some task when the compilation is finish 😹)
Maybe make the beep sound can be configured (like in KDE Konsole in my case) would fix it.
kvharish commentedon Apr 21, 2019
Hi, any idea when this will be fixed?
I am trying to add a bell sound at the end of my grunt task. It works fine in default terminal but not in the vscode integrated terminal.
Version: 1.33.1 (1.33.1)Commit: 51b0b28134d51361cf996d2f0a1c698247aeabd8Date: 2019-04-11T08:14:39.158ZOS - macOS High Sierra (10.13.6)jsejcksn commentedon May 20, 2019
I can also reproduce this issue in macOS with
VS Code: 1.34.0
macOS: 10.14.5
matchu commentedon Oct 7, 2019
I'm seeing this too.
Even with
terminal.integrated.enableBellenabled, runningprintf "\a"in the VS Code Integrated Terminal triggers no sound, despite the same command triggering a sound in my OS terminal.MacOS 10.14.5
64 remaining items
nnWhisperer commentedon Sep 16, 2022
Thank you. How long would it take to have it in the main Vscode version(not insiders) ?
meganrogge commentedon Sep 16, 2022
we will release this version in a few weeks Baris (@nnWhisperer)
jivanpal commentedon Oct 26, 2022
Is this supposed to be resolved as of 1.72.2 (commit d045a5e)? If so, it is not working for me on macOS 10.15.7; running
printf '\a'in the VSCode terminal does nothing.meganrogge commentedon Oct 26, 2022
You need to opt in w the setting for it to work (it's off by default)
0xDECAFC0FFEE commentedon Oct 26, 2022
The audio bell works on my computer!
Thanks for your work - this has been a huge pain point for my workflow for years.
matthewpoer commentedon Oct 26, 2022
Found myself on
Version: 1.72.2and can confirm that enabling the setting does in fact give you a bell sound :DEnable with
Cmd + Shift + P, search/selectPreferences: Open Settings (UI), search for "bell" and check on the "Terminal > Integrated: Enable Bell" toggle.Can also use
Moving forward
printf '\a'will give you a chime.jivanpal commentedon Oct 26, 2022
Thanks all, it's working now. However, it doesn't use the alert sound I have configured on my Mac ("Glass" ding in System Sounds), and the "bloop" sound that VSCode uses is much too quiet; I have to turn my volume up to 100% for it to be at the same level as the Glass sound at 25%. Is there a way to adjust the volume level and/or the audio file that is played?
denishowew commentedon Oct 27, 2022
My old work-around on mac was:
osascript -e "beep beep beep".FreTimmerman commentedon Oct 27, 2022
i can confirm
printf '\a'orecho '\a'will give a chime. BUT:it is NOT the system chime, NOR does it bump the VSCode icon in the dock, NOR does it add a notification icon to VSCode in the dock. (terminal does all this, see icon attached)

to reproduce in terminal, you might have to test it using a sleep, so you have time to unfocus the terminal before it rings the bell:
sleep 5 && printf '\a'and then quickly focus another app within 5 secondsjivanpal commentedon Oct 27, 2022
Denis Howe (@denishowew) For getting notified when a command/script finishes, I've been using
sayfor some time, as suggested by others here. However, the chime/alert sound plays in many other situations, too, such as when a tab-autocomplete or history reverse-search (^R) fails.