search for: speex_set_quality

Displaying 20 results from an estimated 98 matches for "speex_set_quality".

2005 Feb 09
2
encoding speex, (insanity looming)
...// decoder void *dec_state; SpeexBits dec_bits // quaility and rate int quality = 8, rate = 16000; // setup encoder speex_bits_init(&enc_bits); enc_state = speex_encoder_init(&speex_wb_mode); speex_encoder_ctl(enc_state, SPEEX_SET_QUALITY, &quality); speex_encoder_ctl(enc_state, SPEEX_SET_SAMPLING_RATE, &rate); // setup decoder speex_bits_init(&dec_bits); dec_state = speex_decoder_init(&speex_wb_mode); speex_encoder_ctl(dec_state, SPEEX_SET_QUALITY, &quality); speex_enco...
2004 Aug 06
3
Speex settings and jitter
Hi, Is there are document where the interaction between all the configuration options of speex is explained? Speex seems to have CBR, VBR and ABR. You can also use SPEEX_SET_QUALITY (SPEEX_SET_VBR_QUALITY) and SPEEX_SET_BITRATE which I suppose can't be set at the same time. Is there a list of possible combinations somewhere? I also have another question related to jitter. To minimize jitter, you usually need to make the audio shorter and longer and preferably while keepin...
2008 Nov 26
2
Lost packets during transmission
Hi, 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 Ra...
2004 Aug 06
2
Bitrate in encoder
...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 15000.. Is this a bug or am I doing something wrong? /Pontus &l...
2005 Sep 02
2
DTX mode using preprocessor?
...end knows it's in dtx mode? (and SPEEX_GET_DTX_STATUS returns 1) At the moment, I can hack around it by doing something like: if (VAD for prev frame && ! VAD for this frame) { iArg = 0; speex_encoder_ctl(m_esEncState,SPEEX_SET_VBR, &iArg); speex_encoder_ctl(m_esEncState,SPEEX_SET_QUALITY, &iArg); SBEncState *sbe = static_cast<SBEncState *>(m_esEncState); EncState *es = static_cast<EncState *>(sbe->st_low); es->dtx_count = 1; } (in wideband) .. which forces speex to send the DTX packet and the remote side knows it can safely ignore that stream for...
2005 Feb 09
1
encoding speex, (insanity looming)
...y calling speex_encoder_init & speex_decoder_init in my test code, I have repeated the relevent bits of the example bellow. My version of speex is 1.1.6. Thanks once again for your help, David. enc_state = speex_encoder_init(&speex_wb_mode); speex_encoder_ctl(enc_state, SPEEX_SET_QUALITY, &quality); speex_encoder_ctl(enc_state, SPEEX_SET_SAMPLING_RATE, &rate); // setup decoder speex_bits_init(&dec_bits); dec_state = speex_decoder_init(&speex_wb_mode); On Wed, 9 Feb 2005 09:08:47 -0500, Tom Newbern <tnewbern@comcast.net> wrote: > I...
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 ---- List archives: http://www.xiph....
2004 Aug 06
0
Speex settings and jitter
...est regards, Chris > On Tue, May 20, 2003 at 06:04:39PM +0200, Chris Flerackers wrote: >> Hi, >> >> Is there are document where the interaction between all the configuration >> options of speex is explained? >> Speex seems to have CBR, VBR and ABR. You can also use SPEEX_SET_QUALITY >> (SPEEX_SET_VBR_QUALITY) and SPEEX_SET_BITRATE which I suppose can't be set >> at the same time. Is there a list of possible combinations somewhere? > > Hi Chris, > > not sure if there's a document describing this, I got the info from > the mail archives and ema...
2005 Jan 25
1
Is SPEEX_GET_QUALITY implemented ?
...--------- #include <stdio.h> #include <stdlib.h> #include <speex/speex.h> int main(int argc,char * args[]){ SpeexBits bits; void *enc_state; int Quality=9,tmp; speex_bits_init(&bits); enc_state=speex_encoder_init(&speex_uwb_mode); speex_encoder_ctl(enc_state,SPEEX_SET_QUALITY,&Quality); speex_encoder_ctl(enc_state,SPEEX_GET_QUALITY,&tmp); printf("Quality is %d\n",tmp); } --------------------------------Result of program----------------------- tsapi:audio 151> a.out warning: Unknown nb_ctl request: 5 Quality is 0
2006 Feb 10
2
About wideband encode
Hi, all. I have two questions about wideband encoding. >From "testenc_wb.c"... 1) tmp=8; speex_encoder_ctl(st, SPEEX_SET_QUALITY, &tmp); tmp=3; speex_encoder_ctl(st, SPEEX_SET_HIGH_MODE, &tmp); tmp=6; speex_encoder_ctl(st, SPEEX_SET_LOW_MODE, &tmp); How to set high_mode and low_mode, if quality is set to '9'? When I set quality '9' / high_mode '3' / low_mode '6', enco...
2009 Dec 15
1
encoding time
...troller AT91SAM7S256 (48 MHz). We applied the following: #define FIXED_POINT #define DISABLE_WIDEBAND #define DISABLE_HIGHPASS #define MANUAL_ALLOC #define OS_SUPPORT_CUSTOM at speex_encoder_init(&speex_nb_mode); speex_decoder_init(&speex_nb_mode); tmp=2; speex_encoder_ctl(st, SPEEX_SET_QUALITY, &tmp); Encoding time for one frame (20 ms) is 46 ms, and decoding time is 4 ms. Is it possible to reduce encoding time? Thank you. Best regards, Dr Elyagin Sergei
2011 Aug 29
0
First encoded byte, mode bits and wideband bit
...ld be 8 (because I requested mode 8)...but this is the mapping I see here is my code ? ? Init Encoder: speex_bits_init(&thisEncoder->bits); thisEncoder->speexEncoderInstance = speex_encoder_init(speex_lib_get_mode(SPEEX_MODEID_WB)); speex_encoder_ctl(thisEncoder->speexEncoderInstance, SPEEX_SET_QUALITY, &encodermode); ? where encodermode = 8 ? ? Init Decoder: thisDecoder->speexDecoderInstance = speex_decoder_init(speex_lib_get_mode(SPEEX_MODEID_WB)); speex_decoder_ctl(thisDecoder->speexDecoderInstance, SPEEX_SET_QUALITY, &decodermode); speex_bits_init(&thisDecoder->bits); ? w...
2012 Jan 20
1
speex_encode_int performance iphone4 + iOS5
...setup: ? ? unsigned val = 0; ? ? /**? ? ?* Initialize the encoder in narrow band mode.? ? ?*/? ? encoder_state_ = speex_encoder_init(speex_lib_get_mode(SPEEX_MODEID_NB));?? ? /**? ? ?* 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.? ? ?*/? ? sp...
2009 May 17
1
how to improve the voice quality (run speex on ADSP-BF533)
...ing SPEEX processing, the output is bad, no matter how to set the parameters 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...
2004 Aug 06
1
Speex configuration
...ameter - SPEEX_SET_ABR - cbr_bitrate - use constant bitrate and set it using bitrate parameter - SPEEX_SET_BITRATE - cbr_mode - use constant bitrate and set it using mode parameter - SPEEX_SET_MODE - cbr_quality - use constant bitrate and set it using quality parameter - SPEEX_SET_QUALITY - vbr_bitrate - use variable bitrate and set it using bitrate parameter - SPEEX_SET_BITRATE + SPEEX_SET_VBR - vbr_mode - use variable bitrate and set it using mode parameter - SPEEX_SET_MODE + SPEEX_SET_VBR - vbr_quality - use variable bitrate and set it using quality parameter...
2004 Aug 06
1
i need your opinion of my encoded file in ipaq 1940
...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 project homepage: http://www.xiph.org/ogg/ To unsubscribe from this li...
2011 Aug 10
2
Correct detection of bitrate
[This email is either empty or too large to be displayed at this time]
2005 Feb 09
0
encoding speex, (insanity looming)
...// decoder void *dec_state; SpeexBits dec_bits // quaility and rate int quality = 8, rate = 16000; // setup encoder speex_bits_init(&enc_bits); enc_state = speex_encoder_init(&speex_wb_mode); speex_encoder_ctl(enc_state, SPEEX_SET_QUALITY, &quality); speex_encoder_ctl(enc_state, SPEEX_SET_SAMPLING_RATE, &rate); // setup decoder speex_bits_init(&dec_bits); dec_state = speex_decoder_init(&speex_wb_mode); speex_encoder_ctl(dec_state, SPEEX_SET_QUALITY, &quality); speex_enco...
2012 Mar 10
3
problem: The decoded frame is not as the original one
...); ??????? } /*===============================ENCODING==============================================*/ ???? speex_bits_init(&bits); ???? enc_state = speex_encoder_init(&speex_nb_mode); ???? speex_encoder_ctl(enc_state,SPEEX_GET_FRAME_SIZE,&frame_size); ???? speex_encoder_ctl(enc_state,SPEEX_SET_QUALITY,&quality); ???? speex_bits_reset(&bits); ? //-----------TWO CALLS FOR ENCODING------------------- ???? speex_encode_int(enc_state, frame, &bits);??????????????? // encoding from frame to &bits ???? nbBytes = speex_bits_write(&bits, outBuffer, MAX_NB_BYTES); //writing from &b...
2004 Aug 06
1
About reducing noise..
...t;slightly" reduced if I set the quality to 10. How do I get rid of this noise? The code is as follows. For encoding . state = speex_encoder_init ( &speex_nb_mode ); tmp = 7; speex_encoder_ctl ( state, SPEEX_SET_MODE, &tmp); // set quality tmp = 10; speex_encoder_ctl ( state, SPEEX_SET_QUALITY, &tmp); // initialize bits speex_bits_init(&bits); while( 1 ) { // read FRAME_SIZE bytes from buffer // convert to short for ( int i = 0; i < FRAME_SIZE; i++) in[i] = out_buffer[i]; speex_bits_reset(&bits); // encode speex_enc...