Skip to content

Push-to-talk not working correctly #10701

Open

Description

@rootgordon

Operating System Info

Other

Other OS

Arch Linux

OBS Studio Version

30.1.2

OBS Studio Version (Other)

No response

OBS Studio Log URL

https://obsproject.com/logs/c9XySMwcvQ4yf7rL

OBS Studio Crash Log URL

No response

Expected Behavior

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

  1. Add an audio-input with a mic/sound-source attached
  2. In Settings -> Audio enable push-to-talk for the audio-input
  3. In Settings -> Hotkeys set up a push-to-talk hotkey for the audio-input
  4. Press the hotkey, a short spike should be visible on the volume-meter of the audio-input
  5. In Settings -> Audio add an easily perceivable delay to the push-to-talk-parameters of the audio-input (something like 5000 ms)
  6. Press the hotkey and immediatly release again. Observe the input picking up sound for the duration of the configured delay
  7. 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.

Activity

  1. sanwichreview commented on Jun 12, 2024

    @sanwichreview

    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.

  2. apple1417 commented on Sep 7, 2024

    @apple1417

    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.

    sudo flatpak update --commit=71d974e21fd96594d6ce66314962435a46674e1c441abcc9a6d64cbe5a5f7eda com.obsproject.Studio 
    

    https://obsproject.com/logs/iLFArzQvMlboIpfm

  3. alyssais commented on Oct 14, 2024

    @alyssais

    This happens because this function is called every 25 milliseconds:

    static bool obs_nix_wayland_hotkeys_platform_is_pressed(obs_hotkeys_platform_t *context, obs_key_t key)
    {
    UNUSED_PARAMETER(context);
    UNUSED_PARAMETER(key);
    // 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.

  4. Maelstromeous commented on Jan 25, 2025

    @Maelstromeous

    I am also seeing this happen, please fix the events.

  5. smvoss commented on May 1, 2025

    @smvoss

    I'm seeing this as well, also on Arch + Wayland

  6. Grusey1 commented on Jun 29, 2025

    @Grusey1

    Also have this issue on Linux Bazzite with OBS 31.0.4.

  7. Lovinoes commented on Aug 17, 2025

    @Lovinoes

    This issue still persists in 31.1.2 running CachyOS

    Operating System: CachyOS Linux 
    KDE Plasma Version: 6.4.4
    KDE Frameworks Version: 6.17.0
    Qt Version: 6.9.1
    Kernel Version: 6.16.1-2-cachyos (64-bit)
    Graphics Platform: Wayland
    Processors: 16 × 11th Gen Intel® Core™ i7-11700 @ 2.50GHz
    Memory: 32 GiB of RAM (31,1 GiB usable)
    Graphics Processor: AMD Radeon RX 6700 XT
    Manufacturer: ASUS
    
  8. Palethorn commented on Nov 7, 2025

    @Palethorn

    I can confirm the same issue.
    OS: Arch Linux
    Desktop environment: Plasma Desktop
    Display server: Wayland

  9. nirmithrai commented on Nov 13, 2025

    @nirmithrai

    Same issue
    OS: Arch Linux
    Desktop environment: Plasma Desktop
    Display server: Wayland

  10. tizu69 commented on Dec 30, 2025

    @tizu69

    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" ]] && echo true || 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.

  11. Trug42 commented on Feb 17, 2026

    @Trug42

    Still having this issue currently. Running on Bazzite, Plasma Desktop, Wayland.

  12. thomasza92 commented on Apr 2, 2026

    @thomasza92

    This was opened in 2024 and the issue still persists.

  13. neolight911 commented on Apr 15, 2026

    @neolight911

    Having the same problem cachyos, kde, obs 32.1.1.

  14. FrytechTV commented on Apr 28, 2026

    @FrytechTV

    Same issue on Bazzite 43, KDE Plasma, OBS 32, on 27 April 2026. This is madness that it still hasn't been fixed.

  15. Akasen commented on Apr 29, 2026

    @Akasen

    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

  16. Fenrirthviti commented on Apr 29, 2026

    @Fenrirthviti
    Member

    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.

  17. Akasen commented on Apr 29, 2026

    @Akasen

    Oh well that's unfortunate

  18. Fenrirthviti commented on Apr 29, 2026

    @Fenrirthviti
    Member

    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.

  19. Akasen commented on Apr 29, 2026

    @Akasen

    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

  20. thomasza92 commented on May 2, 2026

    @thomasza92

    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.

  21. Fenrirthviti commented on May 2, 2026

    @Fenrirthviti
    Member

    Thanks for getting the ball rolling!

  22. hopeseekr commented on May 15, 2026

    @hopeseekr

    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.

  23. tiberium-v commented on May 15, 2026

    @tiberium-v

    @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.

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions