VoiceGuide IVR Software Main Page
Jump to content

U-law And Alaw Not Supported In Microsoft Sound Api

Recommended Posts

We use VG to save user recorded comments and play them back to users under another application. We use the Microsoft Sound API, the only supported format is PCM. Is there anyway to save a user record file as PCM in VG? (7)

Share this post


Link to post

You should be able to play back the ULaw and ALaw format files as well. Just double click on the file and you should see Windows play them. Not sure what you mena by "Microsoft Sound API" but easiest test is ot open the Microsoft Sound Recorder (sndrec32.exe) and open the ULaw/ALaw format files in it. You'll see the Sound Recorder application being able to play the files.

Share this post


Link to post

In this case Microsoft has an api called soundapi, which is what developers use to play back .wav files. While the media player can play the file and so can the record tool, the api only supports PCM files, so for any microsoft developer to play back the recorded file they MUST convert it to PCM today. The api is exposed in several ways, PlaySound is a call from WinMM.dll and they also expose it in .NET under the SoundPlayer class in System.Media. So, my question remains, while I know a user could browse to a file and open a tool like media player, our application requires we simply pass a path onto another application, and that application only uses the PlaySound calls and they only support (in all Microsoft variants) PCM files.

Share this post


Link to post

VoiceGuide v7 is designed to record in only ALaw and ULaw format, as these two format are the ones that are most suited for playback/recording over phone lines. Sounds like you will need to either convert the file before playing it or use another API or control to play the file.

 

You can use SoX to convert the files. See: http://sox.sourceforge.net/

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×