search for: speex_encoder_ctl

Displaying 20 results from an estimated 162 matches for "speex_encoder_ctl".

2007 Dec 06
2
Some question about speexcodex 1.2 beta2 on linux
...int m_quality = 8; int m_encMode = 6; int m_iAGC = 0; int m_iDenoise = 0; SpeexPreprocessState *m_preProcesser; int nOff = 0, nOn = 1; int modex=30; speex_bits_init(&bits); state = speex_encoder_init(&speex_nb_mode); speex_encoder_ctl(state,SPEEX_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...
2012 Jan 20
1
speex_encode_int performance iphone4 + iOS5
...incurs underruns. Here is my speex 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;? ??? ? /**? ?...
2008 Dec 11
1
preprocessor VAD only rocognize between silence and not silence
...not sure if im doing something wrong with the current. Here is the code of the compressor: if (inicializado == false) { bits = new SpeexBits; 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, &sampl...
2004 Aug 06
2
Bitrate in encoder
...lling: peex_encoder_ctl(globals->enc_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 pro...
2004 Aug 06
2
SPEEX_GET_SAMPLING_RATE of encoder is wrong
Hi, I'm using speex 1.1.4 and when I query SPEEX_GET_SAMPLING_RATE as in speex_encoder_ctl ( m_pEncoderState, SPEEX_GET_SAMPLING_RATE, &m_SampleRate ); I get 2 The encoder is initialized with m_pEncoderState = speex_encoder_init ( &speex_wb_mode ); On the decoder side, the correct sampling rate is returned: m_pDecoderState = speex_decoder_init ( &speex_wb_mode ); speex_decod...
2009 Sep 02
3
voice sound like robot voice :)
...ode if ( !pMode ) return; // assert( ( pCodecEncoderState == NULL ) && "encoder already initialized" ); // 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, &am...
2005 Sep 02
2
DTX mode using preprocessor?
...or to send the packet with the 'dtx_enable' flag in it, so the decoder on the other 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 s...
2009 Apr 13
0
encoding -> decoding doesnt work
...mple of 5 seconds only a short noise is all I get. I hope you have any ideas! kind regards juergen SpeexBits bits; void *enc_state; speex_bits_init(&bits); const SpeexMode *mode; mode = speex_lib_get_mode (SPEEX_MODEID_WB); enc_state = speex_encoder_init(mode); int frame_size = 0; speex_encoder_ctl(enc_state,SPEEX_GET_FRAME_SIZE,&frame_size); int tmp = 16000; speex_encoder_ctl(enc_state, SPEEX_SET_SAMPLING_RATE, &tmp); tmp = 4; speex_encoder_ctl(enc_state, SPEEX_SET_QUALITY, &tmp); tmp = 1; speex_encoder_ctl(enc_state, SPEEX_SET_VBR, &tmp); tmp = 4; speex_encoder_ctl...
2009 Sep 03
1
Speex-dev Digest, Vol 64, Issue 2
...y > initialized" > > ); > > // > > 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 ); > >...
2005 Feb 09
2
encoding speex, (insanity looming)
...SpeexBits enc_bits; // 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, &am...
2008 Dec 15
0
preprocessor VAD only rocognize between silence andnot silence
...;> if (inicializado == false) >>> { >>> bits = new SpeexBits; >>> 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 samplingra...
2005 Dec 12
0
Real time in ARM - please help
...{ case '1': BitRate = 6000; break; case '2': BitRate = 8000; break; case '3': BitRate = 15000; break; default: BitRate = 8000; break; } 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, &am...
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_...
2010 Jun 10
0
speex multi frame
...38 bytes packets and make 800 bytes buffer this is my simple code CSpeexCodec::CSpeexCodec(void) { // speex_bits_init(&m_speexBitsOut); m_pSpeexEncStateOut = speex_encoder_init(&speex_nb_mode); int nEhc=1; int nSamplePerSec = SAMPLES_PER_SEC; static int nQuality = 8; speex_encoder_ctl(m_pSpeexEncStateOut, SPEEX_SET_SAMPLING_RATE, &nSamplePerSec); speex_encoder_ctl(m_pSpeexEncStateOut, SPEEX_SET_QUALITY, &nQuality); //speex_encoder_ctl(m_pSpeexEncStateOut, SPEEX_SET_VBR, &nEhc); //speex_encoder_ctl(m_pSpeexEncStateOut, SPEEX_SET_VAD, &nEhc); //speex...
2009 May 17
1
how to improve the voice quality (run speex on ADSP-BF533)
...OUGH mode, the output voice is ok, which is exactly as the input voice. However, when enabling 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...
2004 Aug 06
1
SPEEX_GET_SAMPLING_RATE of encoder is wrong
...; Hi, > > Do you get that problem with speex_nb_mode too (or only speex_wb_mode)? > > Jean-Marc > > Le lun 29/03/2004 à 05:35, Chris Flerackers a écrit : > > Hi, > > > > I'm using speex 1.1.4 and when I query SPEEX_GET_SAMPLING_RATE > > as in > > speex_encoder_ctl ( m_pEncoderState, SPEEX_GET_SAMPLING_RATE, > > &m_SampleRate ); > > I get > > 2 > > The encoder is initialized with > > m_pEncoderState = speex_encoder_init ( &speex_wb_mode ); > > > > On the decoder side, the correct sampling rate is returned: &gt...
2004 Aug 06
1
i need your opinion of my encoded file in ipaq 1940
.... I would like to know your opinion for the quality output if this is right to entered 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....
2005 Feb 22
1
Win CE playback error
...ne know what is the mflops for using fixed point on a Win CE compared to using floating point? Looking at the manual, "In practice, frame_size will correspond to 20 ms when using 8, 16, or 32 kHz sampling rate." for a 8 kHz sampling, the framesize should be 320 right? But when i use speex_encoder_ctl(enc_state,SPEEX_GET_FRAME_SIZE,&frame_size) The framesize i got is 160. I am trying to encode the data which is contained as an unsigned char buffer[160] as mode 2 of 5,950 bps and stored as the same data type as unsigned char array after encoding I have managed to link the libspeex_armce.li...
2004 Aug 06
2
Please 30 second to look a my code
...TRIBUTE_NORMAL, NULL); SpeexFile = CreateFile(_T("\\Temp\\tempsound.spx"), GENERIC_WRITE, 0, NULL,CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); speex_bits_init(&bits); //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, w...
2010 Mar 19
4
Speex in flash player: how to work with?
Nicer way: void* speexState = speex_encoder_init(&speex_wb_mode); int speexFrameSize, speexRate; speex_encoder_ctl(speexState, SPEEX_GET_FRAME_SIZE, &speexFrameSize); speex_encoder_ctl(speexState, SPEEX_GET_SAMPLING_RATE, &speexRate); SpeexPreprocessState* speexPreprocessState = speex_preprocess_state_init(speexFrameSize, speexRate); Jozsef -----Original Message----- From: Max Lapshin [mailto:max.laps...