search for: speex_modeid_nb

Displaying 20 results from an estimated 23 matches for "speex_modeid_nb".

2008 Nov 13
2
decoded sample is completely differen from original one
...0x6372, 0x6B67, 0x6577, 0x2762, 0x6F34, 0x6220, 0x345D, 0x7730, 0x3638, 0x7935, 0x7475, 0x5B63, 0x306E, 0x3371, 0x7738, 0x7432, 0x5B79, 0x676E, 0x665D, 0x6376, 0x696F, 0x6830, 0x6577, 0x6D74}; state = speex_encoder_init(speex_lib_get_mode(SPEEX_MODEID_NB)); speex_encoder_ctl(state, SPEEX_SET_QUALITY, &quality); speex_bits_init(&bits); speex_bits_reset(&bits); speex_encode_int(state, &input[0], &bits); speex_bits_insert_terminator(&bits); * nbBytes = speex_bits_write(&bits, encSamples, FRAME_SIZE);...
2011 Nov 16
2
Just getting noise
...? ? ? ? ? ? ? ? ? ? ?void *state; ? ? ? ? ? ? ? ? ? ? ? ?/*Holds bits so they can be read and written to by the Speex routines*/ ? ? ? ? ? ? ? ? ? ? ? ?SpeexBits bits; ? ? ? ? ? ? ? ? ? ? ? ?int i, tmp; ? ? ? ? ? ? ? ? ? ? ? ?const SpeexMode* mode; ? ? ? ? ? ? ? ? ? ? ? ?mode = speex_lib_get_mode (SPEEX_MODEID_NB); ? ? ? ? ? ? ? ? ? ? ? ?/*Create a new encoder state in narrowband mode*/ ? ? ? ? ? ? ? ? ? ? ? ?state = speex_encoder_init(mode); ? ? ? ? ? ? ? ? ? ? ? ?/*Set the quality to 8 (15 kbps)*/ ? ? ? ? ? ? ? ? ? ? ? ?tmp=8; ? ? ? ? ? ? ? ? ? ? ? ?speex_encoder_ctl(state, SPEEX_SET_QUALITY, &tmp);...
2011 Nov 16
2
Just getting noise
...? ?/*Holds bits so they can be read and written to >> by the Speex routines*/ >> ? ? ? ? ? ? ? ? ? ? ? ?SpeexBits bits; >> ? ? ? ? ? ? ? ? ? ? ? ?int i, tmp; >> >> ? ? ? ? ? ? ? ? ? ? ? ?const SpeexMode* mode; >> ? ? ? ? ? ? ? ? ? ? ? ?mode = speex_lib_get_mode (SPEEX_MODEID_NB); >> >> ? ? ? ? ? ? ? ? ? ? ? ?/*Create a new encoder state in narrowband mode*/ >> ? ? ? ? ? ? ? ? ? ? ? ?state = speex_encoder_init(mode); >> >> ? ? ? ? ? ? ? ? ? ? ? ?/*Set the quality to 8 (15 kbps)*/ >> ? ? ? ? ? ? ? ? ? ? ? ?tmp=8; >> ? ? ? ? ? ? ? ?...
2004 Nov 03
2
libspeex.dll
hello, we start to develop an open source project. This project is a VoIp application with the same features like "Teamspeak" (http://www.goteamspeak.com). Our test application run in peer to peer mode under windows 2000 and above. At the moment we are using the gsm codec (13 kbps bandwidth). Later there will be a port for *unix systems. As aforementioned the project will be released
2008 Nov 14
0
decoded sample is completely differen from original one
...577, 0x2762, 0x6F34, 0x6220, 0x345D, 0x7730, > 0x3638, 0x7935, 0x7475, 0x5B63, 0x306E, 0x3371, 0x7738, 0x7432, > 0x5B79, 0x676E, 0x665D, 0x6376, 0x696F, 0x6830, 0x6577, 0x6D74}; > > state = speex_encoder_init(speex_lib_get_mode(SPEEX_MODEID_NB)); > speex_encoder_ctl(state, SPEEX_SET_QUALITY, &quality); > > speex_bits_init(&bits); > speex_bits_reset(&bits); > > speex_encode_int(state, &input[0], &bits); > speex_bits_insert_terminator(&bits); > > * nbBytes = speex_bits...
2012 Jan 20
1
speex_encode_int performance iphone4 + iOS5
...Windows 7. The call to speex_encode_int is takes 0.0065 to complete. Because encoding is so latent the receiver 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_, S...
2011 Nov 16
0
Just getting noise
...> /*Holds bits so they can be read and written to > by the Speex routines*/ > SpeexBits bits; > int i, tmp; > > const SpeexMode* mode; > mode = speex_lib_get_mode (SPEEX_MODEID_NB); > > /*Create a new encoder state in narrowband mode*/ > state = speex_encoder_init(mode); > > /*Set the quality to 8 (15 kbps)*/ > tmp=8; > speex_encoder_ctl(sta...
2005 Jun 22
1
Newbie - Encoding PCM
...x_bits_write(&IDA->speex_bits, buffer, 200); *buffer += d; ret += d; d = 0; } } return ret; } int SPEEX_Init(struct _IDA_ClientSocket *IDA) { /* speex_init_header(&IDA->speex_header,8000,1,IDA->speex_mode); */ IDA->speex_mode = speex_lib_get_mode(SPEEX_MODEID_NB); speex_bits_init(&IDA->speex_bits); IDA->speex_state = speex_encoder_init(IDA->speex_mode); } int SPEEX_Close(struct _IDA_ClientSocket *IDA) { speex_bits_destroy(&IDA->speex_bits); speex_encoder_destroy(IDA->speex_state); } "IDA" struct containts...
2017 Nov 03
1
[PATCH] Check for _WIN32 instead of WIN32 in preprocessor checks
...SPEEX_NB_MODES]; /** Obtain one of the modes available */ const SpeexMode * speex_lib_get_mode (int mode); -#ifndef WIN32 +#ifndef _WIN32 /* We actually override the function in the narrowband case so that we can avoid linking in the wideband stuff */ #define speex_lib_get_mode(mode) ((mode)==SPEEX_MODEID_NB ? &speex_nb_mode : speex_lib_get_mode (mode)) #endif diff --git a/libspeex/stack_alloc.h b/libspeex/stack_alloc.h index 5264e666..f6eb3f6e 100644 --- a/libspeex/stack_alloc.h +++ b/libspeex/stack_alloc.h @@ -36,7 +36,7 @@ #define STACK_ALLOC_H #ifdef USE_ALLOCA -# ifdef WIN32 +# ifdef _WIN...
2010 Jun 28
1
ACE does not work for me at all.
Hello, all. 1) ACE does not work for me I am in a voip project using Speex, failed to have hte Speex ACE work. here is how I initialize it: /** * Configurations : * #define BITS_PER_SAMPLE (16) * #define SAMPLE_RATE (8000) * #define CHANNEL_NB (1) * #define DURATION (20) * SPEEX_MODEID_NB */ _eco_state = speex_echo_state_init(_encframe_size, 10*_encframe_size); speex_echo_ctl(_eco_state, SPEEX_ECHO_SET_SAMPLING_RATE, &_sample_rate); _den_state = speex_preprocess_state_init(_encframe_size, _sample_rate); speex_preprocess_ctl(_den_state, SPEEX_PREPROCESS_SET_ECHO_STATE, _eco_st...
2011 Nov 17
1
Just getting noise
...tten to >>>> by the Speex routines*/ >>>> ? ? ? ? ? ? ? ? ? ? ? SpeexBits bits; >>>> ? ? ? ? ? ? ? ? ? ? ? int i, tmp; >>>> >>>> ? ? ? ? ? ? ? ? ? ? ? const SpeexMode* mode; >>>> ? ? ? ? ? ? ? ? ? ? ? mode = speex_lib_get_mode (SPEEX_MODEID_NB); >>>> >>>> ? ? ? ? ? ? ? ? ? ? ? /*Create a new encoder state in narrowband mode*/ >>>> ? ? ? ? ? ? ? ? ? ? ? state = speex_encoder_init(mode); >>>> >>>> ? ? ? ? ? ? ? ? ? ? ? /*Set the quality to 8 (15 kbps)*/ >>>> ? ? ? ? ?...
2008 May 29
0
Again, teach me speex AEC please!
...** * Creates a new encoder state */ JNIEXPORT jint JNICALL Java_com_peterhi_Speex_encoder__(JNIEnv* env, jclass c) { Codec* pCodec = malloc(sizeof(Codec)); speex_bits_init(&pCodec->bits); pCodec->type = TYPE_ENCODE; pCodec->pSt = speex_encoder_init(speex_lib_get_mode(SPEEX_MODEID_NB)); pCodec->pPre = speex_preprocess_state_init(DSP_FRAME_SIZE, FRAME_RATE); speex_encoder_ctl(pCodec->pSt, SPEEX_SET_QUALITY, &quality); speex_preprocess_ctl(pCodec->pPre, SPEEX_PREPROCESS_SET_AGC, &yes); speex_preprocess_ctl(pCodec->pPre, SPEEX_PREPROCESS_SET_AG...
2009 Sep 02
3
voice sound like robot voice :)
...he mode int modeID = -1; // speex has limits [6000 - 48000] if ( sampleRate > 48000 ) return; if ( sampleRate > 25000 ) modeID = SPEEX_MODEID_UWB; else if ( sampleRate > 12500 ) modeID = SPEEX_MODEID_WB; else if ( sampleRate >= 6000 ) modeID = SPEEX_MODEID_NB; else return; // set up mode pMode = speex_lib_get_mode( modeID ); } void TVoiceCodec::setupEncoder( uint quality, uint complexity ) { encoderQuality = quality; encoderComplexity = complexity; // catch invalid sample rates resulting in invalid mode if ( !pMode )...
2011 Nov 16
0
Just getting noise
...d >>> written to >>> by the Speex routines*/ >>> SpeexBits bits; >>> int i, tmp; >>> >>> const SpeexMode* mode; >>> mode = speex_lib_get_mode (SPEEX_MODEID_NB); >>> >>> /*Create a new encoder state in narrowband >>> mode*/ >>> state = speex_encoder_init(mode); >>> >>> /*Set the quality to 8 (15 kbps)*/ >>>...
2009 Sep 03
1
Speex-dev Digest, Vol 64, Issue 2
...leRate > 48000 ) > > return; > > > > if ( sampleRate > 25000 ) > > modeID = SPEEX_MODEID_UWB; > > else if ( sampleRate > 12500 ) > > modeID = SPEEX_MODEID_WB; > > else if ( sampleRate >= 6000 ) > > modeID = SPEEX_MODEID_NB; > > else > > return; > > > > // set up mode > > pMode = speex_lib_get_mode( modeID ); > > } > > > > void TVoiceCodec::setupEncoder( uint quality, uint complexity ) > > { > > encoderQuality = quality; > > encode...
2005 Dec 10
0
Labview to speex interface
...peex_nb_mode export is found as not being defined. In a post made Nov of 2004 I found what I assume is a fix for this but I have no idea on what to do with it. The below is what I found in a prior thread. "You need to use: const SpeexMode * mode; mode = speex_lib_get_mode (SPEEX_MODEID_NB); due to some issues with managing the export table for Windows." Any help with how to interface with Labview and the above problem would be greatly appreciated. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/speex-dev/attac...
2008 Aug 06
1
speex_nb_mode declaration problem
Hello all, I am using the speex APIs in a gnuradio block. I used the similar code as in the sampleenc.c/sampledec.c which works perfectly fine. My compilation does not give any error, but when I run the python test, it complains that speex_nb_mode is undefined. I tried to declare it explicitly then it as const SpeexMode *mode = NULL , then i get an error that i cannot initialize the const
2009 Jan 23
0
error in decoding raw speex file
...g. I also attach the raw speex file. Thanks, ===include Partial Code ============================================= speex_bits_init(&bits); /*Create a new decoder state in narrowband mode*/ state = speex_decoder_init(&speex_nb_mode); //state = speex_encoder_init(speex_lib_get_mode(SPEEX_MODEID_NB)); speex_decoder_ctl(state, SPEEX_GET_FRAME_SIZE, &frame_size); /*Set the perceptual enhancement on*/ tmp=1; speex_decoder_ctl(state, SPEEX_SET_ENH, &tmp); speex_bits_init(&bits); ....... while (1) { /*Read the size encoded by sampleenc, this part will likel...
2009 Feb 04
0
Problems with Speex Libary
...The linking libarys: "libspeex.lib" "libspeexdsp.lib" I am assuming you are doing this in Windows. You need to change the code as follows: //state = speex_encoder_init(&speex_nb_mode); const SpeexMode * mode; mode = speex_lib_get_mode (SPEEX_MODEID_NB); state = speex_encoder_init(mode); Ken -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20090204/f1945831/attachment-0001.htm
2010 Mar 04
0
using speex to connect to asterisk
Hi, I'm trying to use speex codec in iax client to connect to asterisk (all last version) It seems that when I use speex_encoder_init(speex_lib_get_mode(SPEEX_MODEID_WB)) Instead of speex_encoder_init(speex_lib_get_mode(SPEEX_MODEID_NB)) Asterisk try to downscale the codec to ulaw. Please advice, ofer -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20100304/96e21ced/attachment-0001.htm