Resource icon

Play Sound on Save Replay Buffer (+ Edit Sound Effect Volume) 1.0

cwypt

New Member
cwypt submitted a new resource:

Play Sound on Save Replay Buffer (+ Edit Sound Effect Volume) - A sound of your choosing will play when you Save Replay Buffer.

1. Choose a .wav file that you want for the notification sound, and make sure to cut it to just the short notification sound. I'll provide the one I use below.

2. While in OBS, go to Tools --> Scripts and add the Lua script provided.

3. Open the Lua file in ANY text editor. Edit AUDIO_FILE (just the part in quotations) to the name (including .wav) of the file you want as your Save Replay Buffer Notification. Then, edit AUDIO_VOLUME to your preferred volume (between 0.1 - 1.0). Save the Lua...

Read more about this resource...
 

Stoonk!

New Member
I have tried so many "sound effect on replay buffer save" scripts but none of them have ever worked. I have no idea what I'm doing wrong I followed these instructions exactly.
 

Suslik V

Active Member
@Stoonk! All these scripts supports only ASCII characters from English alphabet for the file path (no Unicode symbols) and works only for Windows.
 

robibbi

New Member
That sounds frustrating! Double-check your script permissions and file paths, as small errors can cause issues. For quality sound effects, https://soundeffekte.net/ has some great options once it's up and running. Good luck!
 

robolokbo

New Member
I had a problem where the replaybuffer would save to my desired video folder but would play a windows system notification instead of the .wav file I wanted. For noobs like me, here's how I fixed it:
  1. I moved the sound-on-save-replay-buffer.lua file to the script folder (locate where you installed OBS and navigate to obs-studio\data\obs-plugins\frontend-tools\scripts and put the .lua file in this folder)
  2. I made a copy of the .wav I wanted to use and put it in the same scripts folder (this might be a crappy way of doing it, but who cares? It works for me)
  3. Then I opened the sound-on-save-replay-buffer.lua file and on line 7 changed "replay buffer save sound.wav" to " (filename) .wav"
    1. If it helps, I changed "replay buffer save sound.wav" to "cameraSnapshot.wav" because that was the name of the file I wanted to play when I saved a replaybuffer
  4. I then changed the volume value (it should have a comment saying what to do on the .lua file)
  5. Saved the .lua (make sure you actually save it as a .lua as I made the mistake of not doing this the first time)
  6. Now the .wav would play whenever I saved a replaybuffer!
 

Suslik V

Active Member
@Winchester7314
The "Adwanced Scene Switcher" plugin can do the job - it has condition "Replay buffer saved" and action "System tray notification". Of course, applications running in full screen (exclusively uses your display device) will not draw notification on the same screen. You need second display device. Then you can restart any animation (media file) on replay saved that can be viewed in the Windowed Projector (Source) of OBS.

Modification of the final rendering of the game with custom tools (to draw something above) is not desirable - it may trigger anti-cheat of the game and may conflict with the OBS.

For example, RivaTuner application supports custom OSD, which can be loaded via hotkeys, thus something dumb as "replay saved!" text in one overlay file and empty message in another overlay file can inform you on events of your interest - you just need to send right sequence of hotkeys. But be sure, the mentioned application is known to have conflicts with OBS: https://obsproject.com/kb/known-conflicts

Other example. The Steam store application has own overlay that shows notification when screenshot saved - you just need to send right hotkey when replay saved ("Adwanced Scene Switcher" plugin can send this F12 hotkey) and don't mind that you get a screenshot as a little bonus...
 
Top