Presumably there are cleaner approaches, but this one works on Windows:
1) Create a one-line batch file gosound.bat and put it in C:\Users\myusername
- Code: Select all
powershell -c (New-Object Media.SoundPlayer 'c:\users\myusername\mysoundfile.wav').PlaySync();
That's all on one line.
The file does have to be a .wav file (mp3 won't work)
2) Put a two-line lua script named playsound.lua in C:\Users\myusername\AppData\Roaming\Blackmagic Design\DaVinci Resolve\Support\Fusion\Scripts\Deliver
- Code: Select all
programPath = '"c:\\Users\\myusername\\gosound.bat"'
os.execute(programPath)
(note the single-quote double-quote ... double-quote single-quote)
3) Save a Deliver page custom render setting that has Trigger script at End of render job set, and in the dropdown choose 'playsound'
PC Win 11 Pro, 64GB ram; NVidia 572.83; dual monitor; RTX 3080 (10GB); auto/CUDA processing mode; SSD cache, separate SSD for data; Davinci Studio