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
While pressing the user-defined hotkey for push-to-talk, sound from an input should be recorded. The recording should stop if the hotkey is not pressed anymore, either immediately or after a user-defined delay of x milliseconds.
Current Behavior
When pressing the hotkey for push-to-talk, sound from an input is recorded but only for the duration of the user-defined delay. If no delay is defined the recording stops immediately after pressing the hotkey.
Steps to Reproduce
Add an audio-input with a mic/sound-source attached
In Settings -> Audio enable push-to-talk for the audio-input
In Settings -> Hotkeys set up a push-to-talk hotkey for the audio-input
Press the hotkey, a short spike should be visible on the volume-meter of the audio-input
In Settings -> Audio add an easily perceivable delay to the push-to-talk-parameters of the audio-input (something like 5000 ms)
Press the hotkey and immediatly release again. Observe the input picking up sound for the duration of the configured delay
Press the hotkey and keep pressing it. Observe the input picking up sound for the duration of the configured delay
...
Anything else we should know?
This is on Wayland (Sway). I'm using pipewire, so PulseAudio as far as OBS is concerned. Not sure how this would influence the PTT-delay being reversed in function and rendering PTT useless but I'll still mention it. Continually recording is not an issue.
Reacted by apple1417, Matt Cavanagh, Shiburito, Erick Superded, David Cavar, Lucas Walter, thomasza92 and Frytech
// This function is only used by the hotkey thread for capturing out of
// focus hotkey triggers. Since wayland never delivers key events when out
// of focus we leave this blank intentionally.
return false;
}
The event for the push to talk key being pressed is handled correctly, but then it will be cancelled within 25 milliseconds (after the configured delay) by a call to that function. The fix would be to make a distinction between a global hotkey not being pressed, and it not being possible to check.
If your DE supports running scripts on key press- & release, use OBS Websockets + a bash script, like this:
#!/bin/bash# OBS WebSocket Mic Mute -- requires websocat. No authentication rn.# ./obs-mute.sh mute -> mutes Mic/Aux# ./obs-mute.sh unmute -> unmutes Mic/Aux# ./obs-mute.sh foobar -> unmutes Mic/Aux
OBS_HOST="${OBS_HOST:-localhost}"
OBS_PORT="${OBS_PORT:-4455}"
INPUT_NAME="${INPUT_NAME:-Mic/Aux}"
MUTED=$([[ "$1"=="mute" ]] &&echotrue||echo false)
{ # HACK: I could for the life of me not figure out how to wait for OBS to respond.
sleep 0.01 # This is my solution to that problem!echo'{"op":1,"d":{"rpcVersion":1}}'
sleep 0.01
echo'{"op":6,"d":{"requestType":"SetInputMute","requestId":"1","requestData":{"inputName":"'$INPUT_NAME'","inputMuted":'$MUTED'}}}'# we're done here
} | websocat "ws://$OBS_HOST:$OBS_PORT"
Admittedly this is horrific code, but it works, so I guess that's fine by me.
As far as I know, we don't have insight in to why this happens and why it only affects some users. Speculation about the hotkey tick in previous comments was never tested, and a PR was never submitted with a potential fix.
I understand the frustration, but comments similar to "It's X year and this still isn't fixed" come across as entitled and aren't helpful to the issue, and tend to make an issue not very appealing to work on. If you are providing a comment that is just "me too", please at least include the steps you took to reproduce, and a log file from a session that the issue occurred. Log files, testing, and suggestions on where the issue might lie in the code are always welcome discussion points as well. PRs with a potential fix to be reviewed are even better.
If an issue is still open, I can assure you we are acutely aware of it. At the time of writing, there are over 700 open issues and with as limited internal resources we have as a project, we have to prioritize other issues, such as crashes and bugs without workarounds.
I understand the frustration, but comments similar to "It's X year and this still isn't fixed" come across as entitled and aren't helpful to the issue, and tend to make an issue not very appealing to work on. If you are providing a comment that is just "me too", please at least include the steps you took to reproduce, and a log file from a session that the issue occurred. Log files, testing, and suggestions on where the issue might lie in the code are always welcome discussion points as well. PRs with a potential fix to be reviewed are even better.
If an issue is still open, I can assure you we are acutely aware of it. At the time of writing, there are over 700 open issues and with as limited internal resources we have as a project, we have to prioritize other issues, such as crashes and bugs without workarounds.
Sorry about that. I agree it was entitled and rude of me. I opened a PR which hopefully will be helpful. I am not sure that it completely solves the problem that most people here are probably having (not able to PTT when the window isn't focused) but maybe it could be used for further discussion about that problem moving forward. I think it implements the original fix which was suggested earlier in this issue. Using the changes I was able to actually get hotkeys working when the window was focused and I also did some basic testing on multiple platforms to ensure I didn't break anything too egregiously.
I understand the frustration, but comments similar to "It's X year and this still isn't fixed" come across as entitled and aren't helpful to the issue, and tend to make an issue not very appealing to work on.
You know that gpg signed comments feature request issue for www.bitbucket.org premium accounts is over 14 years old and has cost that corp millions of dollars in cancelled accounts over the years? Yeah, they have the same attitude.
Instead, bug trackers should be searched for the term "years" and issues tackled by length of time open, descending, before new features are added.
For instance, now that Gnome 49 and 50 no longer support Xorg, I cann't get global hotkeys to work at all in OBS and Wayland, nor this feature, either.
@hopeseekr The comparison is faulty. Bitbucket had a company behind with paid developers. The majority of the obs developers are volunteers.
Yeah, they have the same attitude.
Sorry, but Fenrir not only explain it, but also encourage posting reproducible steps. Also that:
PRs are welcome if anyone has a proposed fix.
As far as I know, we don't have insight in to why this happens and why it only affects some users. Speculation about the hotkey tick in previous comments was never tested, and a PR was never submitted with a potential fix.
For the push-to-talk function on Wayland itself, there is work ongoing (open draft PR). But again, the developers for that are completely volunteers and doing it at their free time AND don't know why it only happens on a subset of users, so testing will be tricky here.
For the global hotkey support, what are the base for a practical push-to-talk function under Wayland:
That problem with the global hotkeys is, it has big dependencies on the relative new global hotkey portal for Wayland desktops. There is not even a handful of developers in the obs project who even able to develop against/with that (maybe 2?). And they have their hands full of all the other Linux things happen with obs or with other projects, that also are important for obs itself.
The current hotkey portal is also not supporting the hotkey workflow, that obs offers their users (profile/scene collections switching). The reason why the project has to wait to upstream/the portal's implementation to implement the methods for that. But the plugin system let the door open for a more "reduce" implementation (see below).
For instance, now that Gnome 49 and 50 no longer support Xorg, I cann't get global hotkeys to work at all in OBS and Wayland, nor this feature, either.
Activity
sanwichreview commentedon Jun 12, 2024
I can corroborate, the same issue is present on my system under the same variables (Arch Linux, OBS 30.1.2). I am using Wayland.
apple1417 commentedon Sep 7, 2024
I'm seeing a similar issue, running the flatpak 30.2.3 install. I'm running Manjaro with X11 - though still using pipewire.
Downgrading to 30.1.2 however fixed it. I haven't tried any other versions, that was just the first one I landed on.
https://obsproject.com/logs/iLFArzQvMlboIpfm
alyssais commentedon Oct 14, 2024
This happens because this function is called every 25 milliseconds:
obs-studio/libobs/obs-nix-wayland.c
Lines 261 to 269 in ba6a6bf
The event for the push to talk key being pressed is handled correctly, but then it will be cancelled within 25 milliseconds (after the configured delay) by a call to that function. The fix would be to make a distinction between a global hotkey not being pressed, and it not being possible to check.
Maelstromeous commentedon Jan 25, 2025
I am also seeing this happen, please fix the events.
smvoss commentedon May 1, 2025
I'm seeing this as well, also on Arch + Wayland
Grusey1 commentedon Jun 29, 2025
Also have this issue on Linux Bazzite with OBS 31.0.4.
Lovinoes commentedon Aug 17, 2025
This issue still persists in 31.1.2 running CachyOS
Palethorn commentedon Nov 7, 2025
I can confirm the same issue.
OS: Arch Linux
Desktop environment: Plasma Desktop
Display server: Wayland
nirmithrai commentedon Nov 13, 2025
Same issue
OS: Arch Linux
Desktop environment: Plasma Desktop
Display server: Wayland
tizu69 commentedon Dec 30, 2025
If your DE supports running scripts on key press- & release, use OBS Websockets + a bash script, like this:
Admittedly this is horrific code, but it works, so I guess that's fine by me.
Trug42 commentedon Feb 17, 2026
Still having this issue currently. Running on Bazzite, Plasma Desktop, Wayland.
thomasza92 commentedon Apr 2, 2026
This was opened in 2024 and the issue still persists.
neolight911 commentedon Apr 15, 2026
Having the same problem cachyos, kde, obs 32.1.1.
FrytechTV commentedon Apr 28, 2026
Same issue on Bazzite 43, KDE Plasma, OBS 32, on 27 April 2026. This is madness that it still hasn't been fixed.
Akasen commentedon Apr 29, 2026
I'm running into this issue as well on CachyOS with OBS 32.1.2 installed via Flatpak
It's actually astonishing this hasn't been fixed yet just because it seems noted that a previous version wasn't having this issue two years back
Fenrirthviti commentedon Apr 29, 2026
PRs are welcome if anyone has a proposed fix.
As far as I know, we don't have insight in to why this happens and why it only affects some users. Speculation about the hotkey tick in previous comments was never tested, and a PR was never submitted with a potential fix.
Akasen commentedon Apr 29, 2026
Oh well that's unfortunate
Fenrirthviti commentedon Apr 29, 2026
I understand the frustration, but comments similar to "It's X year and this still isn't fixed" come across as entitled and aren't helpful to the issue, and tend to make an issue not very appealing to work on. If you are providing a comment that is just "me too", please at least include the steps you took to reproduce, and a log file from a session that the issue occurred. Log files, testing, and suggestions on where the issue might lie in the code are always welcome discussion points as well. PRs with a potential fix to be reviewed are even better.
If an issue is still open, I can assure you we are acutely aware of it. At the time of writing, there are over 700 open issues and with as limited internal resources we have as a project, we have to prioritize other issues, such as crashes and bugs without workarounds.
Akasen commentedon Apr 29, 2026
I apologize for that, I don't really have much to add log wise that at all would probably elucidate this further.
What I'll note is the following:
OBS is set up with Alt and F13 as the hotkeys for Push To Talk
Push To Talk is Enabled. The mic does turn on for a moment with relation to how long the delay is.
Push To Talk does not function if OBS is not the active window at all.
2026-04-28 20-25-49.txt
thomasza92 commentedon May 2, 2026
Sorry about that. I agree it was entitled and rude of me. I opened a PR which hopefully will be helpful. I am not sure that it completely solves the problem that most people here are probably having (not able to PTT when the window isn't focused) but maybe it could be used for further discussion about that problem moving forward. I think it implements the original fix which was suggested earlier in this issue. Using the changes I was able to actually get hotkeys working when the window was focused and I also did some basic testing on multiple platforms to ensure I didn't break anything too egregiously.
Fenrirthviti commentedon May 2, 2026
Thanks for getting the ball rolling!
hopeseekr commentedon May 15, 2026
You know that gpg signed comments feature request issue for www.bitbucket.org premium accounts is over 14 years old and has cost that corp millions of dollars in cancelled accounts over the years? Yeah, they have the same attitude.
Instead, bug trackers should be searched for the term "years" and issues tackled by length of time open, descending, before new features are added.
For instance, now that Gnome 49 and 50 no longer support Xorg, I cann't get global hotkeys to work at all in OBS and Wayland, nor this feature, either.
tiberium-v commentedon May 15, 2026
@hopeseekr The comparison is faulty. Bitbucket had a company behind with paid developers. The majority of the obs developers are volunteers.
Sorry, but Fenrir not only explain it, but also encourage posting reproducible steps. Also that:
For the push-to-talk function on Wayland itself, there is work ongoing (open draft PR). But again, the developers for that are completely volunteers and doing it at their free time AND don't know why it only happens on a subset of users, so testing will be tricky here.
For the global hotkey support, what are the base for a practical push-to-talk function under Wayland:
That problem with the global hotkeys is, it has big dependencies on the relative new global hotkey portal for Wayland desktops. There is not even a handful of developers in the obs project who even able to develop against/with that (maybe 2?). And they have their hands full of all the other Linux things happen with obs or with other projects, that also are important for obs itself.
The current hotkey portal is also not supporting the hotkey workflow, that obs offers their users (profile/scene collections switching). The reason why the project has to wait to upstream/the portal's implementation to implement the methods for that. But the plugin system let the door open for a more "reduce" implementation (see below).
For that reason there is a plugin: https://github.com/leia-uwu/obs-wayland-hotkeys (with some restrictions as mention above) or workarounds over the WebSocket, like: https://github.com/pschmitt/obs-cli, where you can set the hotkey via GNOME/KDE setting and fire the obs-cli command.