Changed the python script for recording the sound data:
In case we drop data, global variable lastValueFromStream stores last data and we can insert it.
This helps to maintain the sampling rate also in the output file.
Removed the threading/timer and added a while loop to continuously process the audio stream.
Changed the python script for recording the sound data:
In case we drop data, global variable lastValueFromStream stores last data and we can insert it. This helps to maintain the sampling rate also in the output file. Removed the threading/timer and added a while loop to continuously process the audio stream.