Displaying 20 results from an estimated 32 matches for "input_fram".
Did you mean:
input_frame
2005 Oct 09
0
Fw: problem in encoder/decoder
...sg)
{
SpeexBits bits;
void* enc_state;
// Initialize.
speex_bits_init(&bits);
enc_state = speex_encoder_init(&speex_nb_mode);
int frame_size = 0;
// get frame size.
speex_encoder_ctl(enc_state,SPEEX_GET_FRAME_SIZE,&frame_size);
int nbBytes = 0;
//unsigned char *input_frame,*encodedstr;
unsigned char *encodedstr;
float* input_frame;//approx of frame size
input_frame = new float[frame_size];
encodedstr = new unsigned char[MAX_FRAME_BYTES];
ZeroMemory(input_frame,frame_size);
ZeroMemory(encodedstr,MAX_FRAME_BYTES);
int pos = 0;
unsigned char*result;
r...
2005 Jun 07
2
input_frame format
/input_frame/ is a /(float *)/ pointing to the beginning of a speech frame
What is the range on the floats in the input_frame that speex_encode()
needs? The library that I'm using to get the sound gives me floats that
are between -1.0 and +1.0.
I was assuming that this is also the case for speex, but I...
2005 Jun 23
2
input_frame format
...reference says it is "+-2^16 range."
Which is right? I've yet to successfully encode or decode anything.
Jean-Marc Valin wrote:
>It is documented and the range is +-32767
>
> Jean-Marc
>
>Le mardi 07 juin 2005 ? 11:59 -0500, Matt DeMoss a ?crit :
>
>
>>/input_frame/ is a /(float *)/ pointing to the beginning of a speech frame
>>
>>What is the range on the floats in the input_frame that speex_encode()
>>needs? The library that I'm using to get the sound gives me floats that
>>are between -1.0 and +1.0.
>>
>>I was assu...
2007 Sep 22
1
Echo Cancellation Problem -- with sound sample
...8kHz and 16 bits per sample, 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...
2007 Jun 26
2
number of samples in input_frame
Hi all
Sorry if this is a dumb question: does the input_frame passed to
speex_encode_int *have* to be frame_size samples long?
e.g., If I only have 100 samples left to encode (which is less than the
frame_size of 160 samples), can I just use an array that contains 100
samples, or do I need to create an array containing the 100 "real"
samples pl...
2004 Aug 06
1
LIB usage
Hello,
I'm trying to use the speexlib but I just can't do it. I've made just like the
example (on the site) says. Some times I get SIGFAULT. Also, I'm reading the
input_frames from /dev/dsp (directly). What is missing here?
speex_bits_init(&bits);
enc_state = speex_encoder_init(&speex_nb_mode);
speex_encoder_ctl(enc_state, SPEEX_GET_FRAME_SIZE, &frame_size);
for(n=0; n<100; n++)
{
read_from_dev(fd1, (float *)input_frame, 1024);
spee...
2007 Jun 26
0
number of samples in input_frame
...![endif]-->
<div class="Section1">
<p class="MsoNormal">Hi all<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Sorry if this is a dumb question: does the
input_frame
passed to speex_encode_int *<b>have</b>* to be frame_size samples long?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">e.g., If I only have 100 samples left to encode
(which is l...
2004 Aug 06
3
What is the format of the PCM/WAV data for speex_encode & speex_decode?
I'm confused about the format of the PCM/WAV data for speex_encode &
speex_decode
speex_encode(enc_state, input_frame, &bits);
In the manual, it says "input_frame is a (float *) pointing to the beginning
of a speech frame" (for encode)
But I've found that in speexenc.c and testenc.c, short* is used instead of
float*
So, isn't it signed 16 bit samples(if 16bit) or float?
For vorbis, I...
2006 Sep 21
1
echo cancellation causes assertion
...on
failed, it seens 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.
2006 Oct 27
2
Echo Canceller trouble in 1.2beta1
Hi Folks,
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_e...
2007 Sep 22
1
Echo Cancellation Problem -- with sound sample
...ame 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).
>
>
>
>...
2007 Mar 05
1
Performance of the acoustic echo canceller
...I can hear the echo of my every word while I talks on the land line phone. I am using G.711 codec, 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...
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...
2007 Mar 06
0
Performance of the acoustic echo canceller
...lerDate: Tue, 6 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...
2007 Mar 06
1
Performance of the acoustic echo canceller
...for easy readability. 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 an...
2006 Dec 15
2
About "Convert 8->16 bits"
Hi everybody,
I have been using speex-1.2beta1 and my input data is 8-bit unsigned so I
know that I should convert from 8 to 16 bits. I've done the convertion as
following.
for(int i=0; i<160; ++i)
{
input_frame[i] = (short)( (data[2*i] << 8) | data[2*i+1]);
}
When my codec application didn't work right, I think that the reason is an
error at this convertion. For this aim, I looked at read_samples function in
speexenc project and I can't understand why the convertion is done in th...
2006 Dec 29
0
using speex in C#
...quot;)]
public static extern void speex_bits_init(SpeexBits *bits);
[DllImport("libspeex.dll")]
public static extern int speex_bits_write(SpeexBits *bits, IntPtr
bytes, int max_len); // char *
...
/* some global variables */
int frame_size;
void *enc_state;
SpeexBits enc_bits;
short[] input_frame;
...
/* from Constructor */
...
enc_bits = new SpeexBits();
enc_state = speex_encoder_init_new(0);
speex_encoder_settings(enc_state, 3, 8000, 10, 11000);
fixed (int *fSize = &frame_size)
{
speex_encoder_ctl(enc_state, SPEEX_GET_FRAME_SIZE, fSize);
}
fixed (SpeexBits *bitsAdd = &enc_bits)...
2004 Aug 06
0
Speex wrapper functions for Visual Basic
...n single array in VB to a float array in C which can be
encoded. And the output of the encoder have to be unsigned char because in VB its an
byte array.
Here are my first steps but it don´t work and i don´t come forward. Hopefully someone can help me!
CALL int __stdcall EncodeSpeexFrame (float *input_frame, unsigned char *output_bytes, int input_size)
{
int MAX_NB_BYTES, nbBytes;
char *output_buffer;
unsigned char *temp_buffer;
float *input_buffer;
input_buffer = new float (input_size);
input_buffer = input_frame;
speex_bits_reset(&enc...
2004 Aug 06
0
What is the format of the PCM/WAV data for speex_encode & speex_decode?
Speex 1.0.3 uses floats, but the unstable version 1.1.x uses short.
Jean-Marc
Le ven 16/04/2004 16:04, Kenji Chan a crit :
> Im confused about the format of the PCM/WAV data for speex_encode &
> speex_decode
>
> speex_encode(enc_state, input_frame, &bits);
>
> In the manual, it says input_frame is a (float *) pointing to the
> beginning of a speech frame (for encode)
>
> But Ive found that in speexenc.c and testenc.c, short* is used
> instead of float*
>
>
>
> So, isnt it signed 16 bit samples(if 16b...
2005 Jun 06
1
SpeexBits Questions
The example in the documentation demonstrates using speex_bits_reset
before encoding and decoding each frame.
"
speex_bits_reset(&bits);
speex_encode(enc_state, input_frame, &bits);
nbBytes = speex_bits_write(&bits, byte_ptr, MAX_NB_BYTES);
"
What happens if this is not done? I think I'm missing the point of
having a SpeexBits object.