基于numpy的nist sph音频文件读取器
sphfile的Python项目详细描述
基于NUMPY的NIST SPH音频文件读取器。这是用的 对于NIST SPH音频文件,最可能的用途是 将Tedlium_Release2音频提取为 标准工具很容易处理。
注意,这个库不需要任何外部工具 例如vox或gstreamer。它只是将数据加载到 numpy数组,然后让您将其转储回wave 文件夹。
用法
fromsphfileimportSPHFilesph=SPHFile('TEDLIUM_release2/test/sph/JamesCameron_2010.sph')# Note that the following loads the whole file into ramprint(sph.format)# write out a wav file with content from 111.29 to 123.57 secondssph.write_wav('test.wav',111.29,123.57)
要求
- 努比
许可证
MIT License (c) 2017 Mike C. Fletcher