// 百度语音识别本地文件,要获取百度云的AipSdk.Dll文件
public static void AsrData()
{
// 设置APPID/AK/SK
var APP_ID = "xxx";
var API_KEY = "xxx";
var SECRET_KEY = "xxx ";
var client = new Baidu.Aip.Speech.Asr(API_KEY, SECRET_KEY);
client.Timeout = 60000; // 修改超时时间
string path = "./b7e564db970b4257b1d3fd5da9b44f67.wav";
var data = File.ReadAllBytes(path);
var result = client.Recognize(data, "wav", 8000);
Console.WriteLine(result);
Console.ReadKey();
}