search for: speex_set_vbr

Displaying 20 results from an estimated 31 matches for "speex_set_vbr".

2004 Aug 06
1
Speex configuration
...ITRATE - 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 - SPEEX_SET_VBR_QUALITY If I look at the code, vbr_bitrate and vbr_mode probably doens't work (vbr uses vbr...
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
2005 Sep 02
2
DTX mode using preprocessor?
...'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 speex to send the DTX packet...
2008 Oct 08
2
cannot hear a 1Khz tone with speex
...and the problem is that, if I use a mumble client that tries to reproduce a wave file containing a 1Khz tone, I cannot hear that tone. I've tried to comment all the denoise functions but nothing could solve the problem. I've turned off the VBR, with the function speex_encoder_ctl and the SPEEX_SET_VBR define but the result is that I can here the tone for 1-2 seconds and then noise, terrible noise. Can someone help me, please ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20081008/d75be487/attachment...
2010 Apr 12
1
What establishes "average" bitrate in Variable Bitrate (VBR) Mode?
On 2010-04-11 10:09, Randy Yates wrote: > If I specify VBR mode via > > speex_encoder_ctl(pSpeexEncoder, SPEEX_SET_VBR,&isTrue); Try: speex_encoder_ctl(pSpeexEncoder, SPEEX_SET_ABR, &desiredRate);
2012 Jan 20
1
speex_encode_int performance iphone4 + iOS5
..., SPEEX_SET_VAD, &val);? ??? ? /**? ? ?* Disable dtx.? ? ?*/? ? val = 0;? ??? ? /**? ? ?* Disable dtx.? ? ?*/? ? speex_encoder_ctl(encoder_state_, SPEEX_SET_DTX, &val);? ??? ? /**? ? ?* Disable vbr.? ? ?*/? ? val = 0;? ??? ? /**? ? ?* Disable vbr.? ? ?*/? ? speex_encoder_ctl(encoder_state_, SPEEX_SET_VBR, &val); Here is the time elapsed on iphone4:Encoding took 0.006500 seconds.Encoding took 0.004000 seconds. And on Mac OS X:Encoding took 0.000805 seconds.Encoding took 0.000792 seconds. Thanks in advance!
2009 May 17
1
how to improve the voice quality (run speex on ADSP-BF533)
...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 speech codec demoes ca...
2004 Aug 06
1
i need your opinion of my encoded file in ipaq 1940
...ur 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. Rodrigo. <p>-...
2008 Dec 11
1
preprocessor VAD only rocognize between silence and not silence
...NG_RATE, &samplingrate); int quality = 8; //Calidad relativa de 0 a 10 speex_encoder_ctl(enc_state, SPEEX_SET_QUALITY, &quality); int dtx = 0; speex_encoder_ctl(enc_state, SPEEX_SET_DTX, &dtx); int vbr = 0; speex_encoder_ctl(enc_state, SPEEX_SET_VBR, &vbr); // PREPROCESADOR pre_state = speex_preprocess_state_init(frame_size, samplingrate); int denoise = 1; speex_preprocess_ctl(pre_state, SPEEX_PREPROCESS_SET_DENOISE, &denoise); int pvad = 1; speex_preprocess_ctl(pre_state, SPEEX_...
2010 Apr 04
4
Quality vs. Bitrate vs. Complexity
Jean-Marc Valin <jean-marc.valin at usherbrooke.ca> writes: > Quality and bit-rate are different ways of specifying exactly the same > thing. Complexity is orthogonal. That clears it up - thanks. Is this in the manual? --Randy > > Jean-Marc > > On 2010-04-03 08:28, Randy Yates wrote: >> Jean-Marc: I know you're seeing these - how about a response? >>
2007 Apr 02
1
Problems with stereo data
...include <speex/speex_stereo.h> #include <stdio.h> #pragma comment(lib, "libspeex.lib") int main(int argc, char* argv[]) { const int FrameSize = 320; void* State = speex_encoder_init(&speex_wb_mode); int Temp; float Tmp; Temp = 1; Tmp = 2; speex_encoder_ctl(State, SPEEX_SET_VBR, &Temp); speex_encoder_ctl(State, SPEEX_SET_VBR_QUALITY, &Tmp); FILE* fin = fopen(argv[1], "rb"); FILE* fout = fopen(argv[2], "wb"); SpeexBits Bits; speex_bits_init(&Bits); short Frame[FrameSize]; char Cbits[200]; while (!feof(fin)) { speex_bits_reset(&B...
2009 Sep 02
3
voice sound like robot voice :)
...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( &codecBits ); speex_bits_reset( &codecBits ); // determine encoded bytes per frame with spx_int16_t type, speex can work with float;s, but not in this e...
2004 Aug 06
2
Please 30 second to look a my code
...YS, 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, waveheader, WAVEHEADER, &NrOfBytesRead, NULL); WriteFile(SpeexFile, waveheader, WAVEHEADER, &NrOfBytesWritte...
2009 Sep 03
1
Speex-dev Digest, Vol 64, Issue 2
...ATE, > > &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( &codecBits ); > > speex_bits_reset( &codecBits ); > > > > // determine encod...
2004 Aug 06
0
speex crackling sound
...d 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 suggested buffer length o...
2005 Sep 04
0
DTX mode using preprocessor?
...o 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) >...
2008 Jun 23
1
Enabling Speex VBR for VoIP
I have two questions: 1. ?I would like to enable VBR with the Speex codec for VoIP communications. Is this setting made within VoIP clients themselves or is it a setting that must be changed on the specific version of Speex (for example, via command line)? 2. If not, is there any way to create RTP packets via the Speex command line? (The goal is to view the lengths of the packets created by
2008 Jun 28
0
Enabling Speex VBR for VoIP
Jean-Marc Valin <jean-marc.valin at usherbrooke.ca> wrote: > > See the SPEEX_SET_VBR and SPEEX_SET_VBR_QUALITY options. But be aware > that unless you're aggregating many VoIP calls on the same link, there's > little use for VBR in VoIP. I don't agree with this. I've used Speex's VBR mode exclusively in my P2P VoIP software for the past 4 years and neve...
2009 Apr 13
0
encoding -> decoding doesnt work
...r_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(enc_state, SPEEX_SET_VBR_QUALITY, &tmp); tmp = 2; speex_encoder_ctl( enc_state, SPEEX_SET_COMPLEXITY, &tmp ); tmp = 1; speex_encoder_ctl( enc_state, SPEEX_SET_DTX, &tmp ); tmp = 1; speex_encoder_ctl( enc_state, SPEEX_SET_VAD, &tmp );...
2010 Jun 10
0
speex multi frame
...); 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_encoder_ctl(m_pSpeexEncStateOut, SPEEX_SET_DTX, &nEhc); speex_encoder_ctl(m_pSpeexEncStateOut, SPEEX_GET_FRAME_SIZE, &m_nEncodeFrameSize); // speex_bits_init(&m_speexBitsIn); m...