Dear All, I am trying to send speech across a wireless link. I want to change which speech compression/rate to use according to some algorithm that I have. To be more specific, I have a speech file. In real time, I want to keep changing at which rate speech will be sent next. Let us say, I am considering three rates. I will take the original speech file, compress it using the three rates, which will result in three files. Next, depending on some input parameters, I want to change from which file I will be sending next. Once I receive the whole stream (which has frames from differenet codings), I would like to play this back. Now that is the question, can I combine these different frames into one file for playback, if yes, how, and if no, any suggestions how I can accmplish my goal of playing back a stream containing data compressed using multiple rates. I would truly appreicate your help in this important and urgnet matter. Suhaib -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20070404/556e45f4/attachment.htm
Jean-Marc Valin
2007-Apr-04 16:28 UTC
[Speex-dev] Combining multiple speech files into one
Did you know Speex supports VBR? Did you consider actually reading the manual (and probably a Linux manual as well)? This mailing list is a good place to ask questions, but it's no substitute for doing your homeworks in the first place. Jean-Marc suhaib obeidat a ?crit :> Dear All, > > I am trying to send speech across a wireless link. I want to change which > speech compression/rate to use according to some algorithm that I have. > > To be more specific, I have a speech file. In real time, I want to keep > changing at which rate speech will be sent next. Let us say, I am > considering three rates. > I will take the original speech file, compress it using the three rates, > which will result in three files. Next, depending on some input parameters, > I want to change from which file I will be sending next. > > Once I receive the whole stream (which has frames from differenet codings), > I would like to play this back. Now that is the question, can I combine > these different frames into one file for playback, if yes, how, and if no, > any suggestions how I can accmplish my goal of playing back a stream > containing data compressed using multiple rates. > > I would truly appreicate your help in this important and urgnet matter. > > Suhaib > > > ------------------------------------------------------------------------ > > _______________________________________________ > Speex-dev mailing list > Speex-dev@xiph.org > http://lists.xiph.org/mailman/listinfo/speex-dev
If you do decide to do things this way, decode from each of the three streams seperately (with different decoder states) and combine them somehow after decompression. The jump from one stream to the other will sound poor, though, both from the cuts in the output, and also from sending discontinous input to the decoder(s). Reed suhaib obeidat wrote:> Dear All, > > I am trying to send speech across a wireless link. I want to change > which speech compression/rate to use according to some algorithm that I > have. > > To be more specific, I have a speech file. In real time, I want to keep > changing at which rate speech will be sent next. Let us say, I am > considering three rates. > I will take the original speech file, compress it using the three rates, > which will result in three files. Next, depending on some input > parameters, I want to change from which file I will be sending next. > > Once I receive the whole stream (which has frames from differenet > codings), I would like to play this back. Now that is the question, can > I combine these different frames into one file for playback, if yes, > how, and if no, any suggestions how I can accmplish my goal of playing > back a stream containing data compressed using multiple rates. > > I would truly appreicate your help in this important and urgnet matter. > > Suhaib > > > ------------------------------------------------------------------------ > > _______________________________________________ > Speex-dev mailing list > Speex-dev@xiph.org > http://lists.xiph.org/mailman/listinfo/speex-dev
Jean-Marc Valin
2007-Apr-05 06:58 UTC
[Speex-dev] Combining multiple speech files into one
Reed Hedges a ?crit :> > If you do decide to do things this way, decode from each of the three > streams seperately (with different decoder states) and combine them > somehow after decompression. The jump from one stream to the other will > sound poor, though, both from the cuts in the output, and also from > sending discontinous input to the decoder(s).That's the case if the files encode different speech. If it's just the same thing with different rates, it's easy to get the encoder to switch inside the same stream. Jean-Marc> Reed > > > suhaib obeidat wrote: >> Dear All, >> >> I am trying to send speech across a wireless link. I want to change >> which speech compression/rate to use according to some algorithm that >> I have. >> >> To be more specific, I have a speech file. In real time, I want to >> keep changing at which rate speech will be sent next. Let us say, I am >> considering three rates. >> I will take the original speech file, compress it using the three >> rates, which will result in three files. Next, depending on some input >> parameters, I want to change from which file I will be sending next. >> >> Once I receive the whole stream (which has frames from differenet >> codings), I would like to play this back. Now that is the question, >> can I combine these different frames into one file for playback, if >> yes, how, and if no, any suggestions how I can accmplish my goal of >> playing back a stream containing data compressed using multiple rates. >> >> I would truly appreicate your help in this important and urgnet matter. >> >> Suhaib >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> 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 > >