[Subject Prev][Subject Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hts-users:00740] Re: Is it possible to fix corrupted .cmp files


Hi,

Thank you, it worked!

I now added

while ( $FFTLength < $framelength*$sampfreq ) {
    $FFTLength *= 2;
}

which will set the correct value automatically.

br,
  Nicholas

> Hi,
>
> Nicholas Volk wrote (2007/07/04 20:54):
>
>> # speech analysis setting ===============
>> $sampfreq    = 44100;  # 16kHz sampling frequency
>> $framelength = 0.025;  # 25ms window length
>> $frameshift  = 0.005;  # 5ms frame shift
>> $windowtype  = 0;      # window type
>> $normtype    = 1;      # normalization of window
>> $FFTLength   = 512;    # FFT length for Mel-cepstral analysis
>> $freqwarp    = 0.42;   # frequency warping for mel
>> if ( $sampfreq == 8000 ) { $freqwarp = 0.31; }
>> if ( $sampfreq == 22050 ) { $freqwarp = 0.45; }
>> if ( $sampfreq == 44100 ) { $freqwarp = 0.45; }
>> $mceporder   = 28;     # order of Mel-cepstral analysis
>
> I think you should set $FFTLength = 2048 because in the above setting
> $FFTlength is shorter than $framelength * $sampfreq = 1102.5 (window
> length).
>
> Regards,
>
> Heiga ZEN (Byung Ha CHUN)
>
> --
> ------------------------------------------------
>  Heiga ZEN     (in Japanese pronunciation)
>  Byung Ha CHUN (in Korean pronunciation)
>
>  Department of Computer Science and Engineering
>  Nagoya Institute of Technology
>  Gokiso-cho, Showa-ku, Nagoya 466-8555 Japan
>
>  http://www.sp.nitech.ac.jp/~zen
> ------------------------------------------------
>



References
[hts-users:00733] Is it possible to fix corrupted .cmp files, Zuko Fani
[hts-users:00734] Re: Is it possible to fix corrupted .cmp files, Heiga ZEN (Byung Ha CHUN)
[hts-users:00735] Re: Is it possible to fix corrupted .cmp files, Nicholas Volk
[hts-users:00736] Re: Is it possible to fix corrupted .cmp files, Heiga ZEN (Byung Ha CHUN)
[hts-users:00737] Re: Is it possible to fix corrupted .cmp files, Nicholas Volk
[hts-users:00738] Re: Is it possible to fix corrupted .cmp files, Heiga ZEN (Byung Ha CHUN)