I followed the below tutorial and found it very usefull https://medium.com/@v_for_vj/use-mic-in-angular-to-record-audio-simplified-1374d89718d3