Class RecognizerOption
- Namespace
- BootstrapBlazor.Components
- Assembly
- BootstrapBlazor.dll
语音识别配置类
public class RecognizerOption
- Inheritance
-
RecognizerOption
- Inherited Members
- Extension Methods
Constructors
RecognizerOption()
public RecognizerOption()
Properties
AutoRecoginzerElapsedMilliseconds
获得/设置 自动识别时间 默认 5000 设置 0 时禁用需要手动关闭
public int AutoRecoginzerElapsedMilliseconds { get; set; }
Property Value
Callback
获得/设置 回调方法 默认 null
public Func<RecognizerStatus, string?, Task>? Callback { get; set; }
Property Value
MethodName
获得/设置 语音识别指令名称 默认 null
public string? MethodName { get; set; }
Property Value
SpeechRecognitionLanguage
获得/设置 识别语音文化 默认 zh-CN
public string SpeechRecognitionLanguage { get; set; }
Property Value
TargetLanguage
获得/设置 结果文化 默认 zh-CN
public string TargetLanguage { get; set; }