Implementation of a voice activity detection and comfort noise generation algorithm