Hi, I want to be able to play a vox file to my pc's speakers and was wondering if anyone has some code example how to do it.
For transcoding puproses I wrote a tool that launches third-party free-of-charge utils (such as ffmpeg and sox) to do the job. Sox is used solely to convert Dialogic vox format to wav (and vice versa) because ffmpeg doesn't work with vox.
I should point out that VOX is not really a format, it's just some raw samples dumped to a file. So depending what's in your VOX files, the code to play them would be different. Commonly VOX files contain 8 bit G.711 (mu-law or a-law) samples, which are trivial to turn into PCM-16 that you can play through the PC speakers. Sometimes VOX files contain 4-bit ADPCM, and the conversion to PCM-16 is a little bit more involved. There is source code for both out there in the Internet (ADPCM -> PCM and G.711 -> PCM).
You can load VOX files into an audio editor for listening, I use Goldwave and Audacity for this. However, you still need to know what's inside the VOX files in order to recover the audio properly. Often if the content is unknown you can use a trial and error approach loading it with different settings into your audio editor.
Hello,
Here is a C++ class which does the conversion from ADPCM VOX to wav. So, you can convert vox files recorded by Dialogic boards into wav.
This is written using an old Dialogic document, which I cannot find anymore.
Hope it's useful,
Chris
hi chris,
thanx for the code. but this code is not getting compiled in both turbo c++ and visual studio. in turbo c++, it is giving compile time error for header file stdafx.h.
when i added it, again more compile time errors appeared related to more header files used in stdafx.h and it repeats for each new header file included.can you please help to solve it?
Hi adaiz,
The above code is compiled for me when i taken MFC Dialog based application in Visual Studio 6.0 and added those two files to the created project, it is compiled with out any erros.
Regards,Lakshman.