search for: byte_ptr

Displaying 10 results from an estimated 10 matches for "byte_ptr".

2004 Aug 06
1
LIB usage
..._GET_FRAME_SIZE, &frame_size); for(n=0; n<100; n++) { read_from_dev(fd1, (float *)input_frame, 1024); speex_bits_reset(&bits); speex_encode(enc_state, input_frame, &bits); nBytesFrame = speex_bits_nbytes(&bits); nbBytes = speex_bits_write(&bits, byte_ptr, nBytesFrame); write_to_file(fd2, byte_ptr, nbBytes); } speex_bits_destroy(&bits); speex_encoder_destroy(enc_state); <p>Thank you Bruno Rodrigues --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from...
2004 Aug 06
2
rgding VAD
...ere is silence in media using speex? Is there any API which decides that the audio data only contains silence? Basically i will have PCM linear data, I want to know whether it is complete silence. Is it that during encoding speex_bits_write will return a lesser number if the audio at byte_ptr contains silence? thanx, Rahul -- Rahul Arvind Jadhav Web: http://rahuljadhav.tripod.com <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...
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
...ample 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. >> >> >> _______________________________________________ >> Speex-dev mailing list >> Speex-dev@xiph.org >&g...
2012 Mar 10
3
problem: The decoded frame is not as the original one
...e original frame(see output below).What is the possible reason for this?.thanks for any help #include<stdio.h> #include"intel16.h" #include <speex/speex.h> #define FRAME_SIZE 160 #define MAX_NB_BYTES 25 SpeexBits bits; void *enc_state; int quality=4;?????? int nbBytes; int byte_ptr; int frame_size; short frame[FRAME_SIZE];? char outBuffer[20]; SpeexBits decBits; void *dec_state; short decFrame[FRAME_SIZE]; /*===========END ===============================*/ int z=0; int frame_size; int main (int argc,char **argv) { for( z=0;z<160;z++) ??? { ??? frame[z]=intel_theme[z]...
2007 Sep 19
1
Speex Questions <./Configure %install make [-enable-fixed-point] setting> and Encoding Times etc...
...B 4:32sec File ) -> 1.spx (521k) Encoding Complete! But dwStart = GetTickCount(); speex_bits_init(&bits); enc_state = speex_encoder_init(&speex_nb_mode); .. speex_bits_reset(&bits); speex_encode_int(enc_state, input_frame, &bits); nbBytes = speex_bits_write(&bits, byte_ptr, MAX_NB_BYTES); .. speex_bits_destroy(&bits); speex_encoder_destroy(enc_state); .. dwEnd = GetTickCount(); dwTime = dwEnd - dwStart; fprintf (stderr, "Speex Decoding TotalTime is : %d sec ", (dwTime/1000)); -------------------------------------- | Speex Decoding Tota...
2004 Aug 06
0
Re: Please confirm your message
...ere is silence in media using speex? Is there any API which decides that the audio data only contains silence? Basically i will have PCM linear data, I want to know whether it is complete silence. Is it that during encoding speex_bits_write will return a lesser number if the audio at byte_ptr contains silence? thanx, Rahul <hr width="90%" size="4"> <table border="0" cellspacing="0" cellpadding="0" width="100%" class="header-part1"> <tbody> <tr> <td>...
2004 Aug 06
0
rgding VAD
...way is probably to turn VAD *and* DTX on. Then when there's silence, the speex_encode function will return zero, which means you don't have to transmit the frame (normally, it returns 1). > Is it that during encoding speex_bits_write will return a lesser > number if the audio at byte_ptr contains silence? You could do it that way but you may run into problems at low bit-rate VBR modes, where the same mode can be used for silence or low-volume speech. Jean-Marc -- Jean-Marc Valin, M.Sc.A. LABORIUS (http://www.gel.usherb.ca/laborius) Université de Sherbrooke, Québec, Can...
2004 Aug 06
1
rgding VAD
...cts nonspeech, the decoder inserts 'comfort noise', so that the end user doesn't suddenly hear a complete silence, but rather a continuation of the background noise. Jelle. > > Is it that during encoding speex_bits_write will return a lesser > > number if the audio at byte_ptr contains silence? > > You could do it that way but you may run into problems at low bit-rate > VBR modes, where the same mode can be used for silence or low-volume > speech. > > Jean-Marc > > -- > Jean-Marc Valin, M.Sc.A. > LABORIUS (http://www.gel.usherb.ca/labor...
2012 Mar 11
0
problem: The decoded frame is not as the original one
...e original frame(see output below).What is the possible reason for this?.thanks for any help #include<stdio.h> #include"intel16.h" #include <speex/speex.h> #define FRAME_SIZE 160 #define MAX_NB_BYTES 25 SpeexBits bits; void *enc_state; int quality=4;?????? int nbBytes; int byte_ptr; int frame_size; short frame[FRAME_SIZE];? char outBuffer[20]; SpeexBits decBits; void *dec_state; short decFrame[FRAME_SIZE]; /*===========END ===============================*/ int z=0; int frame_size; int main (int argc,char **argv) { for( z=0;z<160;z++) ??? { ??? frame[z]=intel_theme[z...