此转换需要使用ffmpeg 假设有目录 d:\录音 目录有 张三.m4a, 李四.m4a xxx.m4a(其他任意格式音频触类旁通可以把 *.m4a改成*.*).批量转换成采样率16K,有符号,16bit 小端wav格式音频. 新建一个批处理文件,放在d:\录音\convert.bat,代码如下 @echo off title 正在批量转换 if not exist wav mkdir wav for /f %%i in ('dir /b *.m4a') do ffmpeg -i %%i -ac…
public static string CreateJsonParameters(DataTable dt) { /**/ /**/ /**/ /* /**************************************************************************** * Without goingin to the depth of the functioning of this Method, i will try to give an overview…
csv文件 code from xml.etree.ElementTree import Element,ElementTree,tostring import json,csv def csvtoxml(fname): with open(fname,'r') as f: reader=csv.reader(f) header=next(reader) root=Element('Daaa') print('root',len(root)) for row in reader: erow=El…