How do I load an MP3 from user:// into an AudioStreamPlayer?

Godot Version

4.7.2

Question

How do I grab an MP3 (user://current/song.mp3) and put it into an AudioStreamPlayer node as a stream to play it? My current code looks like

if FileAccess.file_exists("user://current/song.mp3"):
	$AudioStreamPlayer.stream = load("user://current/song.mp3")

but it's saying that there's not a resource file there. What do I do here?

Use AudioStreamMP3.load_from_file().

There’s a documentation page about loading files at runtime: