search for: speex_encode_int

Displaying 20 results from an estimated 146 matches for "speex_encode_int".

2005 Oct 17
2
speex_encode_int() - pls help..
Hi, I'm using speex 1.1.10 and writing a program similar to sampleenc. I need to use the fixed point library as I'm eventually porting to ARM processor but I encountered a problem with speex_encode_int(), which I used in place of speex_encode(). I gave it a short instead of a float (manual says it takes a short for the audio - 2nd parameter) but the compiler says it could not convert the short [160] to __int16? same error if I feed it a float (which I know I'm not supposed to do anyway). Any...
2012 Jan 20
1
speex_encode_int performance iphone4 + iOS5
Hi,I'm having performance issues encoding with speex on an iphone4 + iOS5. The same code yields excellent results on iPad2 + iOS5, Mac OS X 10.6 as well as Windows 7. The call to speex_encode_int is takes 0.0065 to complete. Because encoding is so latent the receiver incurs underruns. Here is my speex setup: ? ? unsigned val = 0; ? ? /**? ? ?* Initialize the encoder in narrow band mode.? ? ?*/? ? encoder_state_ = speex_encoder_init(speex_lib_get_mode(SPEEX_MODEID_NB));?? ? /**? ? ?* A quali...
2004 Aug 06
4
speex_encode / speex_encode_int ... already sorry =)
Hi, i know this question has already been asked, i've checked mailing list logs but ... I didn't figure out the solution for my question. I want to use basic functionnality of speex, only VAD, no pre/post filter, even no VBR. But i *really* want to use less mem/cpu i can. So in which format should i pass data to speex_encode(_int) , float or short ? I quickly looked at the source code
2004 Aug 06
0
speex_encode / speex_encode_int ... already sorry =)
...oked at the source code and i saw the speex_encode doing > float to short convertion but it has protected by some #ifdef so .. > > Easy question, i want to: > - pass buffer to Speex in its native format > - encode fast with low resource, avoid buffer convertion ... > > speex_encode_int / speex_encode ? peex_encode_int() but it will only work with version 1.1 (and maybe future versions), if you want compatability with the stable version 1.0 you need to use speex_encode(). Conrad. --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph....
2004 Aug 06
2
speex_encode / speex_encode_int ... already sorry =)
...me we don't get float form data, from, e.g microphone / wav files <p>-----Original Message----- From: owner-speex-dev@xiph.org [mailto:owner-speex-dev@xiph.org] On Behalf Of Conrad Parker Sent: Monday, April 26, 2004 12:58 AM To: speex-dev@xiph.org Subject: Re: [speex-dev] speex_encode / speex_encode_int ... already sorry =) <p><p>--- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'speex-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No s...
2004 Aug 06
0
speex_encode / speex_encode_int ... already sorry =)
On Mon, Apr 26, 2004 at 01:32:53AM +1000, Kenji Chan wrote: > I always think short is better over float, because most of the time we don't > get float form data, from, e.g microphone / wav files It really depends on your framework. Hardware generally uses integer samples, but a number of newer software systems use float. On modern host cpus it's just as fast and you don't
2006 Jan 29
1
is it ok to call speex_encode_int after speex_bits_write?
I'm reliably getting a corrupt stream when I do a certain encoding and decoding test. I've pegged it down to this: encoding some frames, calling speex_bits_write() and then encoding another frame produces a corrupt stream. My question is, is this a speex bug or incorrect API use? I can provide a test case (currently in python, will translate to c if needed). Thanks, Micky
2004 Aug 06
2
Re: does installed lib support _int()s ?
...speex@paypc.com> writes: Malcolm> Well, for compile-time, I'd think that an #ifdef would do the Malcolm> trick. How? VERSION isn't included anywhere except in speex_init_header(), and I do not see any other symbols that encode the version.... That said, I looked at the code for speex_encode_int and friends since writing that. When compiled w/o --enable-fixed-point the _int functions do what the code I was looking at updating already does: convert each sample from short to float in a loop. And when compiled w/ --enable-fixed-point the non _int funtions do the opposite. It wouldn't m...
2008 Feb 13
2
Can Speex frame size be expand from 160 to 320 for NB?
Hi Jean-Marc, I want to know the possibility of expanding frame size from 160 to 320 for narrow band. What is the side-effect if do so? How many changes involved for the current code? Thanks ahead. BRs, Dennis -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20080213/9cbdd667/attachment.htm
2009 Jun 08
1
Quick question
Hi, I am developing my own file format and I have a question about the standard encode method: speex_encode_int(st, raw, &bits); nbBytes = speex_bits_write(&bits, s+1, 255); My question is : Will nbBytes ever be 0 ? (even with an empty frame of all 0's passed to speex_encode_int) In other words is it possible for the encoder to return a compressed bit stream that is 0 bytes long ? Than...
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 sens...
2004 Sep 29
3
Fixed point bug in 1.1.6
...http://www.ivo.pl/ivo2/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 c...
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...
2008 Aug 28
2
speex encode and speex_bits_write buffer size
how many calls can I make to speex_encode_int before calling speex_bits_write? Can I stuff 10 frames? - farhan
2006 Dec 29
0
using speex in C#
...doesn't exist but same job is done speex_encoder_ctl function too. */ [DllImport("libspeex.dll")] public static extern int speex_encoder_settings(void *state, int complexity, int samplingrate, int quality, int bitrate); [DllImport("libspeex.dll")] public static extern int speex_encode_int(void *state, short *input, SpeexBits *bits); // IntPtr ... /* EXPORTED BIT-OPERATION METHODS */ [DllImport("libspeex.dll")] public static extern void speex_bits_init(SpeexBits *bits); [DllImport("libspeex.dll")] public static extern int speex_bits_write(SpeexBits *bits, IntPtr...
2004 Nov 16
2
version 1.0.1 X 1.1.4
...ion and its API has been changed since then. > ie. Flavio, please upgrade to the recent 1.1.6 release. In your code, you will need to change the follwing line (for the 1.1.x build only): > > /* Encode the frame */ > > speex_encode( state, in, &bits ); becomes: speex_encode_int( state, in, &bits ); Conrad.
2011 Jun 02
1
Any tips for speeding up encoding on iPhone?
...sizeof(short)) { // fill frame with samples //memcpy(input, _toCompressBuffer.data, speexFrameSize * sizeof(short)); // process one frame at a time NSLog(@"Start encode"); speex_bits_reset(&speexBits); //speex_encode_int(speexEncoderState, input, &speexBits); speex_encode_int(speexEncoderState, _toCompressBuffer.data, & speexBits); // without using extra buffer UInt16 nbBytes = speex_bits_write(&speexBits, _compressedSpeexBuffer, _compressedSpeexBufferSize); NSLog(@"Ended...
2005 Sep 19
1
Samples per frame.. fixed or variable with configuration?
...es per frame) after setting the mode of encoder and decoder? Or might this figure change if (for intance), one set the quality of the encoder or enabled perceptual enhancement on the decoder? 2. Is there any external requirement to cater to endian-ness of the data passed to speex_encode() or speex_encode_int(), or does speex just like the native representation? How about for the float data output from speex_decode()? I have not run any configuration script. Thanks in advance for any help. Tony Lovell http://dreadnoughtproject.org tone@dreadnoughtproject.org AIM: StupidLagger
2009 Sep 02
3
voice sound like robot voice :)
...sabled ); speex_encoder_ctl( pCodecEncoderState, SPEEX_SET_DTX, &disabled ); // init encoder speex_bits_init( &codecBits ); speex_bits_reset( &codecBits ); // determine encoded bytes per frame with spx_int16_t type, speex can work with float;s, but not in this engine speex_encode_int( pCodecEncoderState, (spx_int16_t*)pCodecBuffer, &codecBits ); encodedFrameBytes = (uint)speex_bits_nbytes( &codecBits ); // setup preprocessor speex_encoder_ctl( pCodecEncoderState, SPEEX_GET_FRAME_SIZE, &encoderFrameSize ); // pPreprocessorState = speex_preprocess_stat...
2004 Aug 06
2
does installed lib support _int()s ?
Assuming one prefers to use the speex_encode_int() and speex_decode_int() when available, but fallback to speex_encode() and speex_decode() if an older version if the lib is installed, how does one best make the determination? The only thing I can see to do is call speex_init_header() and look at the result. Even at compile time it seems one mus...