对于我的工作,我需要分析大型的.wav文件(> 208 MB),并使用R软件包seewave和tuneR。我使用readWave函数将每个文件放入R环境中,使用readWave函数如下:快速分割使用R的大型.wav文件的方法
tr1_1 = readWave("TR1_edit.WAV", from = 0, to = 0.5, units = "minutes")
tr1_2= readWave("TR1_edit.WAV", from = 0.5, to = 1, units = "minutes")
tr1_3= readWave("TR1_edit.WAV", from = 1, to = 1.5, units = "minutes")
tr1_4= readWave("TR1_edit.WAV", from = 1.5, to = 2, units = "minutes")
tr1_5= readWave("TR1_edit.WAV", from = 2, to = 2.5, units = "minutes")
等等。此方法有效,但效率不高或漂亮。有没有办法更有效地导入和分割大的.wav类文件?
你试过'for'循环或“应用”家庭功能? – epo3