SpeechrecognizerPlatform class abstract

Inheritance
  • Object
  • PlatformInterface
  • SpeechrecognizerPlatform
Implementers

Constructors

SpeechrecognizerPlatform()

Properties

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

Methods

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

Operators

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

Static Properties

instance SpeechrecognizerPlatform
getter/setter pair