Hi Shamsta,
Welcome to the HP forum!!
For you to have the best experience, I would like to direct your attention to Learn How to Use the Forum and More.
I understand that you would like to record audio from an external source. The unit does not support that function. Here is a link to the HP ENVY 15 Notebook PC and HP ENVY TouchSmart 15 Notebook PC Maintenance and Service Guide. Please note page 15, item 1.
You can connect an optional usb optical drive.You can Google external optical drives to locate some.