Even if the lag is only miliseconds, it is still annoying because it is noticeable.
ASIO drivers are developed to fix this frustrating issue, but the drivers have a limitation.
They require an external audio card.

This limitation eventually triggered the birth of ASIO4ALL.
ASIO4ALL brings the power of ASIO-based drivers to Windows operating system without requiring a professional audio card.
If the delay is around 3 to 10 ms, according to science your brain will not notice it.

But when it is delayed for 12 ms, you will begin to feel the delay.
In audio recording, this delay has to be minimized as much as possible.
ASIO, which stands for Audio Stream Input/Output, reduces latency in audio production.
And ASIO4ALL makes the ASIO drivers available for all users.
ASIO4ALL runs on most Windows versions and is free.
It doesnt replace the audio drivers that are currently used by Windows.
Additionally, you will see a number of options in the control panel, including the ASIO Buffer Size.
Every time you better lower the latency, reduce the buffer size.
If the audio sounds weird, you oughta increase the buffer size.
take a stab at get the buffer size as small as possible without making the audio distorted.
The older Windows versions are not officially supported anymore.