Solution: Reinstall Sound Card driver or Run Troubleshooter for Audio.
Fix 1:
Open “Device Manager”.
Locate Sound, Videos and Game controllers from the list.
Double "Realtek or Synaptic Audio" or Right click and select Properties.
Select Change Settings, if on user account. (ACTION REQUIRES ADMIN ACCESS)
Navigate to the “driver” tab.
Select the “Roll Back Driver” option if highlighted. Then follow the prompt and select “Yes”. If the “Roll Back Driver” isn’t highlighted, skip to step 6.
Select “Update driver”.
Click “Browse my computer for drivers”
Click “Let me pick from a list of available drivers on my computer”.
Select “High Definition Audio” and click next to install.
The speaker should start working immediately, if not, restart your device.
Fix 2:
For Windows 11:::
Select Start > Settings > System > Troubleshoot or Click here > Other troubleshooters > Playing Audio and click on Run.
Now, select Speaker and follow the prompt to fix the speaker.
For Windows 10:::
Start > Settings > Update & Security > Troubleshoot > Additional troubleshooters > Playing Audio and click on Run.
Now, select Speaker and follow the prompt to fix the speaker.
P.S:
You can launch the Audio Troubleshooter easily via running this command on Command Prompt.
msdt.exe -id AudioPlaybackDiagnostic