If you do not have an audio playback device (such as a sound card, integrated or dedicated, or a pair of USB headphones that act as a separate audio playback device), you will not be able to use OBS.
If you do have a sound card and you're still getting this error, something else might be wrong, and we're going to need further details on exactly what kind of environment you're trying to run OBS in.