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| Filename | tone-5s.wav |
| Format | WAV |
| Size | 431 KB (441,044 bytes) |
| MIME type | audio/wav |
| SHA-256 | 5ed9e874d6e6cb55d098831ac4e965b03633d8186b6dae7128decda2e3f90c02 |
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
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