Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个以 aif 格式保存的声音文件数据库,每个数据库有 19 个通道。为了进一步处理它们,我需要以 wav 格式分别保存每个通道。我使用 aifc 和 audioread 模块来获取每个文件的基本信息,但它们都没有拆分通道的选项。我将不胜感激!
在:
with audioread.audio_open('1.aif') as f: print(f.channels, f.samplerate, f.duration)
出去:
19 2000 900.0