Test files › Audio and video › tone-5s.wav

5-second tone WAV file

5 seconds of a 440 Hz sine tone, 16-bit PCM mono at 44.1 kHz.

↓ Download tone-5s.wav
Filenametone-5s.wav
FormatWAV
Size431 KB (441,044 bytes)
MIME typeaudio/wav
SHA-2565ed9e874d6e6cb55d098831ac4e965b03633d8186b6dae7128decda2e3f90c02
What this file catchesBaseline playback and waveform rendering. An audible tone makes silent failures obvious.

Handle it in code

Each snippet below was run against this exact file with Python 3.14.4 and Node 24.15.0 when this page was built, and the output shown is what it printed.

Python

Compare what the header declares with what the file holds, and refuse a header that is itself cut short.

import wave

try:
    with wave.open("tone-5s.wav") as w:
        declared = w.getnframes()
        frame_size = w.getsampwidth() * w.getnchannels()
        actual = len(w.readframes(declared)) // frame_size
    note = "truncated or lying header" if actual < declared else "ok"
    print(f"header says {declared} frames, file holds {actual}: {note}")
except (wave.Error, EOFError) as e:
    print("rejected:", str(e) or "the header is cut short")

Run against this file, it prints: header says 220500 frames, file holds 220500: ok

Related guides and tools

Sample MP3, WAV and MP4 filesFile signaturesMIME typesCheck a file's real typeVerify its SHA-256

Download & verify

curl -fsSL -o "tone-5s.wav" "https://files.hexaqa.com/audio/tone-5s.wav"
curl -fsSL "https://files.hexaqa.com/audio/tone-5s.wav" | sha256sum # expect: 5ed9e874d6e6cb55d098831ac4e965b03633d8186b6dae7128decda2e3f90c02

More audio and video test files

declared-length-mismatch.wavno-id3-raw.mp3silence-30s.wavsilence-5s.mp3truncated-header.wavvery-short-10ms.wavempty-ftyp-only.mp4fake-mp4-wrong-magic.mp4

← All Audio and video files