What is a WAV file?
A WAV file stores waveform samples in sequence inside the RIFF container format. The header records the number of channels, the sampling rate (samples per second) and the bits per sample (16-bit, 24-bit and so on).
Values are stored as integers (8, 16, 24 or 32-bit) or floating point (32 or 64-bit). In an integer WAV, the values are not the physical quantity measured by the sensor (acceleration, sound pressure and so on) but numbers on a scale set by the recorder. Converting them to physical units requires the recorder's sensitivity (calibration value).
Ways to open WAV files
| Method | What it is | Keep in mind |
|---|---|---|
| Audacity | A free audio editor. It shows waveforms, and Sample Data Export writes sample values to a text file | Requires installation. The export covers the first 100 samples by default and at most one million samples |
| Python (scipy etc.) | scipy.io.wavfile and similar libraries read a WAV file as a numeric array | Requires a Python environment and code |
| Excel | — | Cannot open WAV files; you need to convert them to CSV or similar first |
| LOGADEC | Time-series viewing and analysis software with no installation. Each channel is loaded as a series | Compressed WAV (ADPCM and the like) and RF64 files over 4 GB are not supported (it stops and tells you why) |
Opening a WAV file in LOGADEC
- Start it from Try it in your browser, or download the free version and open the extracted HTML file in Google Chrome or Microsoft Edge.
- Click CSV/Excel and choose the .wav file (or drag and drop it onto the pane).
- The channels appear as columns named Ch1, Ch2 and so on. The X axis is set to [Generate from sampling interval], with the interval set to the inverse of the sampling rate.
- For integer WAV files, choose [Normalized (±1)] (largest value = 1) or [Raw values] (the recorded integers) under [Value scale] in [Format settings]. [Raw values] is handy when you multiply by the recorder's sensitivity to get physical units. Floating-point WAV files keep their recorded values either way.
- Click [Import], then click [Select all] in the [Series] tab.
WAV files tend to contain many points. For example, 10 minutes at 48 kHz is 28.8 million points per channel. Long recordings take time to load.
See "Excel and TDMS files" (loading by format) in Loading Data in the user manual for details.
Features often used with WAV data
- Frequency analysis: [FFT], STFT and wavelets for the frequency content of vibration and noise (Frequency Analysis, How to run an FFT on CSV data).
- Filters: low-pass, high-pass, band-pass, notch and more, per series, without changing the source data.
- Anomaly detection: find outliers such as impacts and knocks, and change points where the condition shifts (How to find outliers and change points).
- Export to CSV: [Export data] writes the loaded waveforms to CSV, TSV or Excel — handy for converting WAV to CSV.
- Batch import: [Folder] imports all WAV files in a folder at once (tick WAV under [File types]).