search for: spx_enc_frame_

Displaying 4 results from an estimated 4 matches for "spx_enc_frame_".

Did you mean: spx_dec_frame_
2010 Apr 14
3
Decoded output buffer size
...x_state_, SPEEX_GET_FRAME_SIZE, &spx_frame_size_); while (BufferFrames>0) { speex_bits_reset(&spx_bits_); speex_encode(spx_state_, inBuff, &spx_bits_); nbBytes += speex_bits_write(&spx_bits_, spx_enc_frame_, spx_frame_size_); inBuff+= spx_frame_size_; BufferFrames -= spx_frame_size_; } ..nbBytes is 80 bytes.. } Now I send this packet over the network and, into the receiving side, I need to recreate the original PCM buffer (640 frames). But how can I know...
2010 Apr 13
1
Another newbie question on encoding
Hi, I'm very sorry if those questions are repeated over and over, but I cannot find a solution on the net. I try to use speex to encode/decode voice to send over the network. My doubts are: 1. The Bits_Per_Sample I use, are independent from the speex encoding/decoding? (So...can I use 8, 16, 24..and so on?) 2. If I have this situation: SAMPLE RATE.....: 8000 BITS PER SAMPLE.: 16
2010 Apr 14
2
Decoded output buffer size
Hi, in a VoIP application, the endpoint A send speex payload to B. B doesn't know how A acquire audio, it only know that the channel is narrowband so, how can B know the size of the output buffer to pass to the speex_decode()? Thanks, Daniele.
2010 Apr 14
0
Decoded output buffer size
...EEX_GET_FRAME_SIZE, > ? ? ? ? ? ? ? ? ? ?&spx_frame_size_); > > ?while (BufferFrames>0) > ?{ > ? ?speex_bits_reset(&spx_bits_); > ? ?speex_encode(spx_state_, inBuff, &spx_bits_); > ? ?nbBytes += speex_bits_write(&spx_bits_, > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?spx_enc_frame_, > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?spx_frame_size_); > ? ?inBuff+= spx_frame_size_; > ? ?BufferFrames -= spx_frame_size_; > ?} > > ?..nbBytes is 80 bytes.. > } > > > Now I send this packet over the network and, into the receiving side, I > need to recreate the origin...