Occasionally, we receive requests to change the maximum length of custom audio files that can be uploaded for the Play Sound action in the Rules Engine. By default, the maximum length is set to 30 seconds, but you can easily modify this length in the desktop client configuration file if longer clips are required.
How to find the desktop configuration file?
Depending on your desktop client's operating system, you can navigate to the configuration file in the following locations:
$ HOME/.config/$company_name/"$company_name"+" "+"$product_name"+" "+"Client.conf"
For Windows (through regedit):
HKEY_CURRENT_USER\Software$company_name$product_name\Network Optix HD Witness Client
How to change the maximum length of the clip?
If you've located the configuration file for the desktop client application, then adjusting the maximum clip length is a straightforward process. It can be easily done with just a few steps.
- Assure all the desktop client instances on the device are closed
- Open the desktop client configuration file with your preferred text editor or Windows regedit
- In the configuration file, add the following parameter:
Add String Value:
Value name: maxMp3FileDurationSec
Value data: <desiredNumberOfSeconds>
For example, if the maximum length has to be two minutes, add the following line to the desktop client configuration file:
- Once this is done, save and close the desktop client configuration file
- Start the desktop client application.
Once this is done, you can set the length of any audio file you upload within the maximum length that was set.
If you have multiple client devices, you can repeat the steps above for each client device.
If you have any questions related to this topic, or you want to share your experience with other community members or our team, please visit and engage in our support community or reach out to your local reseller.