search for: speex_resampler_skip_zeros

Displaying 14 results from an estimated 14 matches for "speex_resampler_skip_zeros".

2008 Feb 18
2
Speex Resampler quality
...it's just not compensating for the delay introduced by the resampler. Because higher quality means higher delay, you'd find that PEAQ doesn't like it when you increase the resampler quality. You can easily remove the delay (well, not remove it but skip the zeros it produces) by calling speex_resampler_skip_zeros() once, before you start the processing." * *When I use speex_resampler_skip_zeros() for 44100 to 48000 conversion, I got a very bad quality value when I used PEAQ. Do you suggest me not to use this function for fractional rate conversions? Regards, * On Feb 15, 2008 2:23 AM, Jean-Marc Vali...
2008 Feb 14
2
Speex Resampler quality
Hi, I just built a sample application with speex resampler in linux and I tried to resample 8K sine wave tone mono to 48k using speex_resample_process_int. I am using a tool called EAQUAL for audio quality. I find the quality of Speex resampler to be decreasing when I increase the quality q of the resampler init function. Can some one give me pointers regarding this?? As per the API, if the
2010 Nov 10
0
bug fix for speex_resampler_reset_mem?
...aveform twice, with a reset() call in the middle, as follows: short *input_data = read_waveform_as_linear(infileName, &rate, &num_samples, &num_channels); SpeexResamplerState *state = speex_resampler_init_frac(num_channels, in_rate, out_rate, in_rate, out_rate, quality, &error); speex_resampler_skip_zeros(state); speex_resampler_process_int(state, 0, input_data, ...) write_waveform(...) speex_resampler_reset_mem(m_resampler_state); speex_resampler_skip_zeros(m_resampler_state); speex_resampler_process_int(state, 0, input_data, ...) write_waveform(...) speex_resampler_destroy(state); When I run it t...
2008 Feb 18
0
Speex Resampler quality
...ompensating for the delay > introduced by the resampler. Because higher quality means higher delay, > you'd find that PEAQ doesn't like it when you increase the resampler > quality. You can easily remove the delay (well, not remove it but skip > the zeros it produces) by calling speex_resampler_skip_zeros() once, > before you start the processing." > * > *When I use speex_resampler_skip_zeros() for 44100 to 48000 conversion, I > got a very bad quality value when I used PEAQ. Do you suggest me not to use > this function for fractional rate conversions?* Doesn't this tell yo...
2007 Mar 22
1
[SPAM] RE: Encoding audio sampled at 44.1 khz?
...st of all, declare the resampler state SpeexResamplerState* State = speex_resampler_init(2, 44100, 22050, 5); short in[ReadSize]; short out[ReadSize]; FILE* fin = fopen(argv[1], "rb"); FILE* fout = fopen(argv[2], "wb"); unsigned InLength = ReadSize, OutLength = ReadSize;; speex_resampler_skip_zeros(State); while (1) { // Read in the short data fread(&in, sizeof(short), ReadSize, fin); if (feof(fin)) break; speex_resampler_process_interleaved_int(State, in, &InLength, out, &OutLength); fwrite(&out, sizeof(short), OutLength, fout); } speex_resampler_destroy(State); fclo...
2008 Feb 14
0
Speex Resampler quality
...it's just not compensating for the delay introduced by the resampler. Because higher quality means higher delay, you'd find that PEAQ doesn't like it when you increase the resampler quality. You can easily remove the delay (well, not remove it but skip the zeros it produces) by calling speex_resampler_skip_zeros() once, before you start the processing. > As per the API, if the quality factor > is increased, it is assumed that the quality should increase which is no > the way I observed with my console application Did you actually *listen* to the result? > Can some one give me pointers to any...
2010 Dec 03
0
Problems with Speex Resamplers
...https://bugzilla.gnome.org/show_bug.cgi?id=636294 to report a GST problem but it very much is a problem in either Speex or our use of it. The above contains some test cases to recreate the issue easily via gst but it would be possible to cause this via other systems too. I have tried: 1. Calling speex_resampler_skip_zeros() on init and reset: no change. 2. Applying a fix found here. http://thread.gmane.org/gmane.comp.audio.compression.speex.devel/6833 (no replies on the speex-dev list to that one... not sure if it's needed etc. Nothing above seemed to help. Any advice or debugging tips welcome. The trivial a...
2019 Nov 05
0
【SPEEX】 use speex resample make noise
...fp = fopen("/data/zhou.wav", "rb+"); >     FILE *fp2 = fopen("/data/zhou2.wav", "ab+"); >     spx_int16_t inbuff[640] = {0}; >     spx_int16_t outbuff[1920] = {0}; >     spx_uint32_t inlen = 640; >     spx_uint32_t outlen = 1920; >     speex_resampler_skip_zeros(speex_resampler); >     while (1) >     { >         int len = fread(inbuff, 2, 320, fp); >         if (len <= 0) >         { >             break; >         } >         int ret = speex_resampler_process_int(speex_resampler, >                                    ...
2019 Nov 06
0
【SPEEX】 use speex resample make noise
...; >      FILE *fp2 = fopen("/data/zhou2.wav", "ab+"); > >      spx_int16_t inbuff[640] = {0}; > >      spx_int16_t outbuff[1920] = {0}; > >      spx_uint32_t inlen = 640; > >      spx_uint32_t outlen = 1920; > >      speex_resampler_skip_zeros(speex_resampler); > >      while (1) > >      { > >          int len = fread(inbuff, 2, 320, fp); > >          if (len <= 0) > >          { > >              break; > >          } > >          int ret = speex_...
2008 Mar 29
0
GCC/ELF Visibility patch
...ate *st) { return st->filt_len / 2; } -int speex_resampler_get_output_latency(SpeexResamplerState *st) +EXPORT int speex_resampler_get_output_latency(SpeexResamplerState *st) { return ((st->filt_len / 2) * st->den_rate + (st->num_rate >> 1)) / st->num_rate; } -int speex_resampler_skip_zeros(SpeexResamplerState *st) +EXPORT int speex_resampler_skip_zeros(SpeexResamplerState *st) { spx_uint32_t i; for (i=0;i<st->nb_channels;i++) @@ -1151,7 +1151,7 @@ return RESAMPLER_ERR_SUCCESS; } -int speex_resampler_reset_mem(SpeexResamplerState *st) +EXPORT int speex_resampler_...
2010 Dec 03
2
Problems with Speex Resamplers
...g.cgi?id=636294 to > report a GST problem but it very much is a problem in either Speex or > our use of it. The above contains some test cases to recreate the issue > easily via gst but it would be possible to cause this via other systems too. > > > I have tried: > 1. Calling speex_resampler_skip_zeros() on init and reset: no change. > 2. Applying a fix found here. > http://thread.gmane.org/gmane.comp.audio.compression.speex.devel/6833 > (no replies on the speex-dev list to that one... not sure if it's needed > etc. > > > Nothing above seemed to help. > > Any advi...
2008 Mar 29
2
GCC/ELF Visibility patch (fwd)
...ate *st) { return st->filt_len / 2; } -int speex_resampler_get_output_latency(SpeexResamplerState *st) +EXPORT int speex_resampler_get_output_latency(SpeexResamplerState *st) { return ((st->filt_len / 2) * st->den_rate + (st->num_rate >> 1)) / st->num_rate; } -int speex_resampler_skip_zeros(SpeexResamplerState *st) +EXPORT int speex_resampler_skip_zeros(SpeexResamplerState *st) { spx_uint32_t i; for (i=0;i<st->nb_channels;i++) @@ -1151,7 +1151,7 @@ return RESAMPLER_ERR_SUCCESS; } -int speex_resampler_reset_mem(SpeexResamplerState *st) +EXPORT int speex_resampler_...
2007 Mar 21
2
Encoding audio sampled at 44.1 khz?
Hi everyone, I recently began using libspeex 1.2 Beta 1 on Windows using MS Visual C++. I have gotten a decoder and an encoder to work fine from the excellent sample code posted at the website. But I face a problem. I am working on using Speex in a program to play and create audio books encoded using Speex (currently testing it only; for these tests, I do not use Ogg to save the encoded
2008 May 03
0
Resampler, memory only variant
...y) #define speex_resampler_get_output_latency CAT_PREFIX(RANDOM_PREFIX,_resampler_get_output_latency) +#define speex_resampler_set_buffer_size CAT_PREFIX(RANDOM_PREFIX,_resampler_set_buffer_size) +#define speex_resampler_get_buffer_size CAT_PREFIX(RANDOM_PREFIX,_resampler_get_buffer_size) #define speex_resampler_skip_zeros CAT_PREFIX(RANDOM_PREFIX,_resampler_skip_zeros) #define speex_resampler_reset_mem CAT_PREFIX(RANDOM_PREFIX,_resampler_reset_mem) #define speex_resampler_strerror CAT_PREFIX(RANDOM_PREFIX,_resampler_strerror) @@ -312,6 +314,20 @@ */ int speex_resampler_get_output_latency(SpeexResamplerState *st...