search for: speex_set_complexity

Displaying 20 results from an estimated 39 matches for "speex_set_complexity".

2005 May 26
1
What does SPEEX_SET_COMPLEXITY do?
Hi there According to the manual SPEEX_SET_COMPLEXITY sets the allowed CPU usage for the encoder. I've tried changing the complexity from 1 to 10 to see if I were able to notice any difference in sound quality but I have not. Shouldn't the effect of a high complexity increase the sound quality? Kind regards Bjoern _______________________...
2005 Feb 27
2
SPEEX_GET_QUALITY
...; quality++) + if (st->submodeID == ((SpeexNBMode*)(st->mode->mode))->quality_map[quality]) break; + + if (quality>10) { + (*(int*)ptr) = -1; + speex_warning("quality not set"); + return -1; + } else + (*(int*)ptr) = quality; + } + break; case SPEEX_SET_COMPLEXITY: st->complexity = (*(int*)ptr); if (st->complexity<1) $ diff -u ../original/speex-1.1.6/libspeex/sb_celp.c libspeex/sb_celp.c --- ../original/speex-1.1.6/libspeex/sb_celp.c 2004-07-15 01:16:52.000000000 -0400 +++ libspeex/sb_celp.c 2005-02-27 08:33:38.000000000 -0500 @@ -121...
2005 Feb 27
0
SPEEX_GET_QUALITY
...BMode*)(st->mode->mode))->quality_map[quality]) break; > + > + if (quality>10) { > + (*(int*)ptr) = -1; > + speex_warning("quality not set"); > + return -1; > + } else > + (*(int*)ptr) = quality; > + } > + break; > case SPEEX_SET_COMPLEXITY: > st->complexity = (*(int*)ptr); > if (st->complexity<1) > > $ diff -u ../original/speex-1.1.6/libspeex/sb_celp.c libspeex/sb_celp.c > --- ../original/speex-1.1.6/libspeex/sb_celp.c 2004-07-15 01:16:52.000000000 -0400 > +++ libspeex/sb_celp.c 2005-02-27 08...
2008 Nov 26
2
Lost packets during transmission
...I was wonder how Speex handles (if at all ) lost packets when decoding the bit-stream . 1. Does Speex has any mechanism to handle lost packets (like AMR has for example)? 2. I am using Speex in a constant frame size (160 bytes), narrowband, VBR off, SPEEX_SET_QUALITY = 3 and SPEEX_SET_COMPLEXITY =1 . I encode speech stream and sending the encoded packets to the their destination. If I am loosing 4 continuous frames during the transmission , what can I expect to hear? noise ? quiet ? echo ? Can anyone help me with this issues ? Regards, Uri Rattner -------------- next part -...
2004 Aug 06
2
Bitrate in encoder
..._state,SPEEX_GET_BITRATE, &bitrate); Seems to set bitrate to 24600 no matter what the qualitysetting is.. The functions used previous to this call is: peex_bits_init(&globals->bits); globals->enc_state = speex_encoder_init(&speex_nb_mode); speex_encoder_ctl(globals->enc_state,SPEEX_SET_COMPLEXITY,..); speex_encoder_ctl(globals->enc_state,SPEEX_SET_QUALITY, ..); speex_encoder_ctl(globals->enc_state,SPEEX_GET_BITRATE, &bitrate); The last line always sets the bitrate to 24600.. Why? In my previous installation of libspeex I had the same problem, but then bitrate was always set to 15...
2004 Aug 06
2
Speex modes
Hi, I'm about finished developing a QuickTime component that supports Speex (on MacOS X and Windows).. As it is now the user can set complexity (SPEEX_SET_COMPLEXITY) and quality (SPEEX_SET_QUALITY / SPEEX_SET_VBR_QUALITY) and to wether to use VBR or not. Will these options make it possible to produce all combinations of bitrates/qualities? Or should I also use SPEEX_SET_MODE/SPEEX_SET_LOW_MODE/SPEEX_SET_HIGH_MODE to accomplish this? /Pontus --- >8 ----...
2012 Jan 20
1
speex_encode_int performance iphone4 + iOS5
...B));?? ? /**? ? ?* A quality of ...? ? ?*/? ? val = 7;? ??? ? /**? ? ?* Set the quality.? ? ?*/? ? speex_encoder_ctl(encoder_state_, SPEEX_SET_QUALITY, &val);? ??? ? /**? ? ?* A complexity of ...? ? ?*/? ? val = 0;? ??? ? /**? ? ?* Set the complexity.? ? ?*/? ? speex_encoder_ctl(encoder_state_, SPEEX_SET_COMPLEXITY, &val); ? ? /**? ? ?* A bit rate of 8000? ? ?*/? ? val = default_sample_rate;? ??? ? /**? ? ?* Set the bit rate.? ? ?*/? ? speex_encoder_ctl(encoder_state_, SPEEX_SET_BITRATE, &val);? ??? ? /**? ? ?* Disable vad.? ? ?*/? ? val = 0;? ??? ? /**? ? ?* Disable vad.? ? ?*/? ? speex_encoder_ctl(e...
2009 May 17
1
how to improve the voice quality (run speex on ADSP-BF533)
...eters in the InitializeSpeex() function. For example, we set: tmp=1; speex_decoder_ctl(g_pvDec, SPEEX_SET_ENH, &tmp); tmp=1; speex_encoder_ctl(g_pvEnc, SPEEX_SET_VBR, &tmp); tmp=8; speex_encoder_ctl(g_pvEnc, SPEEX_SET_QUALITY, &tmp); tmp=3; speex_encoder_ctl(g_pvEnc, SPEEX_SET_COMPLEXITY, &tmp); (the other parameters are preserved as default.) Would you like to help me to solve this problem? or send me some renewed speech codec demoes can work better on BLACKFIN DSP please. I also noiticed that somebody met the same problem unsolved, see: http://www.blackfin.org/phorum/read.p...
2004 Aug 06
1
i need your opinion of my encoded file in ipaq 1940
...ed parameters. File original: http://padawan.ing.puc.cl/chavezorig.wav File encoded: http://padawan.ing.puc.cl/chavezq1.wav The parameters for encoded are: state = speex_encoder_init(&speex_nb_mode); int tmp=0; speex_encoder_ctl(state, SPEEX_SET_VBR, &tmp); cmpl=1; speex_encoder_ctl(state, SPEEX_SET_COMPLEXITY, &cmpl); quality=1; speex_encoder_ctl(state, SPEEX_SET_QUALITY, &quality); I think that the quality in ipaq is minor who the obtained one in the PC to the same quality 1. I wait your opinions. Regards. Rodrigo. <p>--- >8 ---- List archives: http://www.xiph.org/archives/ Ogg pr...
2005 Dec 12
0
Real time in ARM - please help
...} speex_encoder_ctl (state, SPEEX_SET_BITRATE, &BitRate); if (VAD) temp = 1; else temp = 0; speex_encoder_ctl (state, SPEEX_SET_VAD, &temp); speex_encoder_ctl (state, SPEEX_GET_FRAME_SIZE, &FrameSize); temp = 1; speex_encoder_ctl (state, SPEEX_SET_COMPLEXITY, &temp); temp = 0; // Just making sure VBR is off. Probably unnecessary. speex_encoder_ctl (state, SPEEX_SET_VBR, &temp); temp = 8000; speex_encoder_ctl (state, SPEEX_SET_SAMPLING_RATE, &temp); fwrite (Speex, 1, 5, fout); fwrite (&SamplingRate, 2, 1, fout);...
2008 Dec 11
1
preprocessor VAD only rocognize between silence and not silence
...speex_bits_init(bits); enc_state = speex_encoder_init(&speex_nb_mode); // obtenemos tama?o frame speex_encoder_ctl(enc_state, SPEEX_GET_FRAME_SIZE, &frame_size); // configuramos parametros int complexity = 5; speex_encoder_ctl(enc_state, SPEEX_SET_COMPLEXITY, &complexity); int samplingrate = 8000; speex_encoder_ctl(enc_state, SPEEX_SET_SAMPLING_RATE, &samplingrate); int quality = 8; //Calidad relativa de 0 a 10 speex_encoder_ctl(enc_state, SPEEX_SET_QUALITY, &quality); int dtx = 0; speex_e...
2009 Sep 02
3
voice sound like robot voice :)
...ed" ); // int enabled = 1; int disabled = 0; // float highpass = 80; // setup encoder pCodecEncoderState = speex_encoder_init( pMode ); // speex_encoder_ctl( pCodecEncoderState, SPEEX_SET_SAMPLING_RATE, &sampleRate ); speex_encoder_ctl( pCodecEncoderState, SPEEX_SET_COMPLEXITY, &encoderComplexity ); speex_encoder_ctl( pCodecEncoderState, SPEEX_SET_QUALITY, &encoderQuality ); speex_encoder_ctl( pCodecEncoderState, SPEEX_SET_VBR, &disabled ); speex_encoder_ctl( pCodecEncoderState, SPEEX_SET_DTX, &disabled ); // init encoder speex_bits_init(...
2004 Aug 06
2
Please 30 second to look a my code
...its); //init encoded bits buffer state = speex_encoder_init(&speex_nb_mode); //Init encoder in narrowband mode speex_encoder_ctl(state, SPEEX_GET_FRAME_SIZE, &frame_size);//Get frame size int tmp=0; speex_encoder_ctl(state, SPEEX_SET_VBR, &tmp); tmp=1; speex_encoder_ctl(state, SPEEX_SET_COMPLEXITY, &tmp); bit_rate=24000; speex_encoder_ctl(state, SPEEX_SET_BITRATE, &bit_rate); ReadFile(WaveFile, waveheader, WAVEHEADER, &NrOfBytesRead, NULL); WriteFile(SpeexFile, waveheader, WAVEHEADER, &NrOfBytesWritten, NULL); //Raw copy of waveheader from speexfile to wavefile w...
2009 Sep 03
1
Speex-dev Digest, Vol 64, Issue 2
...float highpass = 80; > > > > // setup encoder > > pCodecEncoderState = speex_encoder_init( pMode ); > > // > > speex_encoder_ctl( pCodecEncoderState, SPEEX_SET_SAMPLING_RATE, > > &sampleRate ); > > speex_encoder_ctl( pCodecEncoderState, SPEEX_SET_COMPLEXITY, > > &encoderComplexity ); > > speex_encoder_ctl( pCodecEncoderState, SPEEX_SET_QUALITY, > > &encoderQuality ); > > speex_encoder_ctl( pCodecEncoderState, SPEEX_SET_VBR, > > &disabled ); > > speex_encoder_ctl( pCodecEncoderState, SPEEX_SET_DT...
2010 Jul 20
2
[SPAM] [BombData][alltestmode] Re: Speex Echo Cancellation
As for me - speex_echo_cancellation is a better choise. Try using it in capture thread instead of those speex_echo_capture and speex_echo_playback functions. And please, describe your problem in details. Cause the fact that you "didn get echo cancellation" doesn't mean you are doing smth wrong. Regards, Anton A. Shpakovsky -----Original Message----- From: speex-dev-bounces at
2004 Aug 06
0
Speex modes
> I'm about finished developing a QuickTime component that supports Speex > (on > MacOS X and Windows).. As it is now the user can set complexity > (SPEEX_SET_COMPLEXITY) and quality (SPEEX_SET_QUALITY / > SPEEX_SET_VBR_QUALITY) and to wether to use VBR or not. Will these > options > make it possible to produce all combinations of bitrates/qualities? Or > should I also use SPEEX_SET_MODE/SPEEX_SET_LOW_MODE/SPEEX_SET_HIGH_MODE > to > accomplish t...
2004 Aug 06
0
Bitrate in encoder
...setting is.. The > functions used previous to this call is: Did you make sure it really *sets* and not just return an incorrect result? > speex_bits_init(&globals->bits); > globals->enc_state = speex_encoder_init(&speex_nb_mode); > speex_encoder_ctl(globals->enc_state,SPEEX_SET_COMPLEXITY,..); > speex_encoder_ctl(globals->enc_state,SPEEX_SET_QUALITY, ..); > speex_encoder_ctl(globals->enc_state,SPEEX_GET_BITRATE, &bitrate); > > The last line always sets the bitrate to 24600.. Why? In my previous > installation of libspeex I had the same problem, but then bit...
2004 Aug 06
0
Invalid mode encountered: corrupted stream?
...tic int comp = 1, quality = 5; static int vero = 1, falso = 0; static int enc_bitrate = 8000; void SpeexInit (void) { //ENCODER speex_bits_init(&enc_bits); enc_state = speex_encoder_init(&speex_nb_mode); speex_encoder_ctl(enc_state,SPEEX_RESET_STATE,NULL); speex_encoder_ctl(enc_state,SPEEX_SET_COMPLEXITY,&comp); speex_encoder_ctl(enc_state,SPEEX_SET_QUALITY,&quality); speex_encoder_ctl(enc_state,SPEEX_SET_BITRATE, &enc_bitrate); speex_encoder_ctl(enc_state,SPEEX_SET_DTX, &vero); <p> //DECODER speex_bits_init(&dec_bits); dec_state = speex_decoder_init(&speex_nb_mo...
2005 Dec 11
1
Speex - Real time??
Hi. I tried encoding a raw PCM file to Speex in my Windows Mobile device and it took about 45 seconds to encode a 10-second file. I had FIXED_POINT defined and used speex_encode_int. The device has an ARMV4 400 MHz processor. Question: Is this behavior expected or is it possible to encode speech to speex real-time such that I can record speech directly as speex in my device? What, if any, can be
2007 Oct 10
0
encode return 0
...ode(0); _State = speex_encoder_init(_Mode); fixed (int* __FrameSize = &_FrameSize, __Complexity = &_Complexity, __SamplingRate = &_SamplingRate) { speex_encoder_ctl(_State, 3 /*SPEEX_GET_FRAME_SIZE*/, __FrameSize); speex_encoder_ctl(_State, 16 /*SPEEX_SET_COMPLEXITY*/, __Complexity); speex_encoder_ctl(_State, 24 /*SPEEX_SET_SAMPLING_RATE*/, __SamplingRate); } _Bits = new SpeexBits(); //Data encoding public byte[] ProcessData(byte[] ABuffer, int ADataSize) { int OutputDataSize; short[] TempData = new short[A...