FreeBASIC had a way to accomplish this. I remember the brief time I used FB, and made one recording while learning the language: swearwords.wav
Hey, pretty cool, Zach! I got by on javascript and html. Just change the path to wherever you keep your QB64 files, and, of course, the recording.wav needs to be in that folder. Just save the code below as whatever.html, in your QB64 folder, click it, and it will appear in your default browser. Click the play button to hear Zach's recording.
<!Doctype html>
<html>
<head>
<title>Audio</title>
</head>
<body>
<div style="margin:200px auto; text-align:center; font-weight:bold; font-size:24px;">
<script>
function play() {
var audio = document.getElementById("audio");
audio.play();
}
</script><div style="display:inline;">Pete is your SCREEN 0 Hero!</div>
<input style="font-size:24px;" type="button" value="PLAY" onclick="play()">
<audio id="audio" src="file:///C:\qb64\recording.wav"></audio>
</div>
</body>
</html>
Pete