Displaying 20 results from an estimated 49 matches for "speex_preprocess_run".
2007 Sep 17
1
Possible fixed point overflow/div 0 preprocess.c
...y issues.
I am not
sure whether it is just my compiler (gcc 3.3.5) doing the wrong thing
with the cast.
File: preprocess.c
Arch affected: x86, (others?)
svn revision: 12778
Description:
The SpeexPreprocessState_ member 'nb_adapt' is a signed integer.
nb_adapt is only
modified during 'speex_preprocess_run' when an unbounded increment is
performed. When
calculating 'beta' within 'speex_preprocess_run', I received a floating
point exception
even when compiled with -DFIXED_POINT. The reason is as follows:
<original beta calculation within speex_preprocess_run>
...
st->...
2007 Jul 24
1
speex_preprocess_run unable to locate
i'm trying to find the speex_preprocess_run fuction and checked in
the speex/speex_preprocess.h but the prototype isn't there. I'm using
1.2beta1 checked the trunk and it seems to say that is the right header.
wondering if anyone else has/had this issue and if its resolved or my
lib just got corrupted somehow.
thanks
Greg...
2007 Sep 27
1
Need some clarifications about "speex_preprocess_run"
...ant to know when should I call this function, before the encoding process (i.e. preprocess the pcm data) or after the encoding process (i.e. the speex data)3. and if my questions is still not well understood, here is the encoding snippet and decoding snippet I have, which line should I insert "speex_preprocess_run", assume init and destroy are handled properly?encode part.
.
.speex_bits_reset(&bits);speex_encode_int(encoder, (spx_int16_t* )bytes, &bits);count = speex_bits_write(&bits, bytes, len);.
.
.decode part.
.
.speex_bits_read_from(&bits2, bytes, enc_count);speex_decode_int(decoder...
2008 Feb 17
1
Voice activity detection
Thanks for your reply. I changed my code to:
if (speex_preprocess_run(preprocess_state, shortPointer) == 1)
{
speex_encode_int(enc_state, shortPointer, &enc_bits);
}
In the mobile version of the software, compiled against the mobile build of Speech, I get 1 and 0 based on whether the speech is detected. In the version of the software compiled against the Win32...
2008 Feb 15
3
Voice activity detection
...but I don't know how to check if the actual frame has
voice in it or not.
So, in my code, I do:
int tmp = 1;
speex_preprocess_ctl(preprocess_state, SPEEX_PREPROCESS_SET_VAD, &tmp);
speex_preprocess_ctl(preprocess_state, SPEEX_PREPROCESS_SET_DENOISE,
&tmp);
then later, for each frame
speex_preprocess_run(preprocess_state, shortPointer);
but how do I know if the frame contained voice? I tried
if (preprocess_state->was_voice == 1)
{
...Do voice present code...
}
But the compiler complains that was_voice is not defined, which, I
assume, comes from the fact that preprocess_state is declared in...
2010 Feb 09
1
Stereo AEC
...peex_preprocess_state_init(frame_size, sample_rate);
speex_preprocess_ctl(preprocess_state_left ,
SPEEX_PREPROCESS_SET_ECHO_STATE, ec_state );
speex_preprocess_ctl(preprocess_state_right ,
SPEEX_PREPROCESS_SET_ECHO_STATE, ec_state );
AEC:
speex_echo_cancellation(ec_state, mic, echo_ref, output);
speex_preprocess_run(preprocess_state_left, output);
speex_preprocess_run(preprocess_state_right, output);
Is there anything wrong with my code?
Thanks in advance.
Nicholas
2010 Oct 28
1
Problem with VAD in preprocessor on iPhone
...ons:
http://codeforfun.wordpress.com/2010/04/29/compile-speex-for-iphone/
Next, I was able to record some audio and play it back. I then inserted a
call to the speex preprocessor and am passing all of the audio buffers I
receive from Audio Queue Services (the iPhone/Mac audio streaming API) into
speex_preprocess_run. The problem though is that speex_preprocess_run is
returning a 1 regardless of whether I am speaking into the microphone or
not. There is this output in the log when debugging my program:
*warning: The VAD has been replaced by a hack pending a complete rewrite*
Does this mean that VAD does no...
2008 Jan 07
2
Problem related to Voice activity detection
...voice through Waveform Functions of Windows Multimedia API
2. Started Speex Preprocessing liberary
3. Turned on preprocessor by calling speex_preprocess_state_init and passing it 20 ms frame size and sampling rate
4. Set VAD on
5. Copied byte data into __int16 variables and passed it to speex_preprocess_run function.
in return of these steps i got wrong date back to me. could you please send me the sample code or could you identify the problem?
i'll be thankful
regards
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
-...
2007 May 01
2
Sending speex over a network
...is function)
speexclient.c:164: error: (Each undeclared identifier is reported only once
speexclient.c:164: error: for each function it appears in.)
speexclient.c:216: error: too few arguments to function 'speex_echo_capture'
speexclient.c:223: warning: implicit declaration of function
'speex_preprocess_run'
Can anyone give me direction ?
Thanks
Nichole
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20070501/acc7cefe/attachment.html
2008 Aug 23
1
Echo canceller
...e and playback, both are different functions called in
different times directly from 'portaudio'.
On capture I do:
speex_echo_cancellation(es,input,buffer,output);
Input is the audio just captured
Buffer is the last frame audio playbacked
Output is obvious
On playback I do:
speex_preprocess_run(ps,(spx_int16_t*)output);
memcopy(buffer,output,settings.bufferSize());
output is the frame audio to sound (different that the
'output' in capture)
buffer store the last frame audio to be used later on
capture (look on capture)
Echo and preprocess states are conveniently initiated us...
2009 Jun 15
1
Performance and Optimization
...t to assume that there are massive floating point calculations
happening?
I did a quick profile with CodeAnalyst and identified the most expensive
functions as (in order):
CPU Clocks, Function
4657, kiss_fft_stride
4456, speex_echo_cancellation
2494, split_cb_search_shape_sign
1490, fir_mem16
1419, speex_preprocess_run
I'm looking for advise on how to boost the performance with as little code
rewrite as possible. The architecture for release build will be SSE/SSE2
capable.
1) Compiler optimizations: Recommended options?
2) SIMD. Is Speex written to take advantage of SIMD architectures? What must
I do to take...
2009 Sep 29
1
SPEEX_PREPROCESS_SET_ECHO_STATE produces heap corruption
Hi,
when I use preprocessor with AEC, VC++ alerts me about heap corruption.
I have protected speex_echo_playback, speex_echo_capture and
speex_preprocess_run with mutexes, to avoid echo_state being used at the
same time, but it still happens.
Any help about this ussue?
Thank you.
2010 Feb 10
0
Speex-dev Digest, Vol 69, Issue 8
...ate);
>
> speex_preprocess_ctl(preprocess_state_left ,
> SPEEX_PREPROCESS_SET_ECHO_STATE, ec_state );
> speex_preprocess_ctl(preprocess_state_right ,
> SPEEX_PREPROCESS_SET_ECHO_STATE, ec_state );
>
> AEC:
>
> speex_echo_cancellation(ec_state, mic, echo_ref, output);
> speex_preprocess_run(preprocess_state_left, output);
> speex_preprocess_run(preprocess_state_right, output);
>
> Is there anything wrong with my code?
>
> Thanks in advance.
> Nicholas
>
>
> ------------------------------
>
> _______________________________________________
> Speex-de...
2010 Feb 28
0
Denoise not working for me
...the denoise option
int nEnable = 1;
SpxPreprocessState =
speex_preprocess_state_init(160, 8000); //20ms audio at 8000 bps
speex_preprocess_ctl(SpxPreprocessState, SPEEX_PREPROCESS_SET_DENOISE,
&nEnable);
//Run the preprocess on the buffer captured before encoding
speex_preprocess_run(SpxPreprocessState, (short*)pbBuffer);
speex_encode_int(EncoderState,(short*)pbBuffer,
&stSpeexBits);
I dump the output of the buffer after calling speex_preprocess_run and play
it using some media player tool but I dont hear any audio as if the complete
audio has be...
2010 Oct 28
0
Problem with VAD in preprocessor on iphone
...ons:
http://codeforfun.wordpress.com/2010/04/29/compile-speex-for-iphone/
Next, I was able to record some audio and play it back. I then inserted a
call to the speex preprocessor and am passing all of the audio buffers I
receive from Audio Queue Services (the iPhone/Mac audio streaming API) into
speex_preprocess_run. The problem though is that speex_preprocess_run is
returning a 1 regardless of whether I am speaking into the microphone or
not. There is this output in the log when debugging my program:
*warning: The VAD has been replaced by a hack pending a complete rewrite*
*
*
Does this mean that VAD doe...
2011 May 25
1
pre-processor's residual echo suppression and AEC order
...econd for echo suppression after the
echo canceler. This seems to have effect, but we have not tested the total
quality of this configuration yet.
In the code however preprocessor.c compute_gain_floor() both noise and echo
variables, suggesting these belong together in the same instance.
So is speex_preprocess_run always supposed to be run *after*
speex_echo_cancellation, does it perhaps depend on which filter function is
enabled?
Thanks
Bart
2011 Sep 13
2
why VAD modifies my voice data?
Hello,
I'm using Speex Preprocessor to supress noise, eliminate echo etc.
But I have another preprocessor state that I want to use ONLY to determine
voice activity.
int res = speex_preprocess_run(m_VADOnly, (spx_int16_t *)
pStreamSampleBuffer);
pStreamSampleBuffer is modified after call to speex_preprocess_run.
I have manually turned off noise suppression and AGC but anyway - VAD
modifies my data.
Is there a solution? All I want is to know whether voice present or not.. I
do not need any...
2014 Jun 12
1
VAD always return 1
Hi All,
I am trying to use VAD opption of speex encode on STM32F4 chip. But when I
use *speex_preprocess_run *function, It allways return 1.
Anyone can show me the problem? And please, give me an example about using
VAD.
Thanks in advance,
Regards,
Nhan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20140612/ca19ba2...
2010 Feb 22
0
Speex echo cancellation and denoise issues
...the denoise option
int nEnable = 1;
SpxPreprocessState =
speex_preprocess_state_init(160, 8000); //20ms audio at 8000 bps
speex_preprocess_ctl(SpxPreprocessState, SPEEX_PREPROCESS_SET_DENOISE,
&nEnable);
//Run the preprocess on the buffer captured before encoding
speex_preprocess_run(SpxPreprocessState, (short*)pbBuffer);
speex_encode_int(EncoderState,(short*)pbBuffer,
&stSpeexBits);
On calling speex_preprocess_run removes all the audio from the buffer and a
constant humming sound is heard. I open the recorded file in Coo...
2011 Sep 29
1
Nothing but rhythm was left after encoding and decoding by speex on ipad(XCode 4.1 48110)
...I used to encode and decode, it works
properly in Android 3.0:
static int speexo_encode(const void *in_bytes, void *out_bytes, int size)
{
if (!codec_open)
return 0;
int return_value;
speex_bits_reset(&ebits);
//speex_echo_capture(echo_state, (short*)in_bytes, (short*)in_bytes);
//speex_preprocess_run(prep_state, (short*)in_bytes);
speex_encode_int(enc_state, (short*)in_bytes, &ebits);
if(speex_bits_nbytes(&ebits) >= (int)size) {
return_value = 0;
}
else {
return_value = (int)speex_bits_write(&ebits, (char*)out_bytes, size);
}
return return_value;
}
static int speex...