On Thu, Nov 18, 2004 at 01:03:53PM +0800, doNz wrote:
> hi, used speexenc (speex v.1.1.6) and checked the output .spx file...
> the header turned out to be different from what i expected based on
> the manual... was expecting it to start with Speex{3 spaces] but it
> starts with OggS... etc. The section 'Ogg File Format' in the
manual
> says that the speex header is supposed to contain speex_string[Speex
> ], speex_version etc. but the 1st few bytes confuse me. could anyone
> clarify? any help regarding this will be appreciated. thanks!
Look a little further on. The series of speex packets, which do begin
with 'Speex ' and so on, are encapsulated in the Ogg file format,
described in http://xiph.org/ogg/doc/framing.html and in RFC 3533 in
normal .spx files. You should see the speex header starting at byte 29.
The Ogg container provides seeking, error detection, and permits
interleaving with other media types, so it's generally a useful addition
for file storage.
Hope that helps,
-r