I am doing building a GUI for pocketsphinx speech recognition API. When the button is pushed, it starts recording speech in PCM (signed 16 bits, 16 kHz, 32 frames and mono channel). I am running the recorder in the slave thread. So I can stop recording when I want to.
It takes about twice of the time after I release the pushbutton. If I release the recording button quickly, it stops after a few seconds. If I hold the button for about 5 seconds, it stops at the 10th seconds. Record over 10 seconds will crash the program..