I want to get PCM 16-bit data from TarsosDSP AudioDispatcher. I followed this link for the pitch analysis of a real-time audio stream. I am getting the desired results but I also want to get the PCM data from AudioDispatcher.
AudioDispatcher adp = AudioDispatcherFactory.fromDefaultMicrophone(2048, 0);
How can I get the required PCM data from AudioDispatcher or any other technique to pass my data from the android AudioRecord to AudioDispatcher?
You can pass your audioRecorder object to AudioDispatcherFactory by simply creating your own AudioDispatcherFactory.java class with extra argument of AudioRecorder
Like this:
And in your Activity do some this like this