mirror of
https://gitee.com/LongbowEnterprise/BootstrapBlazor.git
synced 2024-11-30 02:58:37 +08:00
!2763 feat(#I56GYE): add RecognizerStatus on callback
* chore: bump version 6.6.5 * feat: 增加自动识别时长配置
This commit is contained in:
parent
14d94ec419
commit
efafdc3fe6
@ -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'">
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user