search for: speex_decode_int

Displaying 20 results from an estimated 104 matches for "speex_decode_int".

2005 Apr 26
2
100% CPU usage
Hi Jean, > > > Well, just trace it, how many times are you > calling > > > speex_decode_int()? > > > > Maximum is 51 times per second. Will this cause > any > > CPU high utilization? > > That's normal... What CPU are you using? If it's a > fixed-point CPU, then > the reason is probably just the fact that the packet > loss concealment > hasn...
2008 Apr 21
3
Decoding multiple Speex frames
Hello, Could you please explain or send an example for decoding a packet that contains multiple Speex frames. According to the API document the speex_decode_int() decodes only one frame of speech. Best regards, Danny Peled R&D Software Engineer Intelligence Solutions NICE Systems Ltd. ISRAEL *+ (972) 9 769 7161 ? + (972) 54 4 602840 *Danny.Peled at nice.com <mailto:*Danny.Peled at nice.com%20> -------------- next part -------------- An HTML a...
2008 Oct 09
2
Decoding multiple encoded frames
Jean-Marc Valin wrote: > > > The decoder will return -1 if it can't decode anything else, so you just > do something like: > > while(1) { > err = speex_decode_int(state, bits, pcm); > if (err==-1) > break; > output_data(pcm); > } I think I still didn't fully understand. As a test I encoded some frames (wideband, with quality set to 8), each were 70 bytes. I then did three things: - passed half of it to the decoder - passed exa...
2008 Apr 30
1
decode problem
...if (destate){ speex_bits_destroy(&bits); speex_decoder_destroy(destate); } } #define FRAME_SIZE 320 int CMMediaObj::AmrDecodeOneFrame(char *src,char *dst) { speex_bits_read_from(&bits, src, 14); speex_decode_int(destate, &bits, (short*)dst); return FRAME_SIZE; } My problem is that I hear only strange sound. I receive packet of 14 bytes for each frame and I call AmrDecodeOneFrame for each frame. Then 14 bytes amr packet should be 320 bytes uncompress data. speex_decode_int return 0 the...
2011 Jul 26
0
More frames in one packet
...rame][encoded length][encoded frame]... But if I understood the docu correct, it should be easier: I call speex_encode_int() for every frame until the whole recorded buffer has been encoded. After that I call only once speex_bits_write() and send this data over the network. The receiver then calls speex_decode_int() (only once I guess, but this isn't mentioned in the manual). It works if I encode only one frame, but with multiple frames I get strange results (sounds like parts are lost or something like that). What am I doing wrong? Do I have to call speex_decode_int() for every frame inside the packet...
2005 Aug 12
1
Encode/Decode problem
I'm trying to use the speex API, and I think I'm missing something. I'm running on Mac OSX Tiger, and the attached microphone is a iSight. If I call the "speex_encode_int" function, and then immediately call the "speex_decode_int" function, shouldn't I get back the same data? i.e. in my example code, shouldn't the two arrays contain at least similar data? The data I'm seeing is drastically different. If so, is the encoding data sensitive? If my data being fed in is wrong, will the encoding and decod...
2004 Sep 29
3
Fixed point bug in 1.1.6
...o2/sound/krwawa_org.wav http://www.ivo.pl/ivo2/sound/krwawa_fixed.wav http://www.ivo.pl/ivo2/sound/krwawa_float.wav krwawa_org.wav is original file. Both output files was created using same program by compressing from wav to speex, then decompressing from speex to wav (using speex_encode_int and speex_decode_int). Only difference was used speex library. krwawa_fixed.wav was created by libspeex compiled with defined FIXED_POINT krwawa_float.wav was created without FIXED_POINT. When samples values do not exceed (-32000;32000) eveything is ok. Testing platform was Pocket PC, with ARM cpu, libspeex compiled...
2007 May 16
3
draft-ietf-avt-rtp-speex-01.txt
...behavior of > "speex_bits_remaining"...) I'm not really sure I understand your code, but it looks much more complicated than it should be. Normally, the decode code should look like: speex_bits_init(&bits); speex_bits_read_from(&bits, packet, length); while (1) { err = speex_decode_int(state, bits, out_buffer); if (err != 0) break; play_audio(out_buffer); } if (err == -2) ms_warning("there was an error decoding"); I see from your code that you use speex_bits_remaining(&bits) but I can't really understand why. Could you explain? Jean-Marc
2005 Apr 26
1
100% CPU usage
Dear all, I am using speex 1.17 at this moment, everything works great. However, I face a problem when no packet arrived from network for a few second, my CPU usage is 100%. I step though my code and seems that (not confirmed) the speaker callback WaveOutCallback() function which call speex_decode_int(decoder_state, NULL, shortData) (when no data arrived for PLC purpose) seems to consume a lot of CPU slice. Is this normal or I am making a mistake other portion of the program. Regards, YueWeng __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the...
2008 Oct 07
2
Decoding multiple encoded frames
Hi, I've been looking at using speex over RTP. Section 3.3 of draft-ietf-avt-rtp-speex-05 states that: "For the purposes of packetizing the bit stream in RTP, it is only necessary to consider the sequence of bits as output by the Speex encoder [speex_manual], and present the same sequence to the decoder." So, I assume that I just pass the whole contents of the RTP packet (less the
2004 Aug 06
2
1.1 api suggestion
...hanging the argument type to one of the main functions is a bad idea. It's true that the soname mechanism can take care of this on platforms that support it, but it's just confusing. I'd suggest doing something like we did with vorbis (but in reverse): Add new speex_encode_int() and speex_decode_int() calls that that take the short* argument (or a typedef that's definitely 16 bits). Leave the plain speex_decode() and speex_encode() functions taking floats, and make them a simple wrapper that does the conversion and calls the _int version. That way software written against 1.0.x still...
2010 Apr 01
2
Regarding problem with encoding / decoding
...etails are, I have to capture voice from mic and encode it then decode and play. I am capturing the voice and storing in a buffer from there i am reading frame by frame ( 160 bytes) . These bytes i am converting to short int then calling speex_encode-int(). The output buffer i am passing to doder speex_decode_int() function. with out encode and decoding the program working perfectly i am able listen the voice. After decoding if i play the data in the buffer. I am not able to listen the voice , noise is dominating the voice. I am hearing like the voice itself merged with noise. I used denoising and ADC fun...
2007 Jun 01
2
Decoder and discarded frames..., system hangs
...t? I noticed that if i discard packets without passing NULL and advising the decoder, sometimes my system hangs and i need to reset my PDA. Since the decoder is mantaining a state, i suppose i always need to tell it a packet has been discarded through a sequence number check. Or can i just pass to speex_decode_int whatever i receive without worrying about lost frames? Thanks. --------------------------------- L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/speex...
2008 Mar 25
0
No subject
...#39;pcm'. When there is no more data to decode, then speex will return -1. I'm also thinking that you'd need to somehow change what 'bits' points to (advancing the pointer to the next frame)... Or then again, I could be entirely wrong here -- I haven't actually written any speex_decode_int code myself (though I have maintained it, and the speex linkages for the project I've worked on). -- Keith Kyzivat SIPez LLC. SIP VoIP, IM and Presence Consulting http://www.SIPez.com tel: +1 (617) 273-4000 ------=_Part_113560_5269089.1223565455592 Content-Type: text/html; charset=UTF-8 Con...
2011 Nov 17
1
Just getting noise
...rtual Enigma::u8* Decode(Enigma::u8* inputBuffer,size_t inputSize, size_t& outputSize) { speex_bits_reset(&mBits); speex_bits_read_from(&mBits, (char*)inputBuffer, inputSize); outputSize = speex_bits_nbytes(&mBits); Enigma::u8* cbits = new Enigma::u8[outputSize](); speex_decode_int(mState,&mBits,(Enigma::s16*)cbits); return cbits; } On Wed, Nov 16, 2011 at 6:49 PM, Steve Checkoway <s at pahtak.org> wrote: > The way I do this is to compute the number of frames (by dividing the size > of my input by the number of bytes per frame and then calling >...
2007 May 17
0
draft-ietf-avt-rtp-speex-01.txt
...g"...) > > I'm not really sure I understand your code, but it looks much more > complicated than it should be. Normally, the decode code should look like: > > speex_bits_init(&bits); > speex_bits_read_from(&bits, packet, length); > while (1) > { > err = speex_decode_int(state, bits, out_buffer); > if (err != 0) > break; > play_audio(out_buffer); > } > if (err == -2) > ms_warning("there was an error decoding"); > > > I see from your code that you use speex_bits_remaining(&bits) but I > can't really understa...
2010 Apr 05
2
Regarding problem with encoding / decoding
...e voice from mic and encode it then decode and play. > > I am capturing the voice and storing in a buffer from there i am > reading frame by frame ( 160 bytes) . These bytes i am converting to > short int then calling speex_encode-int(). The output buffer i am > passing to doder speex_decode_int() function. with out encode and > decoding the program working perfectly i am able listen the voice. > > > > After decoding if i play the data in the buffer. I am not able to > listen the voice , noise is dominating the voice. I am hearing like > the voice itself merged wit...
2014 May 16
3
Error when compiling FFmpeg with speex-git.
...: /home/user/build/include/speex/speex_stereo.h:64:1: warning: function declaration isn?t a prototype [-Wstrict-prototypes] SpeexStereoState *speex_stereo_state_init(); ^ libavcodec/libspeexdec.c: In function ?libspeex_decode_frame?: libavcodec/libspeexdec.c:153:5: warning: passing argument 3 of ?speex_decode_int? from incompatible pointer type [enabled by default] ret = speex_decode_int(s->dec_state, &s->bits, output); ^ In file included from libavcodec/libspeexdec.c:21:0: /home/user/build/include/speex/speex.h:372:5: note: expected ?spx_int16_t *? but argument is of type ?int16_t *? i...
2005 Apr 19
1
speex voice seems to be bit breaking over long distance.
...for the speex_jitter_get() and speex_jitter_put() function. I have the following questions: Since the second parameter of speex_jitter_put() is a char* and the second parameter of speex_jitter_get() is a short*, does it mean that these two function will actually replace speex_bits_read_from() and speex_decode_int()? Also, which timestamp should I use for the third parameter of speex_jitter_put(), should I use the GetTickCount() value at the point when I first receive a voice packet from the microphone? Finally, what is the use of the third parameter (timestamp) of speex_jitter_get()? Thanks very much....
2005 Oct 17
1
Function call order on libspeex
Hello, I intend to make a speex port for freescale DSP56F800/E. I downloaded the source code, but I not realize which function are called in which order for encode after calling speex_encode (or speex_encode_int) and speex_decode (or speex_decode_int). Could anybody help me on this? Thanks in advance Alexandre Penna