Tag: musicg

DetectionAPI仅支持单声道Wav

我正在研究一个拍手检测Android应用程序。 我正在使用musicg api。 我从github导入项目并在Android设备上运行。 然后此错误显示 – DetectionAPI仅支持单声道Wav 细节LogCat是 – DetectionAPI supports mono Wav only java.lang.NullPointerException: Attempt to invoke virtual method ‘int com.musicg.wave.WaveHeader.getBitsPerSample()’ on a null object reference at com.musicg.api.DetectionApi.isSpecificSound(DetectionApi.java:80) at com.musicg.api.WhistleApi.isWhistle(WhistleApi.java:54) at com.musicg.demo.android.DetectorThread.run(DetectorThread.java:106) at java.lang.Thread.run(Thread.java:818) 有人有任何建议如何解决这个问题?