Skip to contents

This function reads a stereo wave file, converts it to mono by averaging both channels, and optionally removes the DC offset from the audio signal. The removal of the DC offset is controlled by the remove.dc.off parameter. This function uses the tuneR package to read and convert the wave file and the seewave package to remove the DC offset.

Usage

import_stereo_mix(audio.file, remove.dc.off = TRUE)

Arguments

audio.file

A string specifying the path to the wave file.

remove.dc.off

A logical parameter; if TRUE, the DC offset is removed from the wave object.

Value

Returns a wave object processed based on the input parameters.

Examples

# Import a wave file as mono with DC offset removal
wave <- import.as.mono("path/to/your/audiofile.wav")
#> Error in import.as.mono("path/to/your/audiofile.wav"): could not find function "import.as.mono"