search for: framesize

Displaying 20 results from an estimated 151 matches for "framesize".

Did you mean: frame_size
2007 Apr 02
1
Problems with stereo data
...peex. I am on Windows, using Microsoft Visual C++ 2005 Express Edition. Best regards, Peter. // Encoder #include <speex/speex.h> #include <speex/speex_stereo.h> #include <stdio.h> #pragma comment(lib, "libspeex.lib") int main(int argc, char* argv[]) { const int FrameSize = 320; void* State = speex_encoder_init(&speex_wb_mode); int Temp; float Tmp; Temp = 1; Tmp = 2; speex_encoder_ctl(State, SPEEX_SET_VBR, &Temp); speex_encoder_ctl(State, SPEEX_SET_VBR_QUALITY, &Tmp); FILE* fin = fopen(argv[1], "rb"); FILE* fout = fopen(argv[2], "...
2007 Apr 30
1
11025kHz and framesizes question
I have been using the Speex NB mode with an 11025 kHz signal, without adjusting the framesize, and it's been sounding just fine to me. However I was wondering what the best way to make 11025kHz would be. I also have an audio driver that uses 2kB buffers, and the NB framesize of 160 doesn't divide evenly into that so I end up having to shovel tails of buffers around which isn't t...
2009 Oct 01
0
SPEEX_PREPROCESS_SET_ECHO_STATE produces heap corruption
>jesus: > Now I see that it happens when I specify a framesize in > speex_echo_state_init greater than the one used in > speex_preprocess_state_init. > > Next combination works: > codec framesize = 160 > preprocessor framesize = 160 > eco framesize = 160 > > > Next combination DOESNT work (produces heap corruption): > codec...
2004 Aug 06
4
Framesize for UWB vs. WB encoding
Hi there. I am having a little trouble understanding the frame sizes chosen by the codec. testenc_uwb.c from the speex-1.0 source distribution has a framesize of 640 hardcoded and makes use of this value exclusively. However, a mode query on the actual codec returns 320 as a framesize for this mode. int tmp; speex_mode_query(&speex_uwb_mode, SPEEX_MODE_FRAME_SIZE, &tmp); <p>testenc_wb.c from the speex-1.0 source distribution has a...
2004 Aug 06
0
Framesize for UWB vs. WB encoding
...d 1.0.x branch). Thanks for the bug report. Jean-Marc Le mar 03/06/2003 à 01:16, Christian Buchner a écrit : > Hi there. > > I am having a little trouble understanding the frame sizes chosen > by the codec. > > testenc_uwb.c from the speex-1.0 source distribution has a framesize > of 640 hardcoded and makes use of this value exclusively. > > However, a mode query on the actual codec returns 320 as a framesize > for this mode. > > int tmp; > speex_mode_query(&speex_uwb_mode, SPEEX_MODE_FRAME_SIZE, &tmp); > > > testenc_wb.c fro...
2013 May 27
1
Empty buffer on encoder write byte
...p *time, UInt32 frames, AudioBufferList *bufferList) { UInt32 numberOfBuffers = bufferList->mNumberBuffers; for (int bufferIndex = 0; bufferIndex < numberOfBuffers ; ++bufferIndex) { AudioBuffer audioBuffer = bufferList->mBuffers[bufferIndex]; int frameSize = (samplingRate/1000) * sampleDuration; // sampling rate is 8000, sample duration is 20ms size_t count = frameSize*channels / sizeof(opus_int16); __block opus_int16 *pcmInput = calloc(count, sizeof(opus_int16)); memcpy(pcmInput, audioBuffer.mData, count * sizeof(...
2016 Jun 03
1
Opus application_mode==AUDIO, 20ms framing issue?
..., is this speech or music? What tool, what options? In general, it helps a lot if you post the sample (input and output). Cheers, Jean-Marc On 06/03/2016 12:48 PM, Kevin Connor wrote: > Hi Opus list, > > I'm noticing a discontinuity in the quality between use of 10ms and > 20ms framesize for mode=AUDIO at a bitrate of about 28000. > Quality drops audibly for voice signals when encoded at 20ms > framesize, versus quality at 10ms. This effect is mode=AUDIO only. > Using mode==VOIP shows no sig. difference between 10 and 20ms framing > at this bitrate. Pesq totally...
2007 Nov 04
3
WaveIn/WaveOut and Speex
...llowing PCM format: waveFormat.nChannels = 1; waveFormat.nSamplesPerSec = 8000; waveFormat.wBitsPerSample = 8; Once sound is aquired by the mic, I send it to Speex in a Char buffer. It looks something like this: Encode(char* inBuffer, DWORD bufferLength) ... float* input = new float[frameSize]; ZeroMemory(input, frameSize); ... for( ) { input[..] = inBuffer[..]; } ... speex_encode(enc_state, input, &bits); int bytesWritten = speex_bits_nbytes(&bits); speex_bits_write(&bits, encBuffer, bytesWritten); Then, my decoding routine accepts the char buffer tha...
2004 Aug 06
0
[PATCH] speex-xmms endian problems fixed
...freq, speex_fs->channels) == 0) { fprintf(stderr, SELF ": audio error\n"); return; @@ -427,7 +427,7 @@ while (speex_ip.output->buffer_free() < (speex_fs->framesize * sizeof(short)) && speex_fs->playing) xmms_usleep(10000); - speex_ip.add_vis_pcm(speex_ip.output->written_time(), FMT_S16_LE, speex_fs->channels, speex_fs->framesize * sizeof(short), &output); +...
2013 Jul 11
1
inbandfec is adding samples
...add audio? I'm using opus_demo for this. Here's the steps (I have my test audio in it's own folder, parallel with opus and sox): make raw audio: ../sox-14.4.1/sox music_orig.wav -t raw music_orig.raw try a few different encodings: ../opus-1.1-alpha/opus_demo audio 48000 2 128000 -framesize 2.5 -loss 10 -inbandfec music_orig.raw music_orig_f2.5_b128000_lr10_fec.raw ../opus-1.1-alpha/opus_demo audio 48000 2 128000 -framesize 2.5 -loss 10 music_orig.raw music_orig_f2.5_b128000_lr10.raw ../opus-1.1-alpha/opus_demo audio 48000 2 128000 -framesize 20 -loss 10 -inbandfec music_orig.raw mu...
2009 Sep 29
1
SPEEX_PREPROCESS_SET_ECHO_STATE produces heap corruption
Hi, when I use preprocessor with AEC, VC++ alerts me about heap corruption. I have protected speex_echo_playback, speex_echo_capture and speex_preprocess_run with mutexes, to avoid echo_state being used at the same time, but it still happens. Any help about this ussue? Thank you.
2005 May 25
3
Speex on TI C6x, Problem with TI C5x Patch
...AYS) || defined (USE_ALLOCA) st = (EncState*)speex_alloc(sizeof(EncState)); st->stack = NULL; #else st = (EncState*)speex_alloc(sizeof(EncState)+8000*sizeof(spx_sig_t)); st->stack = ((char*)st) + sizeof(EncState); #endif if (!st) return NULL; st->mode=m; st->frameSize = mode->frameSize; st->windowSize = st->frameSize*3/2; st->nbSubframes=mode->frameSize/mode->subframeSize; st->subframeSize=mode->subframeSize; st->lpcSize = mode->lpcSize; st->gamma1=mode->gamma1; st->gamma2=mode->gamma2; st->min_pi...
2005 Jun 07
1
Echo canceller: residue value
Hi Jean-Marc, For the residue in the echo_cancel function I pass in a pointer to an array of floats. First I used an array the size of the framesize, but I discovered this causes crashes because the echo_cancel funtion writes framesize+1 floats to the pointer. I find this plus one strange, since almost all things are exactly the framesize. Is this an error in the echo_cancel function or simply an exception? Maybe you should define in the manual...
2003 Jul 14
0
payload framesize
is there any particular reason why there is no option to configure the codec framesizes in iax2 ? It would come rathrer handy to decide if you want less bandwidth or more robustness on the payload side ... -- Michael Bielicki Managing Director TAAN Consultants Ltd http://www.global-gateway.net/ -------------------------------------------------------------------------- This corres...
2007 Nov 04
2
WaveIn/WaveOut and Speex
...c = 8000; > > waveFormat.wBitsPerSample = 8; > > > > Once sound is aquired by the mic, I send it to Speex in a Char buffer. > It looks something like this: > > > > Encode(char* inBuffer, DWORD bufferLength) > > ... > > float* input = new float[frameSize]; > > ZeroMemory(input, frameSize); > > ... > > for( ) > > { > > input[..] = inBuffer[..]; > > } > > ... > > speex_encode(enc_state, input, &bits); > > int bytesWritten = speex_bits_nbytes(&bits); > > speex_bits_write(...
2004 Aug 06
1
framesize v/s audio buffer size
Hello all.. Im new to speex, and im trying to use it in my application to transmit speech over multicast. I've done some test, but i have some questions. First, I'm reading audio with a buffer of 512 bytes, but the speex frames are 160 (using SPEEX_GET_FRAME_SIZE), so i have to manually divide the 512 bytes (256 16bit samples) in blocks of 160 float samples. Using 1 frame, i dispatch
2004 Aug 06
1
Framesize for UWB vs. WB encoding
> Oops... You've just found a bug. Seems like you're the first one to use > that call. Anyway, it's now fixed in CVS (both trunk and 1.0.x branch). > Thanks for the bug report. Hmm, the call to speex_encode_stereo() takes the frame size as an an argument - and this call generates bits ;) So possibly my bitrate table shows wrong values in the stereo cases. Hmm... Where would
2006 May 20
2
Size of each block in a circular buffer and the sample rate
int frameSize; speex_encoder_ctl(enc_state, SPEEX_GET_FRAME_SIZE, &frameSize); Is frameSize in bytes? If not, what unit is it in? I need to know so I know how big to make each element in my circular buffer. Also, do I need to call speex_encoder_ctl( enc_state, SPEEX_SET_SAMPLING_RATE, &sampleRate )...
2004 Sep 10
0
getting framesize in client
--- Miroslav Lichvar <lichvarm@phoenix.inf.upol.cz> wrote: > I have few notes: > > It seems there is changed API in CVS again. So, what about adding > function like > unsigned FLAC__format_frame_size(const FLAC__Frame *frame) > which returns size of the frame in bytes. This can be useful, for > example, in xmms plugin to display current bitrate like vorbis plugin >
2004 Sep 10
0
getting framesize in client
--- Miroslav Lichvar <lichvarm@phoenix.inf.upol.cz> wrote: > On Fri, Nov 08, 2002 at 12:39:52PM -0800, Josh Coalson wrote: > > --- Miroslav Lichvar <lichvarm@phoenix.inf.upol.cz> wrote: > > > I have few notes: > > > > > > It seems there is changed API in CVS again. So, what about adding > > > function like > > > unsigned