How do i turn raw data into a sound?

you're using a computer
the bare minimum of a computer is an electrical signal
that signal is treated as either on or off
on/off is read by a computer as 1/0
1s and 0s are binary
so yes, it's binary

that binary is used to represent printable characters
scratch reads those printable characters as data
scratch uses that data to create a sound
that sound is transmitted over the internet
snap reads the transmission
snap gets printable characters
snap reads those printable characters as data
snap uses that data to recreate the sound

usually binary is used to refer to anything that isn't text.

eh yeah
but binary is used for everything
a computer finds the right characters to print through binary ascii utf codes
that's how it prints all of those weird characters in the sound data

it said invalid token: <