Here’s the a free command line utility written in c++ to play any kind of wav files. This utlity is simple and easy to use.
It just needs two command line arguments
(1) Name of the wave file
(2) Duration of wave file in milliseconds
For example if you want to play “hello.wav” of 18 seconds of length then the syntax would be:-
wavplayer hello.wav 18000
You can also specify the path like :-
wavplayer c:game.wav 2000
wavplayer .soundsalert.wav 2000
You can embed this tool with your application and thus you can make a rocking speaking program…!!!
You can download the utility by Clicking on this link