beginning of recording voice functionality