search for: encoded_speex_frames

Displaying 2 results from an estimated 2 matches for "encoded_speex_frames".

2006 May 16
0
Determining length of speex file speech
...speech length > should be 5.4 seconds. Unfortunately this is overestimated: Hi Bj?rn, The number of pages is irrelevent. Pages are just the container that stores packets, and the number of packets in each page could vary. You only need to keep track of the number of packets in the file. Then: encoded_speex_frames = (frames_per_packet * Packets) = 1 * 272 = 272 audio_samples = encoded_speex_frames * frame_size = 272 * 640 = 174080 duration = audio_samples / rate = 174080 / 44100 = 3.947 cheers, Conrad.
2006 May 16
2
Determining length of speex file speech
Hello, I would like to run a script over a speex file which determines, how long the speech contained in the speex file is. So I run through the ogg file, skip the first two ogg _pages_ (speex header and comment header, both contain IMHO only 1 ogg _packet_), and then count in any ogg page the number of the ogg _frames_ (which, unless I used -nframes while encoding, which I did not), and multiply