WAV/PCM raw audio import

Import WAV and raw PCM samples and verify the parameters needed to interpret and display the signal.

acq.wav · Version 1.0.0

Use this module to store a PCM signal from a WAV container as audio.waveform. The toni.wav fixture is stereo 16-bit little-endian PCM at 8000 samples per second, with 4000 frames and a duration of 0.5 s. The channels contain 440 Hz and 660 Hz sinusoids. Queue the file, check its proposed ID, and verify channel count, sample rate, bit depth, and duration in the preview.

Leave Dataset ID (blank = from file name) blank to accept the proposed value or assign an ID in the queue row. After import, activate and open the Dataset. Check the codec and bytes in its properties. For ADPCM WAV, use Audio file import if the toolchain supports it. A .wav extension alone does not establish that the internal encoding is compatible.

Exercise files

Sources, licenses, and SHA-256

Screenshots

Open a screenshot to view it at full size.

toni.wav added in Acquisition with Dataset ID suono_pcm. The row shows the import settings.
toni.wav added in Acquisition with Dataset ID suono_pcm. The row shows the import settings.
Pending Preview of toni.wav with PCM codec, two channels, and 8000 Hz sample rate.
Pending Preview of toni.wav with PCM codec, two channels, and 8000 Hz sample rate.
After Import, the browser shows Active Dataset: suono_pcm. The Technical Details / Provenance tab describes the recorded result.
After Import, the browser shows Active Dataset: suono_pcm. The Technical Details / Provenance tab describes the recorded result.
The audio viewer for suono_pcm shows the waveform of the first of two channels from 0 to 0.5 s.
The audio viewer for suono_pcm shows the waveform of the first of two channels from 0 to 0.5 s.

Controls and settings

Scrollbar

Use the horizontal or vertical scrollbar to reach fields, entries, or text outside the visible area.

Dataset ID (blank = from file name)

Leave blank to use the ID derived from the name, or enter a proposed ID. Check the row before Import.

The field is initially blank.

Scrollbar

Use the horizontal or vertical scrollbar to reach fields, entries, or text outside the visible area.