# NOT RUN {
{
# save sound file examples
data(list = c("Phae.long1", "Phae.long2","lbh_selec_table"))
sil <- silence(samp.rate = 22500, duration = 3, xunit = "time")
wv1 <- pastew(pastew(Phae.long1, sil, f = 22500, output = "Wave"),
Phae.long2, f = 22500, output = "Wave")
#check silence in between amplitude peaks
env(wv1)
#save wave file
writeWave(object = wv1, filename = file.path(tempdir(), "wv1.wav"),
extensible = FALSE)
#remove silence
# remove_silence(files = "wv1.wav", pb = FALSE, path = tempdir())
#check this floder
tempdir()
}
# }
Run the code above in your browser using DataLab