I have successfully DECODED speex on TI C5509: #define TESTENC_BYTES_PER_FRAME 20 /* 8kbps */ #define TESTENC_QUALITY 4 /* 8kbps */ I am trying to generate the files I need with speexenc.exe: speexenc -n --quality 4 -V male.wav male.spx But I can't decode the files on C5x. Yes, I have seen that speexenc.exe adds Ogg header and have deleted the first 396 byte's of the file for test. Where am I going wrong? Can I generate with speexenc.exe raw speex files for the C5x? Regards Peter -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20061004/66328056/attachment.htm
> Yes, I have seen that speexenc.exe adds Ogg header and have deleted the first 396 byte's of the file for test.Where did you see that Ogg was just a header. If stripping the first bytes off the stream was all it takes, libogg would be much smaller ;-) Jean-Marc> > > Where am I going wrong? > > Can I generate with speexenc.exe raw speex files for the C5x? > > > > Regards > > Peter > > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Speex-dev mailing list > Speex-dev@xiph.org > http://lists.xiph.org/mailman/listinfo/speex-dev
For encoding into and decoding from "raw Speex stream" (if you can call it that), I suggest you start with the sampleenc.c and sampledec.c example code in Appendix B of the Speex Manual. Peter Mlakar wrote:> > I have successfully DECODED speex on TI C5509: > > #define TESTENC_BYTES_PER_FRAME 20 /* 8kbps */ > > #define TESTENC_QUALITY 4 /* 8kbps */ > > I am trying to generate the files I need with speexenc.exe: > > speexenc -n --quality 4 -V male.wav male.spx > > But I can?t decode the files on C5x. > > Yes, I have seen that speexenc.exe adds Ogg header and have deleted > the first 396 byte?s of the file for test. > > Where am I going wrong? > > Can I generate with speexenc.exe raw speex files for the C5x? > > Regards > > Peter > > ------------------------------------------------------------------------ > > _______________________________________________ > Speex-dev mailing list > Speex-dev@xiph.org > http://lists.xiph.org/mailman/listinfo/speex-dev >
> For encoding into and decoding from "raw Speex stream" (if you can call > it that), I suggest you start with the sampleenc.c and sampledec.c > example code in Appendix B of the Speex Manual.There is no such a thing as a "raw Speex format". Also, sampleenc.c and sampledec.c are good for learning how to use the API, but the compressed format shouldn't be used in any real application. Jean-Marc> Peter Mlakar wrote: >> >> I have successfully DECODED speex on TI C5509: >> >> #define TESTENC_BYTES_PER_FRAME 20 /* 8kbps */ >> >> #define TESTENC_QUALITY 4 /* 8kbps */ >> >> I am trying to generate the files I need with speexenc.exe: >> >> speexenc -n --quality 4 -V male.wav male.spx >> >> But I can?t decode the files on C5x. >> >> Yes, I have seen that speexenc.exe adds Ogg header and have deleted >> the first 396 byte?s of the file for test. >> >> Where am I going wrong? >> >> Can I generate with speexenc.exe raw speex files for the C5x? >> >> Regards >> >> Peter >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Speex-dev mailing list >> Speex-dev@xiph.org >> http://lists.xiph.org/mailman/listinfo/speex-dev >> > > _______________________________________________ > Speex-dev mailing list > Speex-dev@xiph.org > http://lists.xiph.org/mailman/listinfo/speex-dev > >