首页 > 解决方案 > 如何在 Warbler 中使用数据类型 wav

问题描述

抱歉,这可能是一个新手问题..

在此示例中删除波形文件中的频道: https ://marce10.github.io/warbleR/reference/remove_channels.html

没有关于诸如“filename.wav”之类的 wav 文件的信息。

如果我像这样用我的 wav 文件“ambiance_destailleurs.wav”更改示例是否正确?

    {
  # save sound file examples
  ambiance_destailleurs <- file('ambiance_destailleurs.wav')
  data(ambiance_destailleurs)
  ambiance_destailleurs.1.2 <- stereo(ambiance_destailleurs, ambiance_destailleurs)
  
  writeWave(ambiance_destailleurs.1.2, file.path(tempdir(), "ambiance_destailleurs.1.2.wav"))
  
  rm_channels(channels = 1, path = tempdir())
  
  #check this floder
  tempdir()
}

但它不起作用...

谢谢你的帮助。

标签: r

解决方案


推荐阅读