/input_frame/ is a /(float *)/ pointing to the beginning of a speech frame What is the range on the floats in the input_frame that speex_encode() needs? The library that I'm using to get the sound gives me floats that are between -1.0 and +1.0. I was assuming that this is also the case for speex, but I don't see it documented. I'm thinking now that maybe this is not the case for Speex because I'm seeing a lot of integer to float conversions in the sample code.
It is documented and the range is +-32767 Jean-Marc Le mardi 07 juin 2005 ? 11:59 -0500, Matt DeMoss a ?crit :> /input_frame/ is a /(float *)/ pointing to the beginning of a speech frame > > What is the range on the floats in the input_frame that speex_encode() > needs? The library that I'm using to get the sound gives me floats that > are between -1.0 and +1.0. > > I was assuming that this is also the case for speex, but I don't see it > documented. > > I'm thinking now that maybe this is not the case for Speex because I'm > seeing a lot of integer to float conversions in the sample code. > _______________________________________________ > Speex-dev mailing list > Speex-dev@xiph.org > http://lists.xiph.org/mailman/listinfo/speex-dev >-- Jean-Marc Valin <Jean-Marc.Valin@USherbrooke.ca> Universit? de Sherbrooke
The API reference says it is "+-2^16 range." Which is right? I've yet to successfully encode or decode anything. Jean-Marc Valin wrote:>It is documented and the range is +-32767 > > Jean-Marc > >Le mardi 07 juin 2005 ? 11:59 -0500, Matt DeMoss a ?crit : > > >>/input_frame/ is a /(float *)/ pointing to the beginning of a speech frame >> >>What is the range on the floats in the input_frame that speex_encode() >>needs? The library that I'm using to get the sound gives me floats that >>are between -1.0 and +1.0. >> >>I was assuming that this is also the case for speex, but I don't see it >>documented. >> >>I'm thinking now that maybe this is not the case for Speex because I'm >>seeing a lot of integer to float conversions in the sample code. >>_______________________________________________ >>Speex-dev mailing list >>Speex-dev@xiph.org >>http://lists.xiph.org/mailman/listinfo/speex-dev >> >> >>