search for: speex_set_mode

Displaying 17 results from an estimated 17 matches for "speex_set_mode".

2004 Aug 06
1
Speex configuration
...e following all makes sense: - abr_bitrate - use average bitrate and set it using bitrate parameter - 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_S...
2004 Aug 06
2
Speex modes
...rts 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.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'speex-dev-request@xiph.org' containing only the word 'unsub...
2006 Mar 14
1
Encoding mode
Hello, In the internet draft describing the SDP parameters for speex I find this: mode: Speex encoding mode. Can be {1,2,3,4,5,6,any} defaults to 3 in narrowband, 6 in wide and ultra-wide. In the documentation I can only find the following request: SPEEX_SET_MODE There is no description though what this request does. I think the mode somehow maps to the bitrate, but I cannot find a table that tells me which mode maps to which bitrate for nb, wb and uwb codecs. And what does it mean when mode=any? Can someone explain me what the mode indicates? Best reg...
2004 Aug 06
1
About reducing noise..
...decode a recoded sound encoded by speex, it has too much noise. The noise is "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] = o...
2005 Feb 27
2
SPEEX_GET_QUALITY
...t;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 @@ -1217,6 +1217,13 @@ speex_encoder_ctl(st->st_low, SPEEX_SET_MODE, &nb_qual); } break; + case SPEEX_GET_QUALITY: + { + int quality; + speex_encoder_ctl(st->st_low, SPEEX_GET_QUALITY, &quality); + (*(int*)ptr) = quality; + } + break; case SPEEX_SET_COMPLEXITY: speex_encoder_ctl(st->st_low, SP...
2007 Dec 06
2
Some question about speexcodex 1.2 beta2 on linux
...X_RESET_STATE,NULL); speex_encoder_ctl(state,SPEEX_RESET_STATE,NULL); speex_encoder_ctl(state,SPEEX_GET_FRAME_SIZE,&m_frame_size); speex_encoder_ctl(state,SPEEX_SET_VAD, &nOff); speex_encoder_ctl(state,SPEEX_SET_DTX, &nOn); speex_encoder_ctl(state,SPEEX_SET_MODE,&m_encMode); speex_encoder_ctl(state,SPEEX_SET_BITRATE,&m_bitrate); // speex_encoder_ctl(state, SPEEX_SET_QUALITY, &tmp); m_preProcesser = speex_preprocess_state_init(m_frame_size, 8000); speex_preprocess_ctl(m_preProcesser, SPEEX_PREPROCESS_SET_DENOISE, &a...
2007 Jul 23
2
Shoehorning speex is confusing a newbie
...;speex_nb_mode); speex_bits_set_bit_buffer(&bits, &G729_tx, COMPRESS_LENGTH); tmp=TESTENC_QUALITY; //=4 speex_encoder_ctl(st, SPEEX_SET_QUALITY, &tmp); speex_encode_int(st, (spx_int16_t *)samples_in, &bits); which I thought would put it in 8kbs narrowband. I tried to use SPEEX_SET_MODE in there too but it just got overwritten by the set mode in the encode function. So I thought I'd try to force it into mode 3 and see what happens, and I got A result, but when I try to decode it my decode stage gets stuck in an infinite loop: while (st->voc_offset<st->subframeSize)...
2004 Aug 06
0
Speex modes
...d 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? The first thing to know that setting quality from 0-10 is in fact a more user-friendly of setting the mode. That being said, for narrowband encoding, all modes are available with at least one quality setting (sometimes two quali...
2005 Feb 24
0
Re: SDP usage
...control used for the coder. I don?t find the > correspondence with the parameters in the speex coder because I don?t > find a mode for 1 to 6. There is more that 6 different bandwidths in > speex ! It's actually the bit-rate and the draft should say 8 instead of 6. You can set it with SPEEX_SET_MODE. Jean-Marc -- Jean-Marc Valin <Jean-Marc.Valin@USherbrooke.ca> Universit? de Sherbrooke
2005 Feb 27
0
SPEEX_GET_QUALITY
...$ 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 > @@ -1217,6 +1217,13 @@ > speex_encoder_ctl(st->st_low, SPEEX_SET_MODE, &nb_qual); > } > break; > + case SPEEX_GET_QUALITY: > + { > + int quality; > + speex_encoder_ctl(st->st_low, SPEEX_GET_QUALITY, &quality); > + (*(int*)ptr) = quality; > + } > + break; > case SPEEX_SET_COMP...
2010 Sep 06
0
encode and decode
...ZE];//the originals 160 words in float short out[FRAME_SIZE];//the originals 160 words char cbits[nbBytes]; void *state;//hold the state of the decoder SpeexMode speex_nb_mode; SpeexBits bits; state=decoder_init_func(& speex_nb_mode);//initializing a speex decoder speex_decoder_ctl(state,SPEEX_SET_MODE,&temp); speex_bits_init(&bits); we get the data throw RS232, and convert the decoded (supose to be the original or close to it) to ASCII, so we can simply play it in MATLAB: system("mode com1: baud=38400 parity=n data=8 stop=1");//opening the rs232 FILE* mic=fopen(&quo...
2010 Sep 06
0
encoding on a ds'pic and decoding on a pc
...AME_SIZE];//the originals 160 words in float short out[FRAME_SIZE];//the originals 160 words char cbits[nbBytes]; void *state;//hold the state of the decoder SpeexMode speex_nb_mode; SpeexBits bits; state=decoder_init_func(& speex_nb_mode);//initializing a speex decoder speex_decoder_ctl(state,SPEEX_SET_MODE,&temp); speex_bits_init(&bits); we get the data throw RS232, and convert the decoded (supose to be the original or close to it) to ASCII, so we can simply play it in MATLAB: system("mode com1: baud=38400 parity=n data=8 stop=1");//opening the rs232 FILE* mic=fopen("com1:&...
2004 Aug 06
2
SV: Speex modes
...nd 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? The first thing to know that setting quality from 0-10 is in fact a more user-friendly of setting the mode. That being said, for narrowband encoding, all modes are available with at least one quality setting (sometimes two qualit...
2007 Jul 24
0
Shoehorning speex is confusing a newbie
...;speex_nb_mode); speex_bits_set_bit_buffer(&bits, &G729_tx, COMPRESS_LENGTH); tmp=TESTENC_QUALITY; //=4 speex_encoder_ctl(st, SPEEX_SET_QUALITY, &tmp); speex_encode_int(st, (spx_int16_t *)samples_in, &bits); which I thought would put it in 8kbs narrowband. I tried to use SPEEX_SET_MODE in there too but it just got overwritten by the set mode in the encode function. So I thought I'd try to force it into mode 3 and see what happens, and I got A result, but when I try to decode it my decode stage gets stuck in an infinite loop: while (st->voc_offset<st->subframeSize)...
2007 Jul 24
0
Shoehorning speex is confusing a newbie
...speex_bits_set_bit_buffer(&bits, &G729_tx, COMPRESS_LENGTH); tmp=TESTENC_QUALITY; //=4 speex_encoder_ctl(st, SPEEX_SET_QUALITY, &tmp); speex_encode_int(st, (spx_int16_t *)samples_in, &bits); which I thought would put it in 8kbs narrowband. I tried to use SPEEX_SET_MODE in there too but it just got overwritten by the set mode in the encode function. So I thought I'd try to force it into mode 3 and see what happens, and I got A result, but when I try to decode it my decode stage gets stuck in an infinite loop: while (st->voc_offset<st->subframeSi...
2007 Jul 24
0
Shoehorning speex is confusing a newbie
...;speex_nb_mode); speex_bits_set_bit_buffer(&bits, &G729_tx, COMPRESS_LENGTH); tmp=TESTENC_QUALITY; //=4 speex_encoder_ctl(st, SPEEX_SET_QUALITY, &tmp); speex_encode_int(st, (spx_int16_t *)samples_in, &bits); which I thought would put it in 8kbs narrowband. I tried to use SPEEX_SET_MODE in there too but it just got overwritten by the set mode in the encode function. So I thought I'd try to force it into mode 3 and see what happens, and I got A result, but when I try to decode it my decode stage gets stuck in an infinite loop: while (st->voc_offset<st->subframeSize)...
2005 May 25
3
Speex on TI C6x, Problem with TI C5x Patch
...tx_enabled || st->dtx_count>20) { mode=1; st->dtx_count=1; } else { mode=0; st->dtx_count++; } } else { st->dtx_count=0; } speex_encoder_ctl(state, SPEEX_SET_MODE, &mode); if (st->abr_enabled) { int bitrate; speex_encoder_ctl(state, SPEEX_GET_BITRATE, &bitrate); st->abr_drift+=(bitrate-st->abr_enabled); st->abr_drift2 = .95*st->abr_drift2 + .05*(bitrate-st->abr_enab...