gpt4 book ai didi

python - 由于 : file does not start with RIFF id,无法将文件 file.wav 作为 WAV 打开

转载 作者:太空宇宙 更新时间:2023-11-04 01:14:17 30 4
gpt4 key购买 nike

尝试在 Python 中打开 RIFF 文件(据我所知,它是一种 WAV)时出现此错误。

Failed to open file file.wav as a WAV due to: file does not start with RIFF id

当我用各种工具检查该文件时,它让我相信它一个 WAV/RIFF 文件。

$ file file.wav 
file.wav: MBWF/RF64 audio, stereo 96000 Hz


$ file -i file.wav
file.wav: audio/x-wav; charset=binary




$ mediainfo file.wav
General
Complete name : file.wav
Format : Wave
Format profile : RF64
File size : 4.10 GiB
Duration : 2h 7mn
Overall bit rate mode : Constant
Overall bit rate : 4 608 Kbps

Audio
Format : PCM
Format settings, Endianness : Little
Format settings, Sign : Signed
Codec ID : 1
Duration : 2h 7mn
Bit rate mode : Constant
Bit rate : 4 608 Kbps
Channel(s) : 2 channels
Sampling rate : 96.0 KHz
Bit depth : 24 bits
Stream size : 4.10 GiB (100%)

最佳答案

你有一个 64-bit RIFF . wave 不支持 64 位 RIFF 文件。

关于python - 由于 : file does not start with RIFF id,无法将文件 file.wav 作为 WAV 打开,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25672289/

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