similar to: openh323 conflict; can speex_encode take short?

Displaying 20 results from an estimated 100 matches similar to: "openh323 conflict; can speex_encode take short?"

2004 Aug 06
0
About sample code
I write a sample code like speex provide , as follows: SpeeXCodec::SpeeXCodec() { rate = 8000; speex_bits_init(&enbits); speex_bits_init(&debits); enc_state = speex_encoder_init(&speex_nb_mode); dec_state = speex_decoder_init(&speex_nb_mode); // set option for encoder speex_encoder_ctl(enc_state, SPEEX_GET_FRAME_SIZE, &frame_size); speex_encoder_ctl(enc_state,
2007 Dec 06
2
Some question about speexcodex 1.2 beta2 on linux
Hi, I am an user of speex codec.Can I ask some question about the speexcodec 1.2beta2 on installed to linux(fedora 6) thanks! After I downloaded the latest version of codec then I type the commands to install : configure -prefix=/home/...../test -enable-shared -enable-static make make install then I try to compile my encode.c here is the encode.c of mine: =====================================
2005 Jan 04
1
Conversion problem in encoding and decoding
Hi, I am new to this newsgroup. I have a problem using the Speex library. I have recorded sound data using a character buffer like char recMessg[BUFFERSIZE]. I have problem converting this to the float array for encoding. Also help me in converting the decoded information in float array back to character array. Can anybody give me function codes for this conversion. Thanks in
2005 Jan 04
0
Conversion problem in encoding and decoding
> short temp_short; > float temp_float; > float floatData[number_of_sample]; > > for (int i=0; i < number_of_sample; i++) > { > memcpy(&temp_short, &src[i*2], 2); > temp_float = temp_short; > floatData[i] = temp_float; > } > > yueweng > Thanks for the encoding code can yu plz send me the decoding code for conversion from float array to
2013 Feb 12
0
Speexdec says: 'This doesn't look like a Speex file' (am I missing headers?)
Hello, guys! I'm a novice at programming, learning about the speex and its applications now. Specifically, my current goal is to encode microphone input on iOS device in real-time, saving result to a file frame-by-frame. So far, I've managed to: 1) compile speex static library (it works, at least for iPhone/iPad, but not on iOS simulator; this is fine for now); 2) encode pcm data from
2013 Feb 12
0
Speexdec says: 'This doesn't look like a Speex file' (am I missing headers?).
Hello, guys! I'm a novice at programming, learning about the speex and its applications now. Specifically, my current goal is to encode microphone input on iOS device in real-time, saving result to a file frame-by-frame. So far, I've managed to: 1) compile speex static library (it works, at least for iPhone/iPad, but not on iOS simulator; this is fine for now); 2) encode pcm data from
2013 Feb 12
0
Speexdec says: 'This doesn't look like a Speex file' (am I missing headers?).
Hello, guys! I'm a novice at programming, learning about the speex and its applications now. Specifically, my current goal is to encode microphone input on iOS device in real-time, saving result to a file frame-by-frame. So far, I've managed to: 1) compile speex static library (it works, at least for iPhone/iPad, but not on iOS simulator; this is fine for now); 2) encode pcm data from
2013 Feb 12
0
Speexdec says: 'This doesn't look like a Speex file' (am I missing headers?)
Hello, guys! I'm a novice at programming, learning about the speex and its applications now. Specifically, my current goal is to encode microphone input on iOS device in real-time, saving result to a file frame-by-frame. So far, I've managed to: 1) compile speex static library (it works, at least for iPhone/iPad, but not on iOS simulator; this is fine for now); 2) encode pcm data from
2006 Jun 27
7
Library split (poll)
Hi everyone, In the 1.1.x branch, I've kept adding more stuff to libspeex: preprocessor, AEC, etc. I'm now considering moving all those to a separate library (libvoip, libspeech, whatever). Anyone on this list has good reasons I should consider for either splitting or not splitting libspeex? Cheers, Jean-Marc
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) {
2006 Jun 28
1
Library split (poll)
Hi Jean Marc, On Wed, 28 Jun 2006, Alfred E. Heggestad wrote: > good idea to split the libraries > > If e.g. AEC/Jitterbuffer can be used with other codecs such as G711, > without linking to the speexcodec lib, I think people will reuse the > Speex jitterbuffer implentation and avoid writing their own. > > what about: > > libspeexpreproc Preprocessor >
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;
2011 Nov 16
0
Just getting noise
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 speex_encode_int() that many times. Something like speex_bits_reset( &bits ); for( n = 0; n < num_frames; ++n ) { speex_encode_int( enc_state, (int16_t*)input_tail,
2007 Dec 10
1
SpeexCodec run in linux of decode
Hi , may I ask some question about the decode files? here is my decode.c but when the program run to speex_encoder_destroy(state); It shows that segmentation fault ,I feel comfused, could you tell thanks! #define MAX_FRAME_SIZE 320 int main() { FILE *fout; char *inFile; FILE *fin; short out[MAX_FRAME_SIZE]; char cbits[200]; int nbBytes; void *state; SpeexBits bits; //int tmp; int
2004 Aug 06
1
Where can I find the implementation of function speex_encode( )
Hi, Guys I am starting looking the source code of Speex. Maybe a little silly, but I can not find the implementation of the function speex_encode(). Only something like below void speex_encode(void *state, float *in, SpeexBits *bits) { (*((SpeexMode**)state))->enc(state, in, bits); } Does that mean some of the detail implementation is embedded in lib without source code? I am new in
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
2004 Aug 06
0
speex_encode / speex_encode_int ... already sorry =)
On Sun, Apr 25, 2004 at 04:18:16PM +0200, crazylord wrote: > 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
2004 Aug 06
2
speex_encode / speex_encode_int ... already sorry =)
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 <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
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
2005 Jun 30
0
speex_encode segfault
Hi, i'm following encoder example in the manual.pdf of speex documentation. Here's my portion of code: int SPEEX_EncodePCM(struct _IDA_ClientSocket *IDA,char *buffer,unsigned char *PCM,int num_samples) { int ret,c,d=0,nbBytes,ttBytes=0; float PCM_F[160]; char cBits[200]; #ifndef DISABLESPEEX speex_bits_reset(&IDA->speex_bits); for(c=0;c<num_samples;c++) {