MethodChannelSpeechrecognizer class

基于 MethodChannel 的 SpeechrecognizerPlatform 实现

Inheritance

Properties

hashCode int
The hash code for this object.
no setterinherited
methodChannel MethodChannel
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getLastSpeechRecognitionResult() Future<SpeechRecognitionResult?>
获取最后一次识别结果
override
getPlatformVersion() Future<String?>
获取平台版本
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeListeners() → void
移除所有回调监听器
override
requestPermission() Future<bool>
请求麦克风权限
override
setListeners({OnSpeechStart? onStart, OnSpeechResult? onResult, OnSpeechComplete? onComplete, OnSpeechError? onError}) → void
设置回调监听器
override
startSpeechRecognition({String? language, String? sessionId, int? recognitionMode, SpeechAudioInfo? audioInfo}) Future<String?>
开始语音识别
override
stopSpeechRecognition() Future<void>
停止语音识别
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited