Basically you will need to upload your sound files to a file hosting site and access them on-line.
While this is certainly correct, it's important to know, RNdizzle, that you need to find a host which allows hotlinking of the audio file. I discovered that these places are few and far between.
I'm not sure why it's so difficult to find hosts that allow hotlinking of audio files - I don't see how it's any different to the countless sites that allow hotlinking of images - but I could only find one place, and even then, after registering, I was told that due to heavy traffic they were only allowing hotlinking for premium users at the moment.
Point I'm making, is that you'll find plenty of places that host your file and provide you with a link, but this is just a link to your file at THEIR site, not the file itself.
The link you'll need for your file needs to end with .mp3 (or whatever format you use)
I had to get my brother to host mine on his own webspace.
Comments
Basically you will need to upload your sound files to a file hosting site and access them on-line.
This thread may help you, the hosting part is generic to any story format.
The audio element example in Jud_Casper's question post is the code you use to play audio files in Harlowe.
The later information from TheMadExile explains which macros to use to cache and play the audio files if you are using SugarCube.
http://www.motoslave.net/sugarcube/2/docs/macros.html#macrocat-audio
I'm not sure why it's so difficult to find hosts that allow hotlinking of audio files - I don't see how it's any different to the countless sites that allow hotlinking of images - but I could only find one place, and even then, after registering, I was told that due to heavy traffic they were only allowing hotlinking for premium users at the moment.
Point I'm making, is that you'll find plenty of places that host your file and provide you with a link, but this is just a link to your file at THEIR site, not the file itself.
The link you'll need for your file needs to end with .mp3 (or whatever format you use)
I had to get my brother to host mine on his own webspace.
Create a passage called StoryInit (unlesss you already have the passage) and add the following (replacing my file path with yours):
Then in the passage where you want the clip to play, add: NB: No idea where that semi-colon is coming from on the end of the first macro, but it shouldn't be there.