语音识别echo版-asrEcho

返回内容介绍
public static String sample(TAipSpeech client) throws Exception {
 //参数内容
  String filePath ="G:/8k.pcm";//本地文件路径
  byte[] audio = FileUtil.readFileByBytes(filePath);
  int format = 1;//语音压缩格式编码 PCM-1 WAV-2 AMR-3 SILK-4
  String result = client.asrEcho(filePath,format);//语音识别echo版 本地文件路径
  String result = client.asrEcho(audio ,format);//语音识别echo版  本地文件byte数组
  return result;
}