Playing a custom wav/mp3 file in an app

I have a form that audits items picked into a carton. Right now if they scan an item and it is more than what is ordered it plays one of the generic sounds (attention, negative, ect) with the audio output element. I would like the program to play a custom wav file (a voice that says “over pick” in a file I already have) when this happens. I am looking for the best way to have the app play this file in the background (not visible to the user) without something like media player opening on the screen every time it needs to play.

@james.jay There is currently no way in the product to allow for a custom sound file to be uploaded and used. I have discussed this with our Product Team and they will respond further after reviewing your use case.

1 Like

@Bmann Thanks for the update. I had posted this same question on the previous version of this community site. One of the DSI employees (Jun Wang? Not sure of the name since it has been a year or so since that post) replied to my post with a way to use the Shell Command (I think) where it would launch the VLC media player and with the arguments would auto play the file you wanted. I had it somewhat working at the time but never got back to it and don’t have access to that old post any longer.

@Bmann This is pretty close to what I need. I had to build the file path of C:\Program Files\VideoLAN\VLC in separate commands and also copy the negative.wav file in this directory. When you run the app it will open VLC player in the background and play your file. I will have to put it in the mix of the actual program to see how smoothly it loads.

I am glad that you were able to find a workaround. Here is an excerpt from what Jun told you on the old community.

01/14/2016
Jun Wang
Hi, James,

One possible solution is to install open source Media player for Windows “MPC-HC”. You can download it from Home · MPC-HC .

mpc-hc64.exe provides option to close the program after playing the mp3 file.

However this player has not been developed on since 2017. So we are glad that VLC is working for you