So, if you see “No Speaker” error on screen then there can be many reasons, you just need to do some changes in the “Realtek HD Audio Manager”. Click on the the “Speakers” tab and then tap on the folder which is visible beneath the “Device Advanced settings. Just select the “Disable” front panel jack detection. In the final step, you have to restart your PC or computer.
Read related answer - Laptop not recognizing headphones issue