!2763 feat(#I56GYE): add RecognizerStatus on callback

* chore: bump version 6.6.5
* feat: 增加自动识别时长配置
This commit is contained in:
Argo 2022-05-09 05:43:35 +00:00
parent 14d94ec419
commit efafdc3fe6
2 changed files with 7 additions and 2 deletions

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">
<PropertyGroup>
<Version>6.6.3</Version>
<Version>6.6.5</Version>
</PropertyGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net5.0'">

View File

@ -17,7 +17,7 @@ public class RecognizerOption
/// <summary>
/// 获得/设置 回调方法 默认 null
/// </summary>
public Func<string, Task>? Callback { get; set; }
public Func<RecognizerStatus, string?, Task>? Callback { get; set; }
/// <summary>
/// 获得/设置 识别语音文化 默认 zh-CN
@ -28,4 +28,9 @@ public class RecognizerOption
/// 获得/设置 结果文化 默认 zh-CN
/// </summary>
public string TargetLanguage { get; set; } = "zh-CN";
/// <summary>
/// 获得/设置 自动识别时间 默认 5000 设置 0 时禁用需要手动关闭
/// </summary>
public int AutoRecoginzerElapsedMilliseconds { get; set; } = 5000;
}