search for: speex_set_bitrate

Displaying 20 results from an estimated 24 matches for "speex_set_bitrate".

2004 Aug 06
1
Speex configuration
...configuration options to set quality/mode/bitrate in my application and I was wondering if the 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_...
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 keeping it sound smooth. What is the best way to do...
2004 Aug 06
0
Speex settings and jitter
...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 emails with Jean-Marc. This is pretty important > for w...
2012 Jan 20
1
speex_encode_int performance iphone4 + iOS5
...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(encoder_state_, SPEEX_SET_VAD, &val);? ??? ? /**? ? ?* Disable dtx.? ? ?*/? ? val = 0;? ??? ? /**? ? ?* Disable dtx.? ? ?*/? ? speex_encoder_ctl(encoder_state_, SPEEX_SET_DTX,...
2007 Dec 06
2
Some question about speexcodex 1.2 beta2 on linux
..._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, &m_iDenoise); speex_preprocess_ctl(m_preProcesser, SPEEX_...
2004 Aug 06
2
Please 30 second to look a my code
...de); //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 while(true) { ReadFile(WaveFile, InBuffer, FRAME_SIZE, &NrOfByte...
2004 Aug 06
3
Speex settings and jitter
...t; Subject: [speex-dev] 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 keeping it sound smooth. &gt...
2004 Aug 06
0
libspeex crash with RC3
...k for a bug elsewhere? // Initialize speex encoder. SpeexEncoderBits = new SpeexBits; SpeexEncoderState = speex_encoder_init(&speex_nb_mode); INT FrameSize, SamplingRate = 8000, // 8000 Hz BitRate = 4000; // 4kbps == 10 bytes per 20 ms peex_encoder_ctl( SpeexEncoderState, SPEEX_SET_BITRATE , &BitRate ); speex_encoder_ctl( SpeexEncoderState, SPEEX_SET_SAMPLING_RATE , &SamplingRate ); speex_encoder_ctl( SpeexEncoderState, SPEEX_GET_FRAME_SIZE , &FrameSize ); FLOAT Src[VOICE_FRAME_SIZE]; appMemzero( Src, sizeof(Src) ); char Dest[VOICE_FRAME_SIZE]; peex_bits_init( Speex...
2004 Aug 06
0
Speex settings and jitter
...t; Subject: [speex-dev] 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 keeping it sound smooth. &gt...
2004 Aug 06
0
Invalid mode encountered: corrupted stream?
...CODER 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_mode); speex_decoder_ctl(dec_state, SPEEX_RESET_STATE,NULL); speex_decoder_ctl(dec_state, SPEEX_SET_ENH, &falso); }...
2004 Aug 06
0
speex crackling sound
...i immediately decode and play them, but i get a crackling sound when i decode and play each sample received. 1) i used 160*5 as my wave buffer length when recording with a 8000 sample rate, 16 bits per sample and mono channel. i have set these values before recording/encoding: SPEEX_SET_QUALITY=8 SPEEX_SET_BITRATE=15000 SPEEX_SET_VBR=1 SPEEX_SET_VBR_QUALITY=6.0f SPEEX_PREPROCESS_SET_DENOISE=1 speex version: 1.1.5 are these values correct? 2) do i have to buffer like N amount of samples before i play them? if i do then would it degrade the realtime playback of the recorded sound? 3) what would be the sugge...
2006 Dec 11
0
A question about speex_bits_write function
Thanks a lot for your explanations. Is it right I understand? if I've set SPEEX_SET_BITRATE to 16000(bps) this means that output is 16000/8=2000 bytes and I should set MAX_FRAME_BYTES and the length of cbits to 2000. Is it right? Maybe it is simple question but your answer is important for me, actually thanks a lot for your helps. Yasemin The last argument should simply be the size of...
2010 Apr 04
2
Quality vs. Bitrate vs. Complexity
Jean-Marc Valin <jean-marc.valin at usherbrooke.ca> writes: > On 2010-04-03 23:56, Randy Yates wrote: >> The sentence "Unlike some other speech codecs, it is possible to control >> the tradeoff made between quality and bit-rate" implies to me that they >> are NOT the same thing. > > This sentence should read: "tradeoff made between quality and
2004 Aug 06
3
question on usage of the libraries
> Ok, I forgot to mention that I want to incorporate speex into my own > program (which is for e.g. streaming audio and a couple of other > things). JM> One thing you'll need to decide: do you want to pack in into an Ogg JM> container or will you take care of handling the packets yourself? I take care of that myself. JM> If you JM> want to pack it in Ogg, I suggest you
2005 Feb 22
1
Win CE playback error
...Point #define FIXED_POINT //initialization SpeexBits bits; speex_bits_init(&bits); void *enc_state; enc_state = speex_encoder_init(&speex_nb_mode); void *dec_state; dec_state = speex_decoder_init(&speex_nb_mode); int i; int x; x = 5950; //set the bit-rate speex_encoder_ctl(enc_state,SPEEX_SET_BITRATE,&x); x = 8000; //set the sampling rate speex_encoder_ctl(enc_state,SPEEX_SET_SAMPLING_RATE,&x); x = 2; //set the quality speex_encoder_ctl(enc_state,SPEEX_SET_QUALITY,&x); x = 3; //set the complexity speex_encoder_ctl(enc_state,SPEEX_SET_COMPLEXITY,&x); speex_bits_res...
2005 Dec 12
0
Real time in ARM - please help
...#39;: 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, &temp); temp = 0; //...
2004 Aug 06
2
question on usage of the libraries
...libspeex_enc_state = speex_encoder_init(&speex_wb_mode); else libspeex_enc_state = speex_encoder_init(&speex_nb_mode); speex_encoder_ctl(libspeex_enc_state, SPEEX_SET_SAMPLING_RATE, &sample_rate); speex_encoder_ctl(libspeex_enc_state, SPEEX_SET_BITRATE, &bitrate); speex_encoder_ctl(libspeex_enc_state, SPEEX_GET_FRAME_SIZE, &libspeex_frame_size); compression: while(n_samples_todo > 0) { int cur_n_bytes_out; speex_bits_reset(&libspeex_bits); speex_encode(libspee...
2005 Oct 09
0
Fw: problem in encoder/decoder
...gt;m_nBufferSize]; ZeroMemory(result,pMsg->m_nBufferSize); int encoded_bytes =0; int complexity=4; int bitrate =3; speex_encoder_ctl(enc_state, SPEEX_SET_COMPLEXITY, &complexity); //speex_encoder_ctl(enc_state, SPEEX_SET_SAMPLING_RATE, &rate); speex_encoder_ctl(enc_state, SPEEX_SET_BITRATE, &bitrate); int tmp=1; // speex_encoder_ctl(enc_state, SPEEX_SET_VAD, &tmp); while(pos<pMsg->m_nBufferSize && encoded_bytes<pMsg->m_nBufferSize) { if((pMsg->m_nBufferSize-pos)>frame_size) { CopyMemory(input_frame,pMsg->m_pBuffer+pos,frame_size); pos +...
2004 Aug 06
0
Speex settings and jitter
...tter > > > > > > 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 whil...
2004 Aug 06
0
Please 30 second to look a my code
...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 > > while(true) > { > ReadFile(WaveFile, I...