Open source C++ and Python libraries to facilitate research and development for spatial signal processing
Please see http://distantspeechrecognition.sourceforge.net/ for project details.
spatial signal processing toolkit a.k.a beamforming toolkit 2.0 (BTK2.0)
License: MIT License
Open source C++ and Python libraries to facilitate research and development for spatial signal processing
Please see http://distantspeechrecognition.sourceforge.net/ for project details.
Dear Kenichi,
I run Single channel WPE dereverberator using the following script:
python test_subband_dereverberator.py -i data/CMU/R1/M1005/KINECT/RAW/segmented/U1001_1M_16k_b16_c1.wav -o out/U1001_1M_16k_b16_c1.wav
I listened to the generated wav file and the original one, and I can't tell the difference. They sound the same. Is it normal?
Thanks,
Sanqing
I don't know much about swig. Is this an easy task?
In the test_online_beamforming.py ,we can only deal with one target source when using lcmv beamformer.
When i have two or more target sources to enhance , what can i do? Thx!
Hello
I want to know the performance of the single channel wpe and multi channel wpe? Is this algorithm the same as NTT's WPE algorithm? I run the example according to the default parameters, the effect is not obvious, I want to know what's wrong?
thanks
I follow the document to install btk20 and everything goes well, but failed to run the example:
python2 test_online_beamforming.py \ maoyue@maoyuedeMBP
-c confs/gscrls.json
-i data/CMU/R1/M1005/KINECT/RAW/segmented/U1001_1M_16k_b16_c1.wav
data/CMU/R1/M1005/KINECT/RAW/segmented/U1001_1M_16k_b16_c2.wav
data/CMU/R1/M1005/KINECT/RAW/segmented/U1001_1M_16k_b16_c3.wav
data/CMU/R1/M1005/KINECT/RAW/segmented/U1001_1M_16k_b16_c4.wav
-o out/U1001_1M_gscrls.wav
Fatal Python error: PyThreadState_Get: no current thread
[1] 92974 abort python2 test_online_beamforming.py -c confs/gscrls.json -i -o
I think a possible cause is multi-version python existing, but I don't know how to fix this.
{"array_type":"linear",
"microphone_positions":[[-113.0, 0.0, 2.0],
[ 36.0, 0.0, 2.0],
[ 76.0, 0.0, 2.0],
[ 113.0, 0.0, 2.0]],
"target":{"positions":[[0.0, [-1.306379, null, null]]]},
"beamformer":{"type":"delay_and_sum"}
}
I am new to beamforming, how can I kown the things above using a microphone array? Or if BTK2.0 provide method to do that?
Very nice project! I have read the sad module. There are several methods such as simple energy threshold and simple likelyhood ratio method. These two methods are esay to understand.
But what is EnergyVADFeature method? And in the sad_feature.cc file, BrightnessFeature/EnergyDiffusionFeature/EnergyDiffusionFeature/NegativeEntropyFeature... and so on.. can you provide the reference article or paper which describe those more detail?
And at last, what is the VADMetric/EnergyVADMetric... class used for?
I have been testing your LCMV, it's outstanding actually, but the only thing I noticed is that when I try to remove two known noise sources at different directions from the target it always removes one, and when I add another noise argument it tells me that Nc != n_jammers or something like that.. Can you help me with this?
Dear,
I try to make buil od BTK2.0 for Python 3.11 in Windows 10 and CMake.
I follow the instruction with https://distantspeechrecognition.sourceforge.io/btk20_documentation/intro/building_btk.html, but I have some errors...
I downloaded the source file, generated the build folder, entered the build folder and typed the command: cmake -DCMAKE_INSTALL_PREFIX=$HOME/local. Error: The source directory "C:/TEST/distant_speech_recognition-master/btk20_src/build" does not appear to contain CMakeLists.txt.
When I am in directory btk20_src, where CmakeLists.txt is located, I have error:
_CMake Warning:
No source or binary directory provided. Both will be assumed to be the
same as the current working directory, but note that this warning will
become a fatal error in future CMake releases.
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.
CMake Error at CMakeLists.txt:2 (project):
Running
'nmake' '-?'
failed with:
no such file or directory
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!_
Do you have any suggestion?
I run test_subband_dereverberator.py, but the output wav files don't sound dereverberated.
I use the test data in unittest/data, other data which have more reverberation also used.
Use "python design_de_haan_filter.py -M 4 -m 2 -r 1 -w 1.0 -v 1.0" to design filter:
"Solving for synthesis prototype 'g' ... Done.
eps_t = 2.750273
eps_r = -12.536268"
It is not correct, but the analysis filter is correct!
and I print the _E _f _p, they are abnorml.
"0.625415 1.09791e-309 1.09791e-309 0 1.97626e-323 0 0 0"
Dear Kumatani,
Could you share any additional information about the beamforming configuration file format for a circular array?
I am using a circular array with 4 microphones and I think I've find among the python files how to configure the microphone position matrix (4X3 with 4 number of microphone and 3 position vector size xyz starting form the center of the mic array). However when I run the test_online_beamforming.py example code I get an error like:
"c_x = - numpy.sin(polar_angle) * numpy.cos(azimuth)"
"NoneType object has no attribute sin" So I believe that I am missing some other parameter inside the conf file.
Do you have any example or any reference?
Thanks for your help
when I run python test_subband_aec.py -i data/speech_and_reverb_lt.wav -p data/lt.wav -o out/kf_aec_output.wav,the problem occured.
Hi, this project is so cool! It is so helpful for ASR develoment!
I am currently researching the filter bank implemented in btk2.0, and it really confused me that OverSampledDFTAnalysisBank doing backward fft after a polyphase filter, however NormalFFTAnalysisBank doing forward fft after a polyphase filter, which is what I learnt from some materials(like http://www.ws.binghamton.edu/fowler/fowler%20personal%20page/EE521_files/IV-08%20Uniform%20DFT%20Filter%20Bank_2007.pdf), is there any documents or papers about this backward fft?
Thank you all!
Can this be build on Windows under MinGW or something like this?
Python 2.7 is pretty old by now. Can we please have python 3 bindings for this?
Hi
I am very interested in this project, because I have recently done a smart speaker project using Amazon AVS, I also have a set of hardware devices:Amlogic A113X1 Far-Field Dev Kit for Amazon AVS , detials : http://openlinux2.amlogic.com/download/doc/A113X1_Usermanual.pdf , There are six microphones.
How to connect these signal processing modules (Speaker tracking, Beamforming, Post-filtering, Speech enhancement, Dereverberation and Echo cancellation ) to form a complete signal processing flow, suitable for hands-free smart speakers using Microphone arrays? can provide a C++ demo?
Can I use the Millennium ASR as a wake word detection?
thanks!
Hi, this project is so cool! It is very helpful for ASR develoment! Thank you all! I am looking the filter bank implemented in btk2.0, and it really confused me that OverSampledDFTAnalysisBank doing backward fft after a polyphase filter,
Running cmake -DCMAKE_INSTALL_PREFIX=$HOME/local .. && make install
gives me:
-- Setting installation directory...
-- Include: /home/ivan/local/include
-- Lib: /home/ivan/local/lib
-- Python: /home/ivan/local/lib/python2.7/dist-packages/btk20
-- PYTHON_INCLUDE_PATH: /home/ivan/anaconda3/include/python3.7m
-- PYTHON_LIBRARIES: /home/ivan/anaconda3/lib
-- Checking for module 'sndfile'
-- No package 'sndfile' found
-- SNDFILE_INCLUDE_DIR = /home/ivan/anaconda3/include
-- SNDFILE_LIBRARY = /home/ivan/anaconda3/lib/libsndfile.so
CUDA_TOOLKIT_ROOT_DIR not found or specified
-- Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY) (Required is at least version "9.0")
-- Skipping CUDA support
-- Configuring done
WARNING: Target "_common" requests linking to directory "/home/ivan/anaconda3/lib". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "_utils" requests linking to directory "/home/ivan/anaconda3/lib". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "_stream" requests linking to directory "/home/ivan/anaconda3/lib". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "_matrix" requests linking to directory "/home/ivan/anaconda3/lib". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "_feature" requests linking to directory "/home/ivan/anaconda3/lib". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "_convolution" requests linking to directory "/home/ivan/anaconda3/lib". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "_modulated" requests linking to directory "/home/ivan/anaconda3/lib". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "_aec" requests linking to directory "/home/ivan/anaconda3/lib". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "_dereverberation" requests linking to directory "/home/ivan/anaconda3/lib". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "_square_root" requests linking to directory "/home/ivan/anaconda3/lib". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "_lms" requests linking to directory "/home/ivan/anaconda3/lib". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "_beamformer" requests linking to directory "/home/ivan/anaconda3/lib". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "_postfilter" requests linking to directory "/home/ivan/anaconda3/lib". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "_tde" requests linking to directory "/home/ivan/anaconda3/lib". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "_localization" requests linking to directory "/home/ivan/anaconda3/lib". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "_sad" requests linking to directory "/home/ivan/anaconda3/lib". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "_objective_measure" requests linking to directory "/home/ivan/anaconda3/lib". Targets may link only to libraries. CMake is dropping the item.
-- Generating done
-- Build files have been written to: /home/ivan/code/distant_speech_recognition-master/btk20_src/build`
and then
`Scanning dependencies of target _common
[ 9%] Building CXX object common/CMakeFiles/_common.dir/commonPYTHON_wrap.cxx.o
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx: In function ‘PyObject* _wrap_read_float(PyObject*, PyObject*)’:
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx:3828:25: error: ‘PyFile_Check’ was not declared in this scope
if(PyFile_Check(obj0)) {
^
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx:3829:32: error: ‘PyFile_AsFile’ was not declared in this scope
arg1 = PyFile_AsFile(obj0);
^
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx: In function ‘PyObject* _wrap_read_floats(PyObject*, PyObject*)’:
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx:3925:25: error: ‘PyFile_Check’ was not declared in this scope
if(PyFile_Check(obj0)) {
^
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx:3926:32: error: ‘PyFile_AsFile’ was not declared in this scope
arg1 = PyFile_AsFile(obj0);
^
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx: In function ‘PyObject* _wrap_read_floatbyte(PyObject*, PyObject*)’:
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx:4024:25: error: ‘PyFile_Check’ was not declared in this scope
if(PyFile_Check(obj0)) {
^
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx:4025:32: error: ‘PyFile_AsFile’ was not declared in this scope
arg1 = PyFile_AsFile(obj0);
^
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx: In function ‘PyObject* _wrap_read_floatbytes(PyObject*, PyObject*)’:
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx:4121:25: error: ‘PyFile_Check’ was not declared in this scope
if(PyFile_Check(obj0)) {
^
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx:4122:32: error: ‘PyFile_AsFile’ was not declared in this scope
arg1 = PyFile_AsFile(obj0);
^
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx: In function ‘PyObject* _wrap_read_int(PyObject*, PyObject*)’:
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx:4220:25: error: ‘PyFile_Check’ was not declared in this scope
if(PyFile_Check(obj0)) {
^
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx:4221:32: error: ‘PyFile_AsFile’ was not declared in this scope
arg1 = PyFile_AsFile(obj0);
^
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx: In function ‘PyObject* _wrap_read_ints(PyObject*, PyObject*)’:
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx:4317:25: error: ‘PyFile_Check’ was not declared in this scope
if(PyFile_Check(obj0)) {
^
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx:4318:32: error: ‘PyFile_AsFile’ was not declared in this scope
arg1 = PyFile_AsFile(obj0);
^
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx: In function ‘PyObject* _wrap_read_short(PyObject*, PyObject*)’:
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx:4416:25: error: ‘PyFile_Check’ was not declared in this scope
if(PyFile_Check(obj0)) {
^
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx:4417:32: error: ‘PyFile_AsFile’ was not declared in this scope
arg1 = PyFile_AsFile(obj0);
^
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx: In function ‘PyObject* _wrap_read_shorts(PyObject*, PyObject*)’:
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx:4513:25: error: ‘PyFile_Check’ was not declared in this scope
if(PyFile_Check(obj0)) {
^
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx:4514:32: error: ‘PyFile_AsFile’ was not declared in this scope
arg1 = PyFile_AsFile(obj0);
^
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx: In function ‘PyObject* _wrap_read_string(PyObject*, PyObject*)’:
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx:4617:25: error: ‘PyFile_Check’ was not declared in this scope
if(PyFile_Check(obj0)) {
^
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx:4618:32: error: ‘PyFile_AsFile’ was not declared in this scope
arg1 = PyFile_AsFile(obj0);
^
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx: In function ‘PyObject* _wrap_read_scaled_vectors(PyObject*, PyObject*)’:
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx:4725:25: error: ‘PyFile_Check’ was not declared in this scope
if(PyFile_Check(obj0)) {
^
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx:4726:32: error: ‘PyFile_AsFile’ was not declared in this scope
arg1 = PyFile_AsFile(obj0);
^
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx: In function ‘PyObject* _wrap_read_scaled_vectors_range(PyObject*, PyObject*)’:
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx:4849:25: error: ‘PyFile_Check’ was not declared in this scope
if(PyFile_Check(obj0)) {
^
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx:4850:32: error: ‘PyFile_AsFile’ was not declared in this scope
arg1 = PyFile_AsFile(obj0);
^
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx: In function ‘PyObject* _wrap_write_scaled_vectors(PyObject*, PyObject*)’:
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx:4975:25: error: ‘PyFile_Check’ was not declared in this scope
if(PyFile_Check(obj0)) {
^
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx:4976:32: error: ‘PyFile_AsFile’ was not declared in this scope
arg1 = PyFile_AsFile(obj0);
^
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx: In function ‘PyObject* _wrap_write_float(PyObject*, PyObject*)’:
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx:5082:25: error: ‘PyFile_Check’ was not declared in this scope
if(PyFile_Check(obj0)) {
^
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx:5083:32: error: ‘PyFile_AsFile’ was not declared in this scope
arg1 = PyFile_AsFile(obj0);
^
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx: In function ‘PyObject* _wrap_write_floats(PyObject*, PyObject*)’:
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx:5184:25: error: ‘PyFile_Check’ was not declared in this scope
if(PyFile_Check(obj0)) {
^
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx:5185:32: error: ‘PyFile_AsFile’ was not declared in this scope
arg1 = PyFile_AsFile(obj0);
^
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx: In function ‘PyObject* _wrap_write_floatbyte(PyObject*, PyObject*)’:
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx:5286:25: error: ‘PyFile_Check’ was not declared in this scope
if(PyFile_Check(obj0)) {
^
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx:5287:32: error: ‘PyFile_AsFile’ was not declared in this scope
arg1 = PyFile_AsFile(obj0);
^
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx: In function ‘PyObject* _wrap_write_floatbytes(PyObject*, PyObject*)’:
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx:5388:25: error: ‘PyFile_Check’ was not declared in this scope
if(PyFile_Check(obj0)) {
^
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx:5389:32: error: ‘PyFile_AsFile’ was not declared in this scope
arg1 = PyFile_AsFile(obj0);
^
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx: In function ‘PyObject* _wrap_write_int(PyObject*, PyObject*)’:
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx:5490:25: error: ‘PyFile_Check’ was not declared in this scope
if(PyFile_Check(obj0)) {
^
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx:5491:32: error: ‘PyFile_AsFile’ was not declared in this scope
arg1 = PyFile_AsFile(obj0);
^
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx: In function ‘PyObject* _wrap_write_ints(PyObject*, PyObject*)’:
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx:5592:25: error: ‘PyFile_Check’ was not declared in this scope
if(PyFile_Check(obj0)) {
^
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx:5593:32: error: ‘PyFile_AsFile’ was not declared in this scope
arg1 = PyFile_AsFile(obj0);
^
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx: In function ‘PyObject* _wrap_write_short(PyObject*, PyObject*)’:
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx:5694:25: error: ‘PyFile_Check’ was not declared in this scope
if(PyFile_Check(obj0)) {
^
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx:5695:32: error: ‘PyFile_AsFile’ was not declared in this scope
arg1 = PyFile_AsFile(obj0);
^
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx: In function ‘PyObject* _wrap_write_shorts(PyObject*, PyObject*)’:
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx:5796:25: error: ‘PyFile_Check’ was not declared in this scope
if(PyFile_Check(obj0)) {
^
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx:5797:32: error: ‘PyFile_AsFile’ was not declared in this scope
arg1 = PyFile_AsFile(obj0);
^
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx: In function ‘PyObject* _wrap_write_string(PyObject*, PyObject*)’:
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx:5900:25: error: ‘PyFile_Check’ was not declared in this scope
if(PyFile_Check(obj0)) {
^
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx:5901:32: error: ‘PyFile_AsFile’ was not declared in this scope
arg1 = PyFile_AsFile(obj0);
^
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx: In function ‘PyObject* _wrap_btk_fclose(PyObject*, PyObject*)’:
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx:6944:25: error: ‘PyFile_Check’ was not declared in this scope
if(PyFile_Check(obj1)) {
^
/home/ivan/code/distant_speech_recognition-master/btk20_src/build/common/commonPYTHON_wrap.cxx:6945:32: error: ‘PyFile_AsFile’ was not declared in this scope
arg2 = PyFile_AsFile(obj1);
^
common/CMakeFiles/_common.dir/build.make:70: recipe for target 'common/CMakeFiles/_common.dir/commonPYTHON_wrap.cxx.o' failed
make[2]: *** [common/CMakeFiles/_common.dir/commonPYTHON_wrap.cxx.o] Error 1
CMakeFiles/Makefile2:87: recipe for target 'common/CMakeFiles/_common.dir/all' failed
make[1]: *** [common/CMakeFiles/_common.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2`
What went wrong here?
When code runs to
with open(analysis_filter_path, 'r') as fp:
h_fb = pickle.load(fp)
error appears as the following:
Traceback (most recent call last):
File "D:/work/liehu/distant_speech_recognition-master/btk20/unit_test/test_subband_aec.py", line 195, in
samplerate=16000)
File "D:/work/liehu/distant_speech_recognition-master/btk20/unit_test/test_subband_aec.py", line 35, in test_subband_aec
h_fb = pickle.load(fp)
UnicodeDecodeError: 'gbk' codec can't decode byte 0xff in position 127: illegal multibyte sequence
It's a great project. It's very helpful for me as a beginner. Although there are few people doing array signal processing, and I rarely see a good tool on GitHub, I hope this project can be updated continuously.
It is useful if you don't want/need to build the SWIG interface, especially for small systems. With the following patch SWIG can be disabled:
cmake -DSWIG_DISABLE=ON
Line:52 to 72
Dear Kenichi,
I tried to run Single channel WPE dereverberator using the following script:
python test_subband_dereverberator.py -i data/CMU/R1/M1005/KINECT/RAW/segmented/U1001_1M_16k_b16_c1.wav -o out/U1001_1M_16k_b16_c1.wav
and the result is:
Fatal Python error: PyThreadState_Get: no current thread
Abort trap: 6
I googled this issue and it seems caused from multiple version of python installed. I uninstalled python 3.6 but it didn't solve the problem. I'm wondering if I can get some suggestion from you.
Thanks much!
Hi,
Thank you for updating BTK 2.0! I had been used 1.0 for a long time, and I was glad to see the toolkit was still being updated.
In the previous version, I could not found how to calculate the active weights for sidelobe canceller, as if the packedweights should be provided previously. Do you have some idea for updating the adaptive weights? I had tried DAS and SD beamformer, and the fixed beamforming worked well, however, neither non-adaptive nor adaptive ways I tried didn't work. Could you help me?
Thank you!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.