Fix to deallocate memory of sound and speak data