Anindya Mozumdar
2005-Nov-29 02:20 UTC
[Speex-dev] Problem in encoding/decoding speech in Win CE
Hi, I am trying to encode raw wave data stored in a buffer using the Speex API (The raw wave data is created using the waveIn* functions - probably irrelevant information here). It is a 5 second clip, 16bits/sample, 8000Hz mono (which gives a buffer size of 80kb for the wave data). I have followed the exact procedure found in the manual available from the web site, except that instead of writing the speex stream into stdout, I am writing it onto a file from where I read later to decode. It decodes to 80kb (as expected). While I can reproduce tapping sounds (by banging a pen on a desk), I am unable to reproduce voice - in which case I hear some junk. Also, the tapping sounds are quite faint. Am I doing something wrong, or is there a problem with the Win CE libraries ? Thanks, Anindya.
Jean-Marc Valin
2005-Nov-29 02:31 UTC
[Speex-dev] Problem in encoding/decoding speech in Win CE
Make sure you're sending the signal in the right format (endianness, scaling and all). That's the most common problem. Jean-Marc Le mardi 29 novembre 2005 ? 15:44 +0530, Anindya Mozumdar a ?crit :> Hi, > I am trying to encode raw wave data stored in a buffer using the > Speex API (The raw wave data is created using the waveIn* functions - > probably irrelevant information here). > It is a 5 second clip, 16bits/sample, 8000Hz mono (which gives a > buffer size of 80kb for the wave data). > I have followed the exact procedure found in the manual available > from the web site, except that instead of writing the speex stream into > stdout, I am writing it onto a file from where I read later to decode. > It decodes to 80kb (as expected). While I can reproduce tapping > sounds (by banging a pen on a desk), I am unable to reproduce voice - in > which case I hear some junk. Also, the tapping sounds are quite faint. > Am I doing something wrong, or is there a problem with the Win CE > libraries ? > > Thanks, > Anindya. > _______________________________________________ > Speex-dev mailing list > Speex-dev@xiph.org > http://lists.xiph.org/mailman/listinfo/speex-dev >