I want to know playing time of gsm file

Hi.
How do you calculate it?

You want to know if client caling to * box listen whole gsm or hang up while playng the file ?
Or how long something recorded to the gsm file is ?
-FD

[quote=“fdragowski”][quote]
I want to know playing time of gsm file.
How do you calculate it?
[/quote]
You want to know if client caling to * box listen whole gsm or hang up while playng the file ?
Or how long something recorded to the gsm file is ?
-FD[/quote]
I’d calculate the whole playing time from gsm file size.

You are looking for some math functions ?

I’m using sln format in *
wav to sln done by
sox foo-in.wav -t raw -r 8000 -s -w -c 1 foo-out.sln
(voip-info.org/wiki/view/Conv … n+Asterisk)

i’ve done very quick (and probably not so high accuracy) calculation
8 files: 418, 634, 635, 717, 731, 825, 937 and 1154 seconds long

linear aproximation for files_size(time) function
y=15,598x+39,095

linear aproximation for time(file_size)
y=6E^-05x-2,4393

time is in seconds
file_size is in kB

for GSM format try to do it Yourself :smiley:

-FD