search for: subframesize

Displaying 20 results from an estimated 25 matches for "subframesize".

2005 May 25
3
Speex on TI C6x, Problem with TI C5x Patch
...)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_pitch=mode->pitchStart; st->max_pitch=mode->pitchEnd; st->lag_factor=mode->lag_factor; st->lpc_floor = mo...
2005 Feb 19
2
memory usage
...*)speex_alloc(sizeof(DecState)+4000*sizeof(spx_sig_t)); /* snip */ } I tried to reduce the stacksize from 8000/4000 to say 2000/1000, and reduce buffer size to 160 bytes: src/modes.c: /* Default mode for narrowband */ static const SpeexNBMode nb_mode = { 160, /*frameSize*/ 40, /*subframeSize*/ 10, /*lpcSize*/ 640, /*bufSize*/ <--------- reduce to 160 this does not work, there are various crashes in strange places which looks like its caused by stack overflow or data corruption. question is; are there any clean way of reducing memory usage? the stack at the...
2010 Oct 19
3
Increasing the speed of speex playback
Hi. I'm Bill Cox, and I volunteer a bit for the Vinux project, which is Linux for people with vision impairments. Most blind users use a closed-source speech synthesis tool called voxin, as it's very easy to understand at high speed. I would like to make TTS synthesizers based on large recorded vocabularies of actual speech, but to make it useful for the blind, I need to be able to
2010 Oct 19
3
Increasing the speed of speex playback
...<waywardgeek at gmail.com> a ?crit?: > I was able to easily hack in an option to play back at different > speeds. For example, using "speexdec --speed 2.0 file.enc file.wav" > plays back encoded file.enc at 2X speed. What I did was divide > st->frameSize and st->subFrameSize by the speedup, and added a > SPEEX_SET_SPEED decoder control for the nb_celp decoder. This > produced speech that was 2X faster than the original. > > However, the quality is very poor. This is where it gets harder for > me, as the quality is impacted by so many parts of the code....
2010 Oct 19
3
Increasing the speed of speex playback
...Cox <waywardgeek at gmail.com> wrote: > I was able to easily hack in an option to play back at different > speeds. ?For example, using "speexdec --speed 2.0 file.enc file.wav" > plays back encoded file.enc at 2X speed. ?What I did was divide > st->frameSize and st->subFrameSize by the speedup, and added a > SPEEX_SET_SPEED decoder control for the nb_celp decoder. ?This > produced speech that was 2X faster than the original. > > However, the quality is very poor. ?This is where it gets harder for > me, as the quality is impacted by so many parts of the code....
2007 Apr 30
1
11025kHz and framesizes question
...efficient. So I wondered if there was a clean way I could change the NB mode buffer size to be 256, which would be a little closer 20ms at 11025 but also be divisible by 2048. Should I add a new custom mode to the modes array or should I mess with the NB mode? Any advice on what I should do with subFrameSize and the other parameters in SpeexNBMode (if anything) if I change the framesize to be 256? Thanks, Dave
2008 Feb 15
1
Can Speex frame size be expand from 160 to 320 for NB?
Thanks Jean-Marc. I do want to change Speex frame size to 320. In this case, I've changed frame size in init and modes (include framesize and subframesize). However, the audio quality becomes bad. It seems something else needs to be changed as well. Could you give a clue? Thanks, Dennis -----Original Message----- From: Jean-Marc Valin [mailto:jean-marc.valin@usherbrooke.ca] Sent: Wednesday, February 13, 2008 4:22 PM To: Dennis Liu Cc: speex-dev@x...
2006 Jan 19
0
Compile error (svn 10743)
...engineer. ============================================================================= 1. modes.c - nb_mode_new() SpeexNBMode * nb_mode; nb_mode = (SpeexNBMode *) speex_alloc (sizeof (SpeexNBMode)); if (nb_mode == NULL) return NULL; nb_mode->frameSize = frameSize; nb_mode->subframeSize = subframeSize; nb_mode->lpcSize = lpcSize; nb_mode->bufSize = bufSize; <<<--- 1>d:\voip\mod_speexrefcode\modes_noglobals.c(198) : error C2039: 'bufSize' : is not a member of 'SpeexNBMode' 2. mdf.c - speex_echo_cancel() /* Update weight to prevent...
2007 Sep 13
2
innov_save, what is it? why does it hurt me so?
...ing my data with 1s and tried running it. when I filled it with 1's it never worked. I found innov_save will write over memory it shouldn't be when I fill memory with 1's but not when I fill it with zeros. When my DSP gets to this code chunk: if (innov_save){ for (i=0;i<st->subframeSize;i++) innov_save[i] = EXTRACT16(PSHR32(innov[i], SIG_SHIFT)); } it will just start filling data in, which it shouldn't. I see that innov_save is set at the beginning of a for loop at: for (sub=0;sub<st->nbSubframes;sub++) { int offset; spx_word16_t *exc; spx_wor...
2006 Jan 19
1
Compile error (svn 10743)
...engineer. ============================================================================= 1. modes.c - nb_mode_new() SpeexNBMode * nb_mode; nb_mode = (SpeexNBMode *) speex_alloc (sizeof (SpeexNBMode)); if (nb_mode == NULL) return NULL; nb_mode->frameSize = frameSize; nb_mode->subframeSize = subframeSize; nb_mode->lpcSize = lpcSize; nb_mode->bufSize = bufSize; <<<--- 1>d:\voip\mod_speexrefcode\modes_noglobals.c(198) : error C2039: 'bufSize' : is not a member of 'SpeexNBMode' 2. mdf.c - speex_echo_cancel() /* Update weight to prevent...
2007 Aug 06
2
11kbps narrowband on a 24bit DSP
Hi, I am using speex 1.2beta2 on a 24bit DSP that has a severe program and data space limitations. I am only interested in the speex decoder for 11kbps narrowband implementation. I am using the following parameters and structures 160, /*frameSize*/ 40, /*subframeSize*/ 10, /*lpcSize*/ 17, /*pitchStart*/ 144, /*pitchEnd*/ /* 11 kbps medium bit-rate mode */ static const SpeexSubmode nb_submode4 = { -1, 0, 1, 0, /*LSP quantization*/ lsp_quant_lbr, lsp_unquant_lbr, /*Pitch quantization*/ pitch_search_3ta...
2007 Jul 23
2
Shoehorning speex is confusing a newbie
...PEEX_SET_MODE in there too but it just got overwritten by the set mode in the encode function. So I thought I'd try to force it into mode 3 and see what happens, and I got A result, but when I try to decode it my decode stage gets stuck in an infinite loop: while (st->voc_offset<st->subframeSize) { if (st->voc_offset>=0) exc[st->voc_offset]=sqrt(1.0*ol_pitch); st->voc_offset+=ol_pitch; } because both voc_offset and ol_pitch is = 0 because this code is never entered: if (SUBMODE(lbr_pitch)!=-1) {...
2010 Oct 20
1
Increasing the speed of speex playback
...gt; ?wrote: >>> I was able to easily hack in an option to play back at different >>> speeds. ?For example, using "speexdec --speed 2.0 file.enc file.wav" >>> plays back encoded file.enc at 2X speed. ?What I did was divide >>> st->frameSize and st->subFrameSize by the speedup, and added a >>> SPEEX_SET_SPEED decoder control for the nb_celp decoder. ?This >>> produced speech that was 2X faster than the original. >>> >>> However, the quality is very poor. ?This is where it gets harder for >>> me, as the quality i...
2005 Feb 19
0
memory usage
...* snip */ > } > > I tried to reduce the stacksize from 8000/4000 to say 2000/1000, > and reduce buffer size to 160 bytes: > > > src/modes.c: > > /* Default mode for narrowband */ > static const SpeexNBMode nb_mode = { > 160, /*frameSize*/ > 40, /*subframeSize*/ > 10, /*lpcSize*/ > 640, /*bufSize*/ <--------- reduce to 160 > > > this does not work, there are various crashes in strange places which > looks like its caused by stack overflow or data corruption. > > question is; are there any clean way of...
2007 Sep 13
0
innov_save, what is it? why does it hurt me so?
...ommon cause is uninitialised data. I found innov_save will write over memory it shouldn't be when > I fill memory with 1's but not when I fill it with zeros. Which is normal, see below. > When my DSP > gets to this code chunk: > if (innov_save){ > for (i=0;i<st->subframeSize;i++) > innov_save[i] = EXTRACT16(PSHR32(innov[i], SIG_SHIFT)); > } This bit of code is for copying the innov variable to a buffer owned by the wideband decoder -- but only if there is actually a wideband decoder. > it will just start filling data in, which it shouldn't. I see...
2008 Feb 13
2
Can Speex frame size be expand from 160 to 320 for NB?
Thank you so much for your quick reply. It looks quite easy to change it. But, how about those codebook and excite table? I notice them have been fixed as the length of 160. Thanks again, Dennis -----Original Message----- From: Jean-Marc Valin [mailto:jean-marc.valin@usherbrooke.ca] Sent: Wednesday, February 13, 2008 4:03 PM To: Dennis Liu Cc: speex-dev@xiph.org Subject: Re: [Speex-dev] Can
2010 Oct 19
0
Increasing the speed of speex playback
I was able to easily hack in an option to play back at different speeds. For example, using "speexdec --speed 2.0 file.enc file.wav" plays back encoded file.enc at 2X speed. What I did was divide st->frameSize and st->subFrameSize by the speedup, and added a SPEEX_SET_SPEED decoder control for the nb_celp decoder. This produced speech that was 2X faster than the original. However, the quality is very poor. This is where it gets harder for me, as the quality is impacted by so many parts of the code. Can anyone guess which...
2010 Oct 20
0
Increasing the speed of speex playback
...ek at gmail.com> wrote: >> I was able to easily hack in an option to play back at different >> speeds. For example, using "speexdec --speed 2.0 file.enc file.wav" >> plays back encoded file.enc at 2X speed. What I did was divide >> st->frameSize and st->subFrameSize by the speedup, and added a >> SPEEX_SET_SPEED decoder control for the nb_celp decoder. This >> produced speech that was 2X faster than the original. >> >> However, the quality is very poor. This is where it gets harder for >> me, as the quality is impacted by so man...
2010 Oct 20
0
Increasing the speed of speex playback
...mail.com> a ?crit?: > >> I was able to easily hack in an option to play back at different >> speeds. ?For example, using "speexdec --speed 2.0 file.enc file.wav" >> plays back encoded file.enc at 2X speed. ?What I did was divide >> st->frameSize and st->subFrameSize by the speedup, and added a >> SPEEX_SET_SPEED decoder control for the nb_celp decoder. ?This >> produced speech that was 2X faster than the original. >> >> However, the quality is very poor. ?This is where it gets harder for >> me, as the quality is impacted by so man...
2007 Aug 06
0
11kbps narrowband on a 24bit DSP
...24bit DSP that has a severe program and > data space limitations. I am only interested in the speex decoder for > 11kbps narrowband implementation. > > > > I am using the following parameters and structures > > > > 160, /*frameSize*/ > > 40, /*subframeSize*/ > > 10, /*lpcSize*/ > > 17, /*pitchStart*/ > > 144, /*pitchEnd*/ > > > > /* 11 kbps medium bit-rate mode */ > > static const SpeexSubmode nb_submode4 = { > > -1, > > 0, > > 1, > > 0, > >...