Displaying 18 results from an estimated 18 matches for "speex_preprocess_state_destroy".
2004 Aug 06
5
Memory leak in denoiser + a few questions
Hello
The st->zeta pointer isn't freed in the speex_preprocess_state_destroy()
function of the preprocess.c file (alloced in line 167). It's in Speex 1.1.4
by the way.
I'm trying to make the denoiser work with my application and has got
reasonable noise reduction after applying the denoiser. I, however, haven't
been able to find any information of what the...
2009 Sep 02
3
voice sound like robot voice :)
...voicememsize );
// raw voice input buffer
pCodecRawBuffer = voicemem;
pCodecRawBufferCur = pCodecRawBuffer;
//
voicemem += Cvoicecodecrawbuffersize;
// input/output voice buffer
pCodecBuffer = voicemem;
}
TVoiceCodec::~TVoiceCodec()
{
if ( pCodecEncoderState )
{
speex_preprocess_state_destroy( pPreprocessorState );
speex_encoder_destroy( pCodecEncoderState );
speex_bits_destroy( &codecBits );
pCodecEncoderState = NULL;
}
if ( pCodecDecoderState )
{
speex_decoder_destroy( pCodecDecoderState );
speex_bits_destroy( &codecBits );
pCodecD...
2009 Jan 19
2
error
...?Channel? has no member named ?speex_pp?
msconf.c:115: error: ?SPEEX_PREPROCESS_SET_DEREVERB_LEVEL? undeclared
(first use in this function)
msconf.c: In function ?channel_uninit?:
msconf.c:123: error: ?Channel? has no member named ?speex_pp?
msconf.c:124: warning: implicit declaration of function
?speex_preprocess_state_destroy?
msconf.c:124: error: ?Channel? has no member named ?speex_pp?
msconf.c:125: error: ?Channel? has no member named ?speex_pp?
msconf.c: In function ?conf_sum?:
msconf.c:264: error: ?Channel? has no member named ?speex_pp?
msconf.c:267: warning: implicit declaration of function
?speex_preprocess?
msc...
2009 Sep 03
1
Speex-dev Digest, Vol 64, Issue 2
...//
> > voicemem += Cvoicecodecrawbuffersize;
> >
> > // input/output voice buffer
> > pCodecBuffer = voicemem;
> > }
> >
> >
> > TVoiceCodec::~TVoiceCodec()
> > {
> > if ( pCodecEncoderState )
> > {
> > speex_preprocess_state_destroy( pPreprocessorState );
> > speex_encoder_destroy( pCodecEncoderState );
> > speex_bits_destroy( &codecBits );
> > pCodecEncoderState = NULL;
> > }
> >
> > if ( pCodecDecoderState )
> > {
> > speex_decoder_destroy(...
2004 Aug 06
0
Memory leak in denoiser + a few questions
Bjoern,
As far as I understand it, AGC keeps the volume level of the speech
elements (i.e. gain) stable no matter how quiet or loud the input becomes-
Tom
At 10:53 AM 3/28/2004, Bjoern Rasmussen wrote:
>Hello
>
>The st->zeta pointer isn't freed in the speex_preprocess_state_destroy()
>function of the preprocess.c file (alloced in line 167). It's in Speex
>1.1.4 by the way.
>
>I'm trying to make the denoiser work with my application and has got
>reasonable noise reduction after applying the denoiser. I, however,
>haven't been able to find any...
2004 Aug 06
0
Memory leak in denoiser + a few questions
> The st->zeta pointer isn't freed in the speex_preprocess_state_destroy()
> function of the preprocess.c file (alloced in line 167). It's in Speex 1.1.4
> by the way.
Oops... Thanks for letting me know. I'll change that for the next
release (in the mean time, the fix is obvious). In case you're
interested, I'm currently working on a reverberati...
2004 Aug 06
1
speex_bits_pack optimizations...
another optimization you can do for packing bits together...
the original one is :
-------------------------------------------------------------------------------------------------------------
void speex_bits_pack(SpeexBits *bits, int data, int nbBits)
{
int i;
unsigned int d=data;
if (bits->bytePtr+((nbBits+bits->bitPtr)>>3) >= bits->buf_size)
{
//remain
2006 Dec 20
1
Broken denoiser in SVN (?)
...{
short buf[TEST_DENOISE_SAMPLES];
int readed;
readed = fread(buf, 2, TEST_DENOISE_SAMPLES, fin);
if(readed != TEST_DENOISE_SAMPLES)
break;
speex_preprocess(preprocess, buf, NULL);
fwrite(buf, 2, TEST_DENOISE_SAMPLES, fout);
}
speex_preprocess_state_destroy(preprocess);
fclose(fout);
fclose(fin);
}
Best Regards,
Dmitry Yakimov
2009 Feb 13
0
Why speex echo cancellation is not work
...X_PREPROCESS_SET_AGC, &tmp1);
}
//FILE *echo_fd, *ref_fd, *e_fd;
short echo_buf[SPEEX_NN], ref_buf[SPEEX_NN], e_buf[SPEEX_NN];
SpeexEchoState *st;
SpeexPreprocessState *den;
char* inputBuf;
~AECHandler(void){
speex_echo_state_destroy(this->st);
speex_preprocess_state_destroy(this->den);
}
void HookComingSound(char* buf){
speex_echo_playback(this->st,(spx_int16_t*)buf);
}
void HookOutingSound(char* origin, char* &outbuf){
speex_echo_capture(this->st,(spx_int16_t*)origin,(spx_int16_t*)outbuf);
speex_preprocess_run(this...
2011 Aug 31
0
How can I use preprocessor standalone with a wav file?
...8000;
speex_preprocess_ctl(st, SPEEX_PREPROCESS_SET_AGC_LEVEL, &i);
while (1)
{
int vad;
fread(in, sizeof(short), NN, fin);
if (feof(fin))
break;
vad = speex_preprocess_run(st, in);
fwrite(in, sizeof(short), NN, fout);
count++;
}
speex_preprocess_state_destroy(st);
fclose(fin);
fclose(fout);
return 0;
}
--
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
2012 Dec 25
0
Problem in using SpeexPreprocess
...;
int nbBytes;
while (1)
{
fread(in, sizeof(short), FRAME_SIZE, fin);
if (feof(fin)) break;
speex_preprocess_estimate_update(preprocess_state, in);
speex_preprocess_run(preprocess_state, in);
fwrite(in, sizeof(short), FRAME_SIZE, fout);
}
speex_preprocess_state_destroy(preprocess_state);
fclose(fin); fclose(fout);
return 0;
}
------------------------------------------
The inputs to the program are input.wav and output.wav.
But the program doesnt filter any noise. Please correct if I made any
mistake in the program.
Thank you,
- Anil
2005 Sep 03
2
Library export file for Win32 (patch)
..._encode_int @50
+speex_encode_stereo_int @51
+speex_jitter_destroy @52
+speex_jitter_get @53
+speex_jitter_get_pointer_timestamp @54
+speex_jitter_init @55
+speex_jitter_put @56
+speex_lib_get_mode @57
+speex_preprocess @58
+speex_preprocess_ctl @59
+speex_preprocess_estimate_update @60
+speex_preprocess_state_destroy @61
+speex_preprocess_state_init @62
+speex_nb_mode @63 DATA
+speex_wb_mode @64 DATA
+speex_uwb_mode @65 DATA
2009 Sep 03
0
voice sound like robot voice :)
...voicemem;
> pCodecRawBufferCur = pCodecRawBuffer;
> //
> voicemem += Cvoicecodecrawbuffersize;
>
> // input/output voice buffer
> pCodecBuffer = voicemem;
> }
>
>
> TVoiceCodec::~TVoiceCodec()
> {
> if ( pCodecEncoderState )
> {
> speex_preprocess_state_destroy( pPreprocessorState );
> speex_encoder_destroy( pCodecEncoderState );
> speex_bits_destroy( &codecBits );
> pCodecEncoderState = NULL;
> }
>
> if ( pCodecDecoderState )
> {
> speex_decoder_destroy( pCodecDecoderState );
> speex_b...
2007 Aug 24
0
speex DTX chore
...ead += frame_size;
}
};
//eof Constructor()========================================================
//
// ======== Destructor ========
//
// FUNCTION: destroys speex coder and decoder
//
SpeexEncoder :: ~SpeexEncoder()
{
speex_bits_destroy(&bits);
speex_encoder_destroy(enc_state);
speex_preprocess_state_destroy (preprocess);
};
//eof destructor()=========================================================
//
// ======== Encode ========
//
// FUNCTION: cycles through passed samples and codes each frame
//
// PARAMETERS:
// - -
// - -
//
// RETURN VALUE: 0 if frame needs not be transmit...
2008 May 29
0
Again, teach me speex AEC please!
...x_lib_get_mode(SPEEX_MODEID_NB));
return (jint )pCodec;
}
/**
* Destroys a new encoder state
*/
JNIEXPORT void JNICALL Java_com_peterhi_Speex_encoder__I(JNIEnv* env, jclass c, jint p)
{
Codec* pCodec = (Codec* )p;
if (pCodec->type != TYPE_ENCODE)
{
return;
}
speex_preprocess_state_destroy(pCodec->pPre);
speex_encoder_destroy(pCodec->pSt);
speex_bits_destroy(&pCodec->bits);
free(pCodec);
}
/**
* Destroys a new decoder state
*/
JNIEXPORT void JNICALL Java_com_peterhi_Speex_decoder__I(JNIEnv* env, jclass c, jint p)
{
Codec* pCodec = (Codec* )p;
if...
2008 Mar 29
0
GCC/ELF Visibility patch
...copy)
@@ -392,7 +392,7 @@
}
#endif
-SpeexPreprocessState *speex_preprocess_state_init(int frame_size, int sampling_rate)
+EXPORT SpeexPreprocessState *speex_preprocess_state_init(int frame_size, int sampling_rate)
{
int i;
int N, N3, N4, M;
@@ -530,7 +530,7 @@
return st;
}
-void speex_preprocess_state_destroy(SpeexPreprocessState *st)
+EXPORT void speex_preprocess_state_destroy(SpeexPreprocessState *st)
{
speex_free(st->frame);
speex_free(st->ft);
@@ -718,12 +718,12 @@
void speex_echo_get_residual(SpeexEchoState *st, spx_word32_t *Yout, int len);
-int speex_preprocess(SpeexPreprocess...
2004 Aug 06
2
Memory leak in denoiser + a few questions
On Mar 28, 2004, at 8:23 PM, Jean-Marc Valin wrote:
>> The st->zeta pointer isn't freed in the
>> speex_preprocess_state_destroy()
>> function of the preprocess.c file (alloced in line 167). It's in
>> Speex 1.1.4
>> by the way.
>
> Oops... Thanks for letting me know. I'll change that for the next
> release (in the mean time, the fix is obvious). In case you're
> interested, I'm...
2008 Mar 29
2
GCC/ELF Visibility patch (fwd)
...copy)
@@ -392,7 +392,7 @@
}
#endif
-SpeexPreprocessState *speex_preprocess_state_init(int frame_size, int sampling_rate)
+EXPORT SpeexPreprocessState *speex_preprocess_state_init(int frame_size, int sampling_rate)
{
int i;
int N, N3, N4, M;
@@ -530,7 +530,7 @@
return st;
}
-void speex_preprocess_state_destroy(SpeexPreprocessState *st)
+EXPORT void speex_preprocess_state_destroy(SpeexPreprocessState *st)
{
speex_free(st->frame);
speex_free(st->ft);
@@ -718,12 +718,12 @@
void speex_echo_get_residual(SpeexEchoState *st, spx_word32_t *Yout, int len);
-int speex_preprocess(SpeexPreprocess...