search for: output_frame

Displaying 20 results from an estimated 27 matches for "output_frame".

2005 Oct 09
0
Fw: problem in encoder/decoder
...its; void* dec_state; // Initialize. speex_bits_init(&bits); dec_state = speex_decoder_init(&speex_nb_mode); int frame_size = 0; // get frame size. speex_decoder_ctl(dec_state,SPEEX_GET_FRAME_SIZE,&frame_size); int nbBytes = 0; unsigned char *input_frame; short *output_frame; input_frame = new unsigned char[frame_size]; int enh = 1; speex_decoder_ctl(dec_state,SPEEX_SET_ENH,&enh); unsigned char*result; int scale=25; int size= max(pMsg->m_nBufferSize*scale frame_size*scale*(pMsg->m_nBufferSize/frame_size)) + frame_size*scale; result = new un...
2014 Jun 24
1
Speex Decoding Issue
...the original WAV file. In our application, we are trying to decode the embedded list of packets and playback using the microcontroller DA converter. Here I paste the function which handles this task: SpeexBits bits; void *dec_state; int idx = 0; // 160 decoded "samples" short output_frame[SPEEX_NB_FRAME_SIZE]; // Getting the timer period from the Sample Rate of the original WAV file float periodSec = 1.0f / (float) pstAudioBuffer->u.spx->dwSampleRate; unsigned int periodMicroSec = (unsigned int) (periodSec * 1000000.0f); // Initialization speex_bits_init(&bits)...
2006 Sep 21
1
echo cancellation causes assertion
...that there is a delete in any where. i've encapsulated echo canceller in a class that storage the state and simply call the functions: void EchoCanceller::Playback(short *echo_frame) { speex_echo_playback(echo_state, echo_frame); } void EchoCanceller::Capture(short *input_frame, short *output_frame, int* residue) { speex_echo_capture(echo_state, input_frame, output_frame, residue); } the class has been tested, and the problem is in the calls. has any body had the same problem? than you.
2007 Sep 22
1
Echo Cancellation Problem -- with sound sample
...le, the frame size is 240, tail_length is long enough to cover the far end to near end delay) Experiment 1: A sine wave is generated in my test program (each frame has a random frequency). And the echo cancellation function is called: speex_echo_cancellation(echo_state, input_frame, echo_frame, output_frame); where input_frame has a delay of 4560 samples compared to echo_frame (i.e. 570 ms delay). I output the output_frame to Windows Media API and playback in my speaker. The echo cancellation performs quite well (around 10% noise/echo left). Experiment 2: A sine wave is generated in my test progr...
2006 May 20
2
Size of each block in a circular buffer and the sample rate
Thanks! I hope this isn't a stupid question but if I want to play two or more voices at the same time, I just add the values of the samples right? If I'm using an unsigned short, should I then clamp the values to 65535? Jean-Marc Valin wrote: >> Is frameSize in bytes? If not, what unit is it in? I need to know so I >> know how big to make each element in my circular
2007 Sep 14
0
Speex echo canceller creating some problems. No voice coming.
...o some links if the question is repetative. Just for testing the echo canceller performance, I have added mdf,fftwrap,misc,kiss_fftr,kiss_fft source files to my project. Now In my multithread application when I receive packets from mice, I calls speex_echo_capture(echo_state, input_frame, output_frame,Youtput_frame) with input_frame as data received from mice(160 bytes as I am using G711 codec) and I send data out received from second argument output_frame. Also when I get packet to play from remote(far) end, I calls speex_echo_playback(echo_state, echo_frame) with arrived data. If...
2009 Jan 26
2
speex_echo_cancel, please help!
Hello, Need some help using the speex_echo_cancel. I've read the documentation about the speex_echo_cancellation function: speex_echo_cancellation(echo_state, input_frame, echo_frame, output_frame); (in) echo_state => speex internal state. (in) input_frame => audio captured by mic. (in) echo_frame => the signal that was played in the speaker. (out) output_frame => the signal with echo removed. I'm under linux and using portaudio as sound API. My questions are: 1...
2009 May 26
0
Hi, I've got 2 problems about Speex
...goal is to cancel the echo caused by the client's mic and speaker through the Internet, which is also the aim of Speex. I have read the manual and the api reference, but still have some problems about the usage. 1. about function speex_echo_cancellation(echo_state, input_frame, echo_frame, output_frame); Parameters (input_frame, echo_frame and output_frame) refer to what kind of audio data? The format should be wav, mp3 or some other compression or uncompression formats? 2. about testecho There is a project called TestEcho. I suppose it's an example to show the users how to execute t...
2006 Oct 27
2
Echo Canceller trouble in 1.2beta1
...olks, I am having trouble using speex_echo_cancel. As a starting point, I am using the testecho.c source code. I compiled the 1.2beta1 version. I have not tried any other versions of speex. The document says that the order of arguments to Speex_echo_cancel is (echo_state, input_frame, echo_frame, output_frame, residue) where "input_frame" is as captured from mic and "echo_frame... was played from the speaker." Speex_echo_cancel calls these parameters (st, ref, echo, out, Yout). The name "ref" is confusing to me, but the implementation of speex_echo_playback() and speex_ec...
2008 Nov 26
2
Lost packets during transmission
Hi, I was wonder how Speex handles (if at all ) lost packets when decoding the bit-stream . 1. Does Speex has any mechanism to handle lost packets (like AMR has for example)? 2. I am using Speex in a constant frame size (160 bytes), narrowband, VBR off, SPEEX_SET_QUALITY = 3 and SPEEX_SET_COMPLEXITY =1 . I encode speech stream and sending the encoded packets to the
2008 Feb 08
1
Echo Canceller on Windows Mobile
...we use the output frame ) or not performance becomes terrible. Note 2 separate threads are used to handle audio. Playing Audio thread: Write to codec speex_echo_playback(echo_state, echo_frame); Capturing audio thread: Receive buffer speex_echo_capture(echo_state, input_frame, output_frame); We have compiled for fixed point. We are using codec buffer size of 256 bytes ie 128, 16bit samples. SpeexEchoState* iEchoState = speex_echo_state_init(ECHO_FRAME_SIZE, ECHO_FILTER_SIZE); ECHO_FRAME_SIZE = 128 ECHO_FILTER_SIZE = 1024 Any ideas? Do you know whe...
2007 Mar 05
1
Performance of the acoustic echo canceller
...frame_size 80 and both 1024 and 2048 tail length. The code was compiled as floating point and fixed point in the PC. But noneof them help. I made sure the the synchronization between echo_frame and input_frame was stable and the delay is consistant about 10ms. The echo return lossis around 20db but output_frame and input_frame signal is about the same. I even tried Jean-Marc's latest mdf.c from the subversion but no luck. Has anyone test the performance in any other softphones and how well does it work? I have the recording files, anyone would be interesting in taking a look? I wonder if there is s...
2007 Mar 06
0
Performance of the acoustic echo canceller
Hi Jean-Marc, Thanks for the suggesting. I tried the test wtih my recording file offline through the testecho. I got the same result(no prepocessor echo suppression) as my recording file for that live call. Basically I don't see the difference between input_frame and output_frame. As I mentioned in my original post, the echo return loss is about 20db. I guess the echo cancelleris not really actively cancelling the echo in such condition? But without the echo sppression/NLP, echo is still noticable. I used the same onboard sound card for the speaker and microphone. As fa...
2007 Mar 06
0
Performance of the acoustic echo canceller
...Mar 2007 01:39:11 -0800 Hi Jean-Marc, Thanks for the suggesting. I tried the test wtih my recording file offline through the testecho. I got the same result(no prepocessor echo suppression) as my recording file for that live call. Basically I don't see the difference between input_frame and output_frame. As I mentioned in my original post, the echo return loss is about 20db. I guess the echo cancelleris not really actively cancelling the echo in such condition? But without the echo sppression/NLP, echo is still noticable. I used the same onboard sound card for the speaker and microphone. As fa...
2007 Mar 06
1
Performance of the acoustic echo canceller
...lity. Sorry about mess. Hi Jean-Marc, Thanks for the suggesting. I tried the test wtih my recording file offline through the testecho. I got the same result(no prepocessor echo suppression) as my recording file for that live call. Basically I don't see the difference between input_frame and output_frame. As I mentioned in my original post, the echo return loss is about 20db. I guess the echo canceller is not really actively cancelling the echo in such condition? But without the echo sppression/NLP, echo is still noticable. I used the same onboard sound card for the speaker and microphone. As...
2007 Sep 22
1
Echo Cancellation Problem -- with sound sample
...gth is long enough to cover the far end to near end delay) > > > Experiment 1: > > A sine wave is generated in my test program (each frame has a random frequency). And the echo cancellation function is called: > > speex_echo_cancellation(echo_state, input_frame, echo_frame, output_frame); > > where input_frame has a delay of 4560 samples compared to echo_frame (i.e. 570 ms delay). I output the output_frame to Windows Media API and playback in my speaker. The echo cancellation performs quite well (around 10% noise/echo left). > > > > Experiment 2: > > A...
2006 Oct 27
0
Echo Canceller trouble in 1.2beta1
...e using speex_echo_cancel. As a starting point, I am > using the testecho.c source code. I compiled the 1.2beta1 version. I > have not tried any other versions of speex. > > The document says that the order of arguments to Speex_echo_cancel is > (echo_state, input_frame, echo_frame, output_frame, residue) where > "input_frame" is as captured from mic and "echo_frame... was played from > the speaker." > > Speex_echo_cancel calls these parameters (st, ref, echo, out, Yout). The > name "ref" is confusing to me, but the implementation of > spee...
2014 Sep 02
0
Speex_echo_cancellation() always same output
...ry board (having ARM based uC).In my project, I simply initialized the echo_state by speex_echo_state_init() by using frame_size 160, filter_length 800 (at 8kHz Sampling rate.) Then, I simply used speex_echo_cancellation() function in where i am getting sound. However, I have recently realised that output_frame has been always same without any relation with input_frame and echo_frame. What can be wrong in my project? Any help will be appreciated. Best regards, -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/speex-dev/attachment...
2008 Feb 11
0
Echo Canceller on Windows Mobile
...d in (ie we use the output frame ) or not performance becomes terrible. Note 2 separate threads are used to handle audio. Playing Audio thread: Write to codec speex_echo_playback(echo_state, echo_frame); Capturing audio thread: Receive buffer speex_echo_capture(echo_state, input_frame, output_frame); We have compiled for fixed point. We are using codec buffer size of 256 bytes ie 128, 16bit samples. SpeexEchoState* iEchoState = speex_echo_state_init(ECHO_FRAME_SIZE, ECHO_FILTER_SIZE); ECHO_FRAME_SIZE = 128 ECHO_FILTER_SIZE = 1024 Any ideas? Do you know whether any one ha...
2006 Oct 27
2
Echo Canceller trouble in 1.2beta1
...e using speex_echo_cancel. As a starting point, I am > using the testecho.c source code. I compiled the 1.2beta1 version. I > have not tried any other versions of speex. > > The document says that the order of arguments to Speex_echo_cancel is > (echo_state, input_frame, echo_frame, output_frame, residue) where > "input_frame" is as captured from mic and "echo_frame... was played from > the speaker." > > Speex_echo_cancel calls these parameters (st, ref, echo, out, Yout). The > name "ref" is confusing to me, but the implementation of > spee...