⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pesqpar.h

📁 pesq算法
💻 H
📖 第 1 页 / 共 2 页
字号:
/*****************************************************************************

Perceptual Evaluation of Speech Quality (PESQ)
ITU-T Draft Recommendation P.862.
Version 1.1 - 15 November 2000.

NOTICE

The Perceptual Evaluation of Speech Quality (PESQ) algorithm and the copyright
therein is the property of British Telecommunications plc and Royal KPN NV,
and is protected by UK, US and other patents.  Permission is granted to use
PESQ for the purpose of evaluation of ITU-T recommendation P.862.  Any other
use of this software or the PESQ algorithm requires a license, which may be
obtained from:

OPTICOM GmbH
Michael Keyhl, Am Weichselgarten 7, D- 91058 Erlangen, Germany
Phone: +49 9131 691 160     Fax: +49 9131 691 325     E-mail: info@opticom.de

PsyTechnics Limited
Richard Reynolds, B54 Adastral Park, Ipswich IP5 3RE, UK
Phone: +44 1473 644 730 or +44 7730 426 251    Fax: +44 1473 645 663
E-mail: richard.reynolds@psytechnics.com

Patent-only licences should be obtained from Opticom. PsyTechnics or Opticom
can provide licences, and further information, for other PESQ products.

Further information is also available from: www.pesq.org

By using this software you acknowledge that PESQ is protected by copyright
and by patents and is being made available to you for the purpose of
evaluation of ITU-T Recommendation P.862.

You must not use PESQ for any other purpose without first obtaining a written
license from British Telecommunications plc and Royal KPN NV, from their
agents listed above.

You must not disclose, reproduce or otherwise release PESQ to any third
party without the prior written permission of British Telecommunications plc
and Royal KPN NV.

Authors:
  Antony Rix (BT) <antony.rix@psytechnics.com>
  Mike Hollier (BT)
  Andries Hekstra (KPN Research)
  John Beerends (KPN Research)

*****************************************************************************/

long Fs = 0L;

long Fs_16k = 16000L;

long Fs_8k = 8000L;

long Downsample;

long Downsample_16k = 64;

long Downsample_8k = 32;

long Align_Nfft;

long Align_Nfft_16k = 1024;

long Align_Nfft_8k = 512;

long InIIR_Nsos;

long InIIR_Nsos_8k = 8L;
float InIIR_Hsos_8k[LINIIR] =
 { 0.885535424f,        -0.885535424f,  0.000000000f,   -0.771070709f,  0.000000000f,
    0.895092588f,       1.292907193f,   0.449260174f,   1.268869037f,   0.442025372f,
    4.049527940f,       -7.865190042f,  3.815662102f,   -1.746859852f,  0.786305963f,
    0.500002353f,       -0.500002353f,  0.000000000f,   0.000000000f,   0.000000000f,
    0.565002834f,       -0.241585934f,  -0.306009671f,  0.259688659f,   0.249979657f,
    2.115237288f,       0.919935084f,   1.141240051f,   -1.587313419f,  0.665935315f,
    0.912224584f,       -0.224397719f,  -0.641121413f,  -0.246029464f,  -0.556720590f,
    0.444617727f,       -0.307589321f,  0.141638062f,   -0.996391149f,  0.502251622f };

long InIIR_Nsos_16k = 12L;
float InIIR_Hsos_16k[LINIIR] =
 { 0.325631521f,        -0.086782860f,  -0.238848661f,  -1.079416490f,  0.434583902f,
   0.403961804f,        -0.556985881f,  0.153024077f,   -0.415115835f,  0.696590244f,
   4.736162769f,        3.287251046f,   1.753289019f,   -1.859599046f,  0.876284034f,
   0.365373469f,        0.000000000f,   0.000000000f,   -0.634626531f,  0.000000000f,
   0.884811506f,        0.000000000f,   0.000000000f,   -0.256725271f,  0.141536777f,
   0.723593055f,        -1.447186099f,  0.723593044f,   -1.129587469f,  0.657232737f,
   1.644910855f,        -1.817280902f,  1.249658063f,   -1.778403899f,  0.801724355f,
   0.633692689f,        -0.284644314f,  -0.319789663f,  0.000000000f,   0.000000000f,
   1.032763031f,        0.268428979f,   0.602913323f,   0.000000000f,   0.000000000f,
   1.001616361f,        -0.823749013f,  0.439731942f,   -0.885778255f,  0.000000000f,
   0.752472096f,        -0.375388990f,  0.188977609f,   -0.077258216f,  0.247230734f,
   1.023700575f,        0.001661628f,   0.521284240f,   -0.183867259f,  0.354324187f };


int nr_of_hz_bands_per_bark_band_8k [42] = { 1,    1,    1,    1,    1,    
                                                1,    1,    1,    2,    1,    
                                                1,    1,    1,    1,    2,    
                                                1,    1,    2,    2,    2,    
                                                2,    2,    2,    2,    2,    
                                                3,    3,    3,    3,    4,    
                                                3,    4,    5,    4,    5,    
                                                6,    6,    7,    8,    9,    
                                                9,    11,    };

double centre_of_band_bark_8k [42] = { 0.078672,     0.316341,     0.636559,     0.961246,     1.290450,     
                                        1.624217,     1.962597,     2.305636,     2.653383,     3.005889,     
                                        3.363201,     3.725371,     4.092449,     4.464486,     4.841533,     
                                        5.223642,     5.610866,     6.003256,     6.400869,     6.803755,     
                                        7.211971,     7.625571,     8.044611,     8.469146,     8.899232,     
                                        9.334927,     9.776288,     10.223374,     10.676242,     11.134952,     
                                        11.599563,     12.070135,     12.546731,     13.029408,     13.518232,     
                                        14.013264,     14.514566,     15.022202,     15.536238,     16.056736,     
                                        16.583761,     17.117382};

double centre_of_band_hz_8k [42] = { 7.867213,     31.634144,     63.655895,     96.124611,     129.044968,     
                                    162.421738,     196.259659,     230.563568,     265.338348,     300.588867,     
                                    336.320129,     372.537140,     409.244934,     446.448578,     484.568604,     
                                    526.600586,     570.303833,     619.423340,     672.121643,     728.525696,     
                                    785.675964,     846.835693,     909.691650,     977.063293,     1049.861694,     
                                    1129.635986,     1217.257568,     1312.109497,     1412.501465,     1517.999390,     
                                    1628.894165,     1746.194336,     1871.568848,     2008.776123,     2158.979248,     

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -