noise_gmm_tables.h 4.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /*
  2. * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
  3. *
  4. * Use of this source code is governed by a BSD-style license
  5. * that can be found in the LICENSE file in the root of the source
  6. * tree. An additional intellectual property rights grant can be found
  7. * in the file PATENTS. All contributing project authors may
  8. * be found in the AUTHORS file in the root of the source tree.
  9. */
  10. // GMM tables for inactive segments. Generated by MakeGmmTables.m.
  11. #ifndef MODULES_AUDIO_PROCESSING_VAD_NOISE_GMM_TABLES_H_
  12. #define MODULES_AUDIO_PROCESSING_VAD_NOISE_GMM_TABLES_H_
  13. namespace webrtc {
  14. static const int kNoiseGmmNumMixtures = 12;
  15. static const int kNoiseGmmDim = 3;
  16. static const double
  17. kNoiseGmmCovarInverse[kNoiseGmmNumMixtures][kNoiseGmmDim][kNoiseGmmDim] = {
  18. {{7.36219567592941e+00, 4.83060785179861e-03, 1.23335151497610e-02},
  19. {4.83060785179861e-03, 1.65289507047817e-04, -2.41490588169997e-04},
  20. {1.23335151497610e-02, -2.41490588169997e-04, 6.59472060689382e-03}},
  21. {{8.70265239309140e+00, -5.30636201431086e-04, 5.44014966585347e-03},
  22. {-5.30636201431086e-04, 3.11095453521008e-04, -1.86287206836035e-04},
  23. {5.44014966585347e-03, -1.86287206836035e-04, 6.29493388790744e-04}},
  24. {{4.53467851955055e+00, -3.92977536695197e-03, -2.46521420693317e-03},
  25. {-3.92977536695197e-03, 4.94650752632750e-05, -1.08587438501826e-05},
  26. {-2.46521420693317e-03, -1.08587438501826e-05, 9.28793975422261e-05}},
  27. {{9.26817997114275e-01, -4.03976069276753e-04, -3.56441427392165e-03},
  28. {-4.03976069276753e-04, 2.51976251631430e-06, 1.46914206734572e-07},
  29. {-3.56441427392165e-03, 1.46914206734572e-07, 8.19914567685373e-05}},
  30. {{7.61715986787441e+00, -1.54889041216888e-04, 2.41756280071656e-02},
  31. {-1.54889041216888e-04, 3.50282550461672e-07, -6.27251196972490e-06},
  32. {2.41756280071656e-02, -6.27251196972490e-06, 1.45061847649872e-02}},
  33. {{8.31193642663158e+00, -3.84070508164323e-04, -3.09750630821876e-02},
  34. {-3.84070508164323e-04, 3.80433432277336e-07, -1.14321142836636e-06},
  35. {-3.09750630821876e-02, -1.14321142836636e-06, 8.35091486289997e-04}},
  36. {{9.67283151270894e-01, 5.82465812445039e-05, -3.18350798617053e-03},
  37. {5.82465812445039e-05, 2.23762672000318e-07, -7.74196587408623e-07},
  38. {-3.18350798617053e-03, -7.74196587408623e-07, 3.85120938338325e-04}},
  39. {{8.28066236985388e+00, 5.87634508319763e-05, 6.99303090891743e-03},
  40. {5.87634508319763e-05, 2.93746018618058e-07, 3.40843332882272e-07},
  41. {6.99303090891743e-03, 3.40843332882272e-07, 1.99379171190344e-04}},
  42. {{6.07488998675646e+00, -1.11494526618473e-02, 5.10013111123381e-03},
  43. {-1.11494526618473e-02, 6.99238879921751e-04, 5.36718550370870e-05},
  44. {5.10013111123381e-03, 5.36718550370870e-05, 5.26909853276753e-04}},
  45. {{6.90492021419175e+00, 4.20639355257863e-04, -2.38612752336481e-03},
  46. {4.20639355257863e-04, 3.31246767338153e-06, -2.42052288150859e-08},
  47. {-2.38612752336481e-03, -2.42052288150859e-08, 4.46608368363412e-04}},
  48. {{1.31069150869715e+01, -1.73718583865670e-04, -1.97591814508578e-02},
  49. {-1.73718583865670e-04, 2.80451716300124e-07, 9.96570755379865e-07},
  50. {-1.97591814508578e-02, 9.96570755379865e-07, 2.41361900868847e-03}},
  51. {{4.69566344239814e+00, -2.61077567563690e-04, 5.26359000761433e-03},
  52. {-2.61077567563690e-04, 1.82420859823767e-06, -7.83645887541601e-07},
  53. {5.26359000761433e-03, -7.83645887541601e-07, 1.33586288288802e-02}}};
  54. static const double kNoiseGmmMean[kNoiseGmmNumMixtures][kNoiseGmmDim] = {
  55. {-2.01386094766163e+00, 1.69702162045397e+02, 7.41715804872181e+01},
  56. {-1.94684591777290e+00, 1.42398396732668e+02, 1.64186321157831e+02},
  57. {-2.29319297562437e+00, 3.86415425589868e+02, 2.13452215267125e+02},
  58. {-3.25487177070268e+00, 1.08668712553616e+03, 2.33119949467419e+02},
  59. {-2.13159632447467e+00, 4.83821702557717e+03, 6.86786166673740e+01},
  60. {-2.26171410780526e+00, 4.79420193982422e+03, 1.53222513286450e+02},
  61. {-3.32166740703185e+00, 4.35161135834358e+03, 1.33206448431316e+02},
  62. {-2.19290322814343e+00, 3.98325506609408e+03, 2.13249167359934e+02},
  63. {-2.02898459255404e+00, 7.37039893155007e+03, 1.12518527491926e+02},
  64. {-2.26150236399500e+00, 1.54896745196145e+03, 1.49717357868579e+02},
  65. {-2.00417668301790e+00, 3.82434760310304e+03, 1.07438913004312e+02},
  66. {-2.30193040814533e+00, 1.43953696546439e+03, 7.04085275122649e+01}};
  67. static const double kNoiseGmmWeights[kNoiseGmmNumMixtures] = {
  68. -1.09422832086193e+01, -1.10847897513425e+01, -1.36767587732187e+01,
  69. -1.79789356118641e+01, -1.42830169160894e+01, -1.56500228061379e+01,
  70. -1.83124990950113e+01, -1.69979436177477e+01, -1.12329424387828e+01,
  71. -1.41311785780639e+01, -1.47171861448585e+01, -1.35963362781839e+01};
  72. } // namespace webrtc
  73. #endif // MODULES_AUDIO_PROCESSING_VAD_NOISE_GMM_TABLES_H_