speequal 3.3.3.post1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. speequal-3.3.3.post1/.bazelrc +107 -0
  2. speequal-3.3.3.post1/.bazelversion +1 -0
  3. speequal-3.3.3.post1/BUILD +618 -0
  4. speequal-3.3.3.post1/LICENSE +201 -0
  5. speequal-3.3.3.post1/MANIFEST.in +17 -0
  6. speequal-3.3.3.post1/PKG-INFO +91 -0
  7. speequal-3.3.3.post1/README.md +367 -0
  8. speequal-3.3.3.post1/README_PYPI.md +71 -0
  9. speequal-3.3.3.post1/WORKSPACE +207 -0
  10. speequal-3.3.3.post1/model/BUILD +17 -0
  11. speequal-3.3.3.post1/model/README.txt +15 -0
  12. speequal-3.3.3.post1/model/lattice_tcditugenmeetpackhref_ls2_nl60_lr12_bs2048_learn.005_ep2400_train1_7_raw.tflite +0 -0
  13. speequal-3.3.3.post1/model/libsvm_nu_svr_model.txt +324 -0
  14. speequal-3.3.3.post1/model/tcd_voip_testset_speech_mode_nsim.csv +401 -0
  15. speequal-3.3.3.post1/model/tcd_voip_testset_subjective_mos.csv +385 -0
  16. speequal-3.3.3.post1/model/tcdaudio14_aacvopus_coresv_svrnsim_n.68_g.01_c1.model +324 -0
  17. speequal-3.3.3.post1/model/tcdaudio_aacvopus_coresv_grid_nu0.3_c126.237786175_g0.204475514639.model +195 -0
  18. speequal-3.3.3.post1/model/tcdvoip_nu.568_c5.31474325639_g3.17773760038_model.txt +480 -0
  19. speequal-3.3.3.post1/pybind11_fixdistutils.patch +31 -0
  20. speequal-3.3.3.post1/pybind11_protobuf_getmessageclass.patch +18 -0
  21. speequal-3.3.3.post1/python/BUILD +34 -0
  22. speequal-3.3.3.post1/python/visqol_lib_py.cc +42 -0
  23. speequal-3.3.3.post1/python/visqol_lib_py_test.py +120 -0
  24. speequal-3.3.3.post1/python_wrapper/speequal/__init__.py +27 -0
  25. speequal-3.3.3.post1/python_wrapper/speequal/visqol/__init__.py +25 -0
  26. speequal-3.3.3.post1/python_wrapper/speequal/visqol/__main__.py +45 -0
  27. speequal-3.3.3.post1/python_wrapper/speequal/visqol/api.py +144 -0
  28. speequal-3.3.3.post1/python_wrapper/speequal/visqol/conformance.json +25 -0
  29. speequal-3.3.3.post1/python_wrapper/speequal/visqol/selftest.py +125 -0
  30. speequal-3.3.3.post1/setup.cfg +4 -0
  31. speequal-3.3.3.post1/setup.py +56 -0
  32. speequal-3.3.3.post1/speequal.egg-info/PKG-INFO +91 -0
  33. speequal-3.3.3.post1/speequal.egg-info/SOURCES.txt +116 -0
  34. speequal-3.3.3.post1/speequal.egg-info/dependency_links.txt +1 -0
  35. speequal-3.3.3.post1/speequal.egg-info/requires.txt +2 -0
  36. speequal-3.3.3.post1/speequal.egg-info/top_level.txt +1 -0
  37. speequal-3.3.3.post1/src/alignment.cc +99 -0
  38. speequal-3.3.3.post1/src/amatrix.cc +407 -0
  39. speequal-3.3.3.post1/src/analysis_window.cc +46 -0
  40. speequal-3.3.3.post1/src/commandline_parser.cc +240 -0
  41. speequal-3.3.3.post1/src/comparison_patches_selector.cc +383 -0
  42. speequal-3.3.3.post1/src/complex_valarray.cc +36 -0
  43. speequal-3.3.3.post1/src/convolution_2d.cc +89 -0
  44. speequal-3.3.3.post1/src/envelope.cc +73 -0
  45. speequal-3.3.3.post1/src/equivalent_rectangular_bandwidth.cc +142 -0
  46. speequal-3.3.3.post1/src/fast_fourier_transform.cc +143 -0
  47. speequal-3.3.3.post1/src/fft_manager.cc +133 -0
  48. speequal-3.3.3.post1/src/gammatone_filterbank.cc +96 -0
  49. speequal-3.3.3.post1/src/gammatone_spectrogram_builder.cc +104 -0
  50. speequal-3.3.3.post1/src/image_patch_creator.cc +73 -0
  51. speequal-3.3.3.post1/src/include/alignment.h +56 -0
  52. speequal-3.3.3.post1/src/include/amatrix.h +125 -0
  53. speequal-3.3.3.post1/src/include/analysis_window.h +59 -0
  54. speequal-3.3.3.post1/src/include/audio_channel.h +137 -0
  55. speequal-3.3.3.post1/src/include/audio_signal.h +48 -0
  56. speequal-3.3.3.post1/src/include/commandline_parser.h +172 -0
  57. speequal-3.3.3.post1/src/include/comparison_patches_selector.h +200 -0
  58. speequal-3.3.3.post1/src/include/complex_valarray.h +218 -0
  59. speequal-3.3.3.post1/src/include/conformance.h +79 -0
  60. speequal-3.3.3.post1/src/include/convolution_2d.h +76 -0
  61. speequal-3.3.3.post1/src/include/envelope.h +54 -0
  62. speequal-3.3.3.post1/src/include/equivalent_rectangular_bandwidth.h +87 -0
  63. speequal-3.3.3.post1/src/include/fast_fourier_transform.h +90 -0
  64. speequal-3.3.3.post1/src/include/fft_manager.h +198 -0
  65. speequal-3.3.3.post1/src/include/file_path.h +55 -0
  66. speequal-3.3.3.post1/src/include/gammatone_filterbank.h +115 -0
  67. speequal-3.3.3.post1/src/include/gammatone_spectrogram_builder.h +68 -0
  68. speequal-3.3.3.post1/src/include/image_patch_creator.h +99 -0
  69. speequal-3.3.3.post1/src/include/libsvm_target_observation_convertor.h +57 -0
  70. speequal-3.3.3.post1/src/include/machine_learning.h +34 -0
  71. speequal-3.3.3.post1/src/include/misc_audio.h +161 -0
  72. speequal-3.3.3.post1/src/include/misc_math.h +60 -0
  73. speequal-3.3.3.post1/src/include/misc_vector.h +46 -0
  74. speequal-3.3.3.post1/src/include/neurogram_similiarity_index_measure.h +48 -0
  75. speequal-3.3.3.post1/src/include/patch_similarity_comparator.h +114 -0
  76. speequal-3.3.3.post1/src/include/rms_vad.h +122 -0
  77. speequal-3.3.3.post1/src/include/signal_filter.h +62 -0
  78. speequal-3.3.3.post1/src/include/sim_results_writer.h +278 -0
  79. speequal-3.3.3.post1/src/include/similarity_result.h +112 -0
  80. speequal-3.3.3.post1/src/include/similarity_to_quality_mapper.h +68 -0
  81. speequal-3.3.3.post1/src/include/spectrogram.h +131 -0
  82. speequal-3.3.3.post1/src/include/spectrogram_builder.h +57 -0
  83. speequal-3.3.3.post1/src/include/speech_similarity_to_quality_mapper.h +63 -0
  84. speequal-3.3.3.post1/src/include/status_macros.h +46 -0
  85. speequal-3.3.3.post1/src/include/support_vector_regression_model.h +100 -0
  86. speequal-3.3.3.post1/src/include/svr_similarity_to_quality_mapper.h +65 -0
  87. speequal-3.3.3.post1/src/include/tflite_quality_mapper.h +57 -0
  88. speequal-3.3.3.post1/src/include/vad_patch_creator.h +79 -0
  89. speequal-3.3.3.post1/src/include/visqol.h +181 -0
  90. speequal-3.3.3.post1/src/include/visqol_api.h +81 -0
  91. speequal-3.3.3.post1/src/include/visqol_manager.h +277 -0
  92. speequal-3.3.3.post1/src/include/wav_reader.h +149 -0
  93. speequal-3.3.3.post1/src/include/xcorr.h +84 -0
  94. speequal-3.3.3.post1/src/libsvm_target_observation_convertor.cc +58 -0
  95. speequal-3.3.3.post1/src/main.cc +67 -0
  96. speequal-3.3.3.post1/src/misc_audio.cc +187 -0
  97. speequal-3.3.3.post1/src/misc_math.cc +55 -0
  98. speequal-3.3.3.post1/src/misc_vector.cc +31 -0
  99. speequal-3.3.3.post1/src/neurogram_similiarity_index_measure.cc +91 -0
  100. speequal-3.3.3.post1/src/proto/similarity_result.proto +85 -0
  101. speequal-3.3.3.post1/src/proto/visqol_config.proto +69 -0
  102. speequal-3.3.3.post1/src/rms_vad.cc +82 -0
  103. speequal-3.3.3.post1/src/signal_filter.cc +49 -0
  104. speequal-3.3.3.post1/src/spectrogram.cc +92 -0
  105. speequal-3.3.3.post1/src/speech_similarity_to_quality_mapper.cc +59 -0
  106. speequal-3.3.3.post1/src/support_vector_regression_model.cc +111 -0
  107. speequal-3.3.3.post1/src/svr_similarity_to_quality_mapper.cc +38 -0
  108. speequal-3.3.3.post1/src/svr_training/training_data_file_reader.cc +50 -0
  109. speequal-3.3.3.post1/src/svr_training/training_data_file_reader.h +80 -0
  110. speequal-3.3.3.post1/src/tflite_quality_mapper.cc +111 -0
  111. speequal-3.3.3.post1/src/vad_patch_creator.cc +98 -0
  112. speequal-3.3.3.post1/src/visqol.cc +280 -0
  113. speequal-3.3.3.post1/src/visqol_api.cc +112 -0
  114. speequal-3.3.3.post1/src/visqol_manager.cc +282 -0
  115. speequal-3.3.3.post1/src/wav_reader.cc +262 -0
  116. speequal-3.3.3.post1/src/xcorr.cc +99 -0
  117. speequal-3.3.3.post1/testdata/clean_speech/CA01_01.wav +0 -0
  118. speequal-3.3.3.post1/testdata/clean_speech/transcoded_CA01_01.wav +0 -0
@@ -0,0 +1,107 @@
1
+ # Most of this file is to allow tensorflow to build.
2
+ # Inspired by TensorFlow serving's .bazelrc to build from the source.
3
+ # It also may be useful to refer to TensorFlow .bazelrc for more details:
4
+ # https://github.com/tensorflow/tensorflow/blob/master/.bazelrc
5
+
6
+ # Optimizations used for TF Serving release builds.
7
+ build:release --copt=-mavx
8
+ build:release --copt=-msse4.2
9
+
10
+ # Options used to build with CUDA.
11
+ build:cuda --repo_env TF_NEED_CUDA=1
12
+ build:cuda --crosstool_top=@local_config_cuda//crosstool:toolchain
13
+ build:cuda --@local_config_cuda//:enable_cuda
14
+ build:cuda --define=using_cuda=true --define=using_cuda_nvcc=true
15
+ build:cuda --action_env=TF_CUDA_COMPUTE_CAPABILITIES="sm_35,sm_50,sm_60,sm_70,sm_75,compute_80"
16
+
17
+ # Options used to build with TPU support.
18
+ build:tpu --distinct_host_configuration=false
19
+ build:tpu --define=with_tpu_support=true --define=framework_shared_object=false
20
+
21
+ # Please note that MKL on MacOS or windows is still not supported.
22
+ # If you would like to use a local MKL instead of downloading, please set the
23
+ # environment variable "TF_MKL_ROOT" every time before build.
24
+ build:mkl --define=build_with_mkl=true --define=enable_mkl=true --define=build_with_openmp=true
25
+ build:mkl --define=tensorflow_mkldnn_contraction_kernel=0
26
+
27
+ # This config option is used to enable MKL-DNN open source library only,
28
+ # without depending on MKL binary version.
29
+ build:mkl_open_source_only --define=build_with_mkl_dnn_only=true
30
+ build:mkl_open_source_only --define=build_with_mkl=true --define=enable_mkl=true
31
+ build:mkl_open_source_only --define=tensorflow_mkldnn_contraction_kernel=0
32
+
33
+ # Processor native optimizations (depends on build host capabilities).
34
+ build:nativeopt --copt=-march=native
35
+ build:nativeopt --host_copt=-march=native
36
+ build:nativeopt --copt=-O3
37
+
38
+ build --keep_going
39
+ build --verbose_failures=true
40
+ build --spawn_strategy=standalone
41
+ build --genrule_strategy=standalone
42
+
43
+ build --define=grpc_no_ares=true
44
+
45
+ # Sets the default Apple platform to macOS.
46
+ build --apple_platform_type=macos
47
+
48
+ build -c opt
49
+
50
+ # ViSQOL is overridding the default c++14 settings in tensorflow.
51
+ # TF's .bazelrc claims it c++14 required, but it is likely required
52
+ # in the sense that it is backwards compatible with c++17.
53
+ build --cxxopt=-std=c++17
54
+ build --linkopt=-ldl
55
+ build --host_cxxopt=-std=c++17
56
+
57
+ build --experimental_repo_remote_exec
58
+
59
+ # Enable platform specific config (e.g. by default use --config=windows when on windows, and --config=linux when on linux)
60
+ build --enable_platform_specific_config
61
+
62
+
63
+ ## Windows config
64
+ startup --windows_enable_symlinks
65
+ build:windows --enable_runfiles
66
+
67
+ # These settings below allow for compilation using MSVC
68
+ # It would be nice to use clang to compile for Windows as well,
69
+ # but the bazel instructions did not work.
70
+ build:windows --copt=/D_USE_MATH_DEFINES
71
+ build:windows --host_copt=/D_USE_MATH_DEFINES
72
+ build:windows --cxxopt=-D_HAS_DEPRECATED_RESULT_OF=1
73
+
74
+ build:windows --cxxopt=/Zc:__cplusplus
75
+ # c++20 needed in MSVC for designated initializers (llvm libc++
76
+ # and gnu stc++ provides them in c++17).
77
+ build:windows --cxxopt=/std:c++20
78
+ build:windows --linkopt=-ldl
79
+ build:windows --host_cxxopt=/std:c++20
80
+
81
+ # Make sure to include as little of windows.h as possible
82
+ build:windows --copt=-DWIN32_LEAN_AND_MEAN
83
+ build:windows --host_copt=-DWIN32_LEAN_AND_MEAN
84
+ build:windows --copt=-DNOGDI
85
+ build:windows --host_copt=-DNOGDI
86
+
87
+ # MSVC (Windows): Standards-conformant preprocessor mode
88
+ # See https://docs.microsoft.com/en-us/cpp/preprocessor/preprocessor-experimental-overview
89
+ build:windows --copt=/Zc:preprocessor
90
+ build:windows --host_copt=/Zc:preprocessor
91
+
92
+ # Misc build options we need for windows according to tensorflow
93
+ build:windows --linkopt=/DEBUG
94
+ build:windows --host_linkopt=/DEBUG
95
+ build:windows --linkopt=/OPT:REF
96
+ build:windows --host_linkopt=/OPT:REF
97
+ build:windows --linkopt=/OPT:ICF
98
+ build:windows --host_linkopt=/OPT:ICF
99
+ # This is a workaround for this magic preprocessor constant/macro not existing
100
+ # in MSVC
101
+ build:windows --host_copt=-D__PRETTY_FUNCTION__=__FUNCSIG__
102
+ build:windows --copt=-D__PRETTY_FUNCTION__=__FUNCSIG__
103
+
104
+ # [visqol packaging patch 0001] GCC 13 dropped transitive <cstdint> includes;
105
+ # TF 2.11's tensorflow/lite/kernels/internal/spectrogram.cc uses uint32_t
106
+ # without including it. Force-include <cstdint> in every C++ TU.
107
+ build --cxxopt=-include --cxxopt=cstdint
@@ -0,0 +1 @@
1
+ 5.3.2