AppleSpeechHostApi class
Registered when the Speech framework can be imported.
Constructors
- AppleSpeechHostApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''})
-
Constructor for AppleSpeechHostApi. The
binaryMessengernamed argument is available for dependency injection. If it is left null, the default BinaryMessenger will be used which routes to the host platform.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- pigeonVar_binaryMessenger → BinaryMessenger?
-
final
- pigeonVar_messageChannelSuffix → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
activeRequestCount(
) → Future< int> -
assetStatus(
List< ModuleConfigMessage> modules) → Future<AssetStatusMessage> -
bestAvailableAudioFormat(
List< ModuleConfigMessage> modules) → Future<AudioFormatMessage?> -
cancelAll(
) → Future< int> - Cancels every request; returns how many were active.
-
cancelRequest(
int requestId) → Future< void> - Cancels a request. No further events are sent for it.
-
endModelRetention(
) → Future< void> -
finishRequest(
int requestId) → Future< void> - Ends live input (stops the microphone) and finalizes the results.
-
installAssets(
int requestId, List< ModuleConfigMessage> modules) → Future<bool> -
Downloads and installs assets; returns false when nothing was needed.
Progress arrives through
onInstallProgress. -
installedLocales(
ModuleKindMessage kind) → Future< List< String> > -
maximumReservedLocales(
) → Future< int> -
microphoneAuthorizationStatus(
) → Future< AuthorizationStatusMessage> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
recognizerInfo(
String? locale) → Future< RecognizerInfoMessage?> -
Null when no recognizer exists for
locale. -
recognizerSupportedLocales(
) → Future< List< String> > -
releaseLocale(
String locale) → Future< bool> -
requestMicrophoneAuthorization(
) → Future< AuthorizationStatusMessage> -
requestSpeechAuthorization(
) → Future< AuthorizationStatusMessage> -
reservedLocales(
) → Future< List< String> > -
reserveLocale(
String locale) → Future< bool> -
speechAuthorizationStatus(
) → Future< AuthorizationStatusMessage> -
speechTranscriberIsAvailable(
) → Future< bool> -
startAnalysis(
AnalysisRequestMessage request) → Future< void> - Starts an analysis; results arrive through the callback API.
-
startRecognition(
RecognitionRequestMessage request) → Future< void> - Starts recognition; results arrive through the callback API.
-
supportedLocaleEquivalent(
ModuleKindMessage kind, String locale) → Future< String?> -
supportedLocales(
ModuleKindMessage kind) → Future< List< String> > -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
pigeonChannelCodec
→ const MessageCodec<
Object?>