Create spectrogram image as raster
create_spectrogram_image_as_raster(
audioFilePath,
begin = 0,
end = 0,
windowSizeInSecs = 0.01,
alpha = 0.16,
lowerFreq = 0,
upperFreq = 5000,
window = "GAUSS",
dynRangeInDB = 70,
audioChannel = 1,
preEmphasisFilterFactor = 0.97,
invert = FALSE
)
a image raster object
path to audio file to plot spectrogram of
begin time in seconds (passed into begin parameter of wrassp::read.AsspDataObj
)
end time in seconds (passed into end parameter of wrassp::read.AsspDataObj
)
window size in seconds
value of spectrogram
lower frequency limit of spectrogram
upper frequency limit of spectrogram
window type used in spectrogram calculation. Allowed values are:
"BARTLETT"
"BARTLETTHANN"
"BLACKMAN"
"COSINE"
"GAUSS" (the default)
"HAMMING"
"HANN"
"LANCZOS"
"RECTANGULAR"
"TRIANGULAR"
dynamic range in DB of spectrogram
channel of audio file to draw spectrogram of (only applicable when using multi-channel audio files)
used in time domain for amplifying high-freqs
invert the colors of the spectrogram