gpt4 book ai didi

r - 无法在R中读取MP3文件

转载 作者:行者123 更新时间:2023-11-30 08:49:33 26 4
gpt4 key购买 nike

library(tuneR)
Awaaz <- readWave("C:/Users/Ram/Downloads/XC312210 - Mallee Emu-wren - Stipiturus mallee.mp3" ,
from = 1, to = Inf,"samples", header = FALSE, toWaveMC = NULL)

出现以下错误消息...

Error in while (!(RIFF == "RIFF" && WAVE == "WAVE")) { : missing value where TRUE/FALSE needed

最佳答案

TuneR

  • readWave: reading Wave files
  • readMP3: read an MPEG-2 layer 3 file into a Wave object

readWave 读取 Wave 文件,readMP3 读取 MP3 文件。足够简单。

关于r - 无法在R中读取MP3文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42130787/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com