Browse Source

设置ConvertNumMode为3

warr.qian 2 years ago
parent
commit
1d74165f3c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Tencent/ASRApi.cs

+ 1 - 0
Tencent/ASRApi.cs

@@ -45,6 +45,7 @@ namespace WingASRService.Tencent
                 req.Url = url;
                 req.VoiceFormat = fileType;
                 req.UsrAudioKey = "any";
+                req.ConvertNumMode = 3;
                 // 返回的resp是一个SentenceRecognitionResponse的实例,与请求对象对应
                 var resp = client.SentenceRecognitionSync(req);
                 return (message: resp.Result, isSuccess: true);