On Mon, Apr 20, 2009 at 10:45:00AM -0400, Justin Piszcz
wrote:> Hello,
>
> When a voice message is saved and e-mailed as a wav, the total time of the
> voice mail does not show up in, e.g., windows media player, why is this?
>
> I have only used wav49/wav:
>
> ; Use wav49 format for all voicemail messages
> format=wav49|gsm|wav
WAV is a pretty simple container format. The length is written in a very
expected place in the header:
http://en.wikipedia.org/wiki/.wav
http://ccrma.stanford.edu/courses/422/projects/WaveFormat/
E.g. the following:
wav_size() {
LANG=C cut -b 41-44 "$1" | head -n 1 | hexdump -e
"\"$1:"'$1: %u\n"' | head -n 1
}
--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen at xorcom.com
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir