Dummy audio file for testing purposes

Are there any audio files that are freely available that can be used as demo sound when posting on here, or coding playgrounds such as jsfiddle, or codepen?

Audio files that are allowed to be hot linked (“direct linked”) and are able to be freely shared.

For testing purposes.

<audio controls>
  <source src="" type="audio/mpeg">
</audio>

Here you go: https://developers.google.com/actions/tools/sound-library/

It’s not allowed.

Terms and Conditions

Your use of this sound library (including the music files in this library) is subject to the Actions on Google Terms of Service. Sounds and music from this library are intended solely for use by you in Actions that you create.

By downloading music from this library, you agree that you will not:

  • Make available, distribute or perform the sound and music files from this library separately from Actions into which you have incorporated these sound and music files, on Google platforms including Actions on Google (e.g., standalone distribution of these files, or use on non-Google platforms, is not permitted).
  • Use the sound and music files from this library in an illegal manner or in connection with any illegal content.

Oh I see. Use freesound in this case.

That’s not good either because those audio files have to be downloaded.

I’m just looking for a direct link that can be used for testing audio in codes.

<audio controls>
  <source src="" type="audio/mpeg">
</audio>

And the audio files would need to be no copyright.

http://www.kozco.com/tech/soundtests.html

I’m just looking for a direct link that can be used for testing audio in codes.

You need to properly grab the link to the sound:

  1. right-click on the button download;
  2. Click on Inspect;
  3. You’ll see the URL to the sound inside <a href="URL">;
  4. Right-click on the URL, then click on Copy link address.

And the audio files would need to be no copyright.

Freesound has a Creative Commons license. That would do enough for testing.
Besides, I don’t know of any material that has the Public Domain Mark 1.0 you mentioned.

These are labeled no copyright
https://musopen.org/music/recordings/?instrument=203

Right, then, for instance, you go here: https://musopen.org/music/3998-cello-suite-no-1-in-g-major-bwv-1007/#recordings

Right-click on the title, then Inspect. You’ll see this:

You’ll need to double-click then copy the URL inside <audio src="">, then paste it in your project.

That would be going against their Terms of Service.
https://musopen.org/page/tos/

Why is so? That’s 100% legal.

You can even download the audio file, upload it via Google Drive or Dropbox, then reference the link in your project.