private void StopProcessing() { audioRecording.StopRecording(); apiHelper.StopAPI(); cts.Cancel(); resultBuffer.Clean(); audioBuffer.Clean(); audioRecording.CleanUp(); audioRecording = new AudioRecording(audioBuffer); }