Run the troubleshooting tool using the following steps. The audio troubleshooting tool in Windows can automatically fix common audio recording and audio playback problems with your computer. I have a few troubleshooting steps we could try to fix the issue.
Thank you for posting on HP Support Community. The only thing that makes it better is when I plug in headphones, the sound comes out right. I also ran the Component Audio tests Esc when the laptop is starting and the high pitch noise was still happening. I ran the audio diagnostic and it didn't help. My laptop's speakers emit a high pitch noise every time I tried to play sound. Connect with HP support faster, manage all your devices in one place, view warranty information and more- Click Here.