Displaying 20 results from an estimated 1000 matches similar to: "problem: The decoded frame is not as the original one"
2012 Mar 11
0
problem: The decoded frame is not as the original one
Hi All,
i need your help in determining the problem in the following sample code (taken from speex manual) for fixed point encoding.
i tested encoding a 160 sample frame and then decoding it back But The problem is that the decoded frame is totally different from the original frame(see output below).What is the possible reason for this?.thanks for any help
#include<stdio.h>
2007 Nov 04
3
WaveIn/WaveOut and Speex
Hello,
I know my question has been asked before because I spent the last week
searching the web for how to use Speex in combination with
WaveIn/WaveOut and I ran into a few posts, but none of them answer the
question. There is still a lot of confusion how to use WaveIn/WaveOut
and Speex by junior developers such as myself. Even after examining code
for SpeexDec and SpeexEnc, I cannot get clear
2007 Nov 04
2
WaveIn/WaveOut and Speex
Thank you for such a quick response.
The only reason I started with Char buffers is because WaveIn and WaveOut on Windows XP accept/emit WAVEHDR structures, which store audio data in LPSTR, which is Char*.
typedef struct {
LPSTR lpData;
DWORD dwBufferLength;
...
} WAVEHDR;
When I was going from Char to float and back looked very wrong to me as well, but I was just not
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.
2005 Jun 06
1
SpeexBits Questions
Thanks, it makes more sense to me now. Does speex_bit_read_from also
append in that manner?
Jean-Marc Valin wrote:
> speex_bits_reset is before encoding, not decoding. If you don't call it,
> then everything you encode will be appended so it will grow without end.
> As for the point of the SpeexBits struct, it's there as a sort of "array
> of bits" to it's easy
2007 Sep 19
1
Speex Questions <./Configure %install make [-enable-fixed-point] setting> and Encoding Times etc...
Hi, Speex-dev
I've been able to get Speex to compile on SM400M(MIPSII) with problems.
------ Rebuild All started: Project: speexenc, Configuration: Debug SM400M
(MIPSII) ------
Deleting intermediate and output files for project 'speexenc', configuration
'Debug|SM400M (MIPSII)'
Compiling...
getopt.c
getopt1.c
skeleton.c
speexenc.c
.\speexenc.c(501) : warning
2004 Aug 06
2
Please 30 second to look a my code
Hi
i'm developing a sort of VoIP application
for my ipaq using speex...
I'm still at beginning and i have many problems encoding and decoding my
wav files....output is only noise! Why?
I'm using
Libspeex 1.1.3,
Embedded VisualC++ 3.0,
Ipaq 3850(206 MHz IntelĀ® Strong ARM 32-bit RISC Processor) PocketPC 2002 (Windows CE 3.0).
Libspeex is complied with the definition of
2010 Apr 05
2
Regarding problem with encoding / decoding
Hi,
Tank you for your reply. I have tried the sample programs given the manual and done encoding and decoding a wave file. That is working fine. I have already read the manual and API reference. But this problem did not occured with the wave file encoding/decoding. While capturing the data from MIC and encoding/decoding is giving this problem.
Thanks and Regards,
Vijender Reddy,
-----
2011 Nov 16
2
Just getting noise
Alright noted, I changed me code so that the state is created in the
constructor and destroyed in the destructor of the object. However I'm
still getting the same issue although I'm sure that would have bit me
sooner or later.
The new code is as follows.
virtual Enigma::u8* Encode(Enigma::u8* inputBuffer,size_t inputSize,
size_t& outputSize)
{
short *in=(short*)inputBuffer;
2005 Feb 09
2
encoding speex, (insanity looming)
Hi All,
I'm very new to speex and in fact handling audio at all, it seems I have run
in to a problem I seem unable to fix. I'm trying to take audio from a microphone
using alsa, then encode it as speex and save to disk. I have been
wondering if it has something to do with endian type, but speexenc and
speexdec works fine.
Currently I have the following setup:
Platform:
2006 May 21
2
Re: High pitched whine with Speex
When I just copy the microphone input buffer to the output buffer the
sound plays OK. But if I encode and decode the buffer through Speex I
get a high pitched constant tone in the background. I actually do hear
my voice speaking when I talk, but it's faint and much quieter than the
tone.
Here's what my data looks like:
Input is the first 5 floats of each input buffer.
Output is
2011 Nov 17
1
Just getting noise
I'm only doing one frame using speex_encode_int greatly simplifies my
code I'm not sure why the sample I was working off of was converting
the shorts to floats then calling the other encode/decode methods.
Based off of your suggestions I tried the following but I get the same
result.
virtual Enigma::u8* Encode(Enigma::u8* inputBuffer,size_t inputSize,
size_t& outputSize)
{
2010 Jul 20
2
[SPAM] [BombData][alltestmode] Re: Speex Echo Cancellation
As for me - speex_echo_cancellation is a better choise. Try using it in
capture thread instead
of those speex_echo_capture and speex_echo_playback functions.
And please, describe your problem in details. Cause the fact that you
"didn get echo cancellation"
doesn't mean you are doing smth wrong.
Regards,
Anton A. Shpakovsky
-----Original Message-----
From: speex-dev-bounces at
2005 Jun 23
2
Speex and DS
Hello everyone
I've a following problem with the speex codec. I'm developing application
that is supposed to read
sounds from the microphone with DirectSoundCapture. Unfortunately when I
want to compress and decompress
the sound buffer from DirectSound I only have jitter. Maybe you have some
code samples how to compress
standard DS buffers:
LPDIRECTSOUND8 lpDS = NULL;
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);
2006 May 21
3
Re: High pitched whine with Speex
Changing from using floats to shorts did fix the high pitched tone
problem. I'm having other problems but I'll look into it more first.
SteveK wrote:
>
> On May 21, 2006, at 6:33 PM, Kevin Jenkins wrote:
>
>> When I just copy the microphone input buffer to the output buffer the
>> sound plays OK. But if I encode and decode the buffer through Speex I
>>
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 Apr 11
0
Problem with speex
Hello!
I am downloaded last version of speex library and did compile DLL.
But I am have not good sound : Please see my code (Delphi) and say me
please WHat I am do not right.
Or please send me correct compiled DLL and example of correct using
SPEEX_MODEID_WB and SPEEX_MODEID_UWB , denoise, and other effects.
How I can set MONO mode in decode?
My Code:
smpRt:=32000;
n:=10;
encbits:
2005 Jul 20
1
Speex Windows from 1.1.6 source
Hi All,
I am using Speex for encoding/decoding the audio stream for
my streaming application. I have used almost the same code
In the sampleenc.c and sampledec.c, except that I have used
The buffers from the mic as input for encoder and encoded audio
As input for decoder, instead of files input.
My Problem is the audio played on the receiving side after decoding
Is only a "hush" or it
2006 Nov 01
1
Integrating speex with VideoNet application: Constant background noise
Hi,
Can someone please help me with my problem below. Any suggestions is appreciated.
thanks,
Carine
----- Original Message ----
From: Carine Liang <carineliang@yahoo.com.sg>
To: speex-dev@xiph.org; speex-dev@xiph.org
Sent: Tuesday, 31 October 2006 1:05:49 PM
Subject: [Speex-dev] Integrating speex with VideoNet application: Constant background noise
Hi,
I am developing a peer-to-peer