testing library

Injectable platform bindings and generated messages for tests.

Classes

AnalysisRequestMessage
AnalyzerOptionsMessage
AnalyzerResultMessage
A result from one module of an analysis.
AppleSpeechCallbackApi
Native -> Dart.
AppleSpeechHostApi
Registered when the Speech framework can be imported.
AppleSpeechPlatformApi
Always available.
AudioFormatMessage
ErrorMessage
ModuleConfigMessage
A SpeechTranscriber, DictationTranscriber or SpeechDetector.
RecognitionMetadataMessage
RecognitionRequestMessage
RecognitionResultMessage
RecognizerInfoMessage
RequestSink
Receives the native events of one request.
SpeechBindings
The platform APIs the apple_speech library talks to.
TranscriptionMessage
TranscriptionSegmentMessage
One word or phrase of a transcription.

Enums

AssetStatusMessage
Mirrors AssetInventory.Status.
AudioSourceKindMessage
Where audio comes from.
AuthorizationStatusMessage
Mirrors SFSpeechRecognizerAuthorizationStatus and AVAuthorizationStatus.
ContentHintMessage
Mirrors DictationTranscriber.ContentHint (except custom language models).
DictationPresetMessage
Mirrors DictationTranscriber.Preset.
ModelRetentionMessage
Mirrors SpeechAnalyzer.Options.ModelRetention.
ModuleKindMessage
The kind of a SpeechModule.
ReportingOptionMessage
Mirrors SpeechTranscriber.ReportingOption and DictationTranscriber.ReportingOption.
ResultAttributeOptionMessage
Mirrors ResultAttributeOption.
SensitivityLevelMessage
Mirrors SpeechDetector.SensitivityLevel.
SpeechTranscriberPresetMessage
Mirrors SpeechTranscriber.Preset.
TaskHintMessage
Mirrors SFSpeechRecognitionTaskHint.
TaskPriorityMessage
Mirrors TaskPriority.
TranscriptionOptionMessage
Mirrors SpeechTranscriber.TranscriptionOption and DictationTranscriber.TranscriptionOption.

Functions

wrapResponse({Object? result, PlatformException? error, bool empty = false}) → List<Object?>