Implement sound recorder function