obsproject / obs-studio

OBS Studio - Free and open source software for live streaming and screen recording
https://obsproject.com
GNU General Public License v2.0
57.29k stars 7.72k forks source link

Push-to-talk not working correctly #10701

Open rootgordon opened 1 month ago

rootgordon commented 1 month ago

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.

sanwichreview commented 3 weeks ago

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.