I have a HP laptop and started getting this same error. Restarting only fix it temperately and so I tried changing the bios ( with HP) that didn't work but found this solution from my HP assistant and so far it seems to be working. so thought I would share it for the HP people.....
Run the Audio test from the HP PC Hardware Diagnostics (UEFI)
The Hardware Diagnostics Audio Playback Test checks your system to make sure the audio device is functioning properly and tests the functionality of the audio subsystem, including audio controllers and codecs.
NOTE: For
more information about installing and using the HP PC Hardware Diagnostic tests, see Testing for Hardware Failures (Windows 10, 8).
Use the following steps to run the HP PC Hardware Diagnostics (UEFI) Audio Test. During the test, a few music notes are played in sequence and then repeated. This test takes 1 minute to complete for each audio output port.
- Hold the power button for at least five seconds to turn off the computer.
- Turn on the computer and immediately press the F2 key repeatedly, about once every second.
- The HP PC Hardware Diagnostics (UEFI) main menu is displayed. Click Component Tests.
Figure: HP PC Hardware Diagnostics (UEFI) main menu

- The Component Tests menu displays. Click Audio.
Figure: Component Test menu with Audio selected

- Click Run once to start the test.
Figure: Audio Playback Test

- Select Speaker to begin the test.
Figure: Testing the Speaker

- During the test, a few music notes will be played in sequence and repeatedly. Listen carefully and select the number of notes you hear in the sequence. If you enter a tone number incorrectly, run the test again. If you hear nothing, select No sound.
NOTE: Some
HP models have a Volume control in the test window. Make sure you increase the volume level before making a music tone selection.
Figure: Entering the number of notes

- When the Audio Test is complete, the results are displayed on the screen.
- If the audio test passes, return to the Main menu to exit and restart the computer.
- If the audio fails the tests, a failure ID will be provided. Write down the information so you have it available when you contact HP Customer Support. The information is also available in the Test Logs, on the Diagnostics UEFI main page.
Figure: Audio test results

If the Audio Playback Test passed without errors but the audio problems are still present, continue to the next step.