I've found a little ms dos/windows utility called bin2h , you can find it here:
http://jonripley.com/windows/Software/bin2h/
this utility successfully converts binary files (audio, images) into a hex array that can be used in C.
Now my problem basically lies in understanding in which sound format i should record the sounds i want to be played during the enter/leave process of the conference.
The original enter.h files has this commented in the very beginning of the file:
00001 /* 00002 * U-law 8-bit audio data 00003 * 00004 * Source: enter.raw
Pretty easy huh? .raw file... 8 bit U-law? WRONG... i can't seem to get this sound file right..
with sox I'm trying the following command
sox audio.wav -r 8000 -c1 audio.ul
then from windows I do: bin2h audio.ul audio.h, replace/rename this into enter.h... recompile asterisk source... and then
NOTHING...
but we are still working on it.. so hopefully we get some results in part 3.
Bye!
1 comment:
hello
found you out how change enter/leave sound in the application meetme?. I solve the same problem now.
thanks for reply
Zbynek
melichar@atlantis.cz
Post a Comment