audio - whistle detection is not working with musicg api in android -


i trying develop app detects whistle sound, have used musicg library working fine problem is no work devices. how library working recorder thread contineously recording audio in background , detector thread matching recorded buffer via whistleapi.iswhistle(buffer); method. problem above mentioned method returning false specific devices returning true samsung , google nexus right @ point. can tell me should resolve issue important project. me out!

in recorderthread class change "audioformat.channel_configuration_mono in channel_in_mono , framebytesize=4096....

private audiorecord audiorecord; private boolean isrecording; private int channelconfiguration = audioformat.channel_in_mono;//channel_configuration_mono private int audioencoding = audioformat.encoding_pcm_16bit; private int samplerate = 44100;//44100 private int framebytesize = 4096; // 1024 fft size (16bit sample size)//4096 byte[] buffer; 

Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -