MethodChannelOfflineTranscription class

An implementation of OfflineTranscriptionPlatform that uses method channels.

Inheritance

Properties

hashCode int
The hash code for this object.
no setterinherited
methodChannel MethodChannel
The method channel used to interact with the native platform.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

checkPermission() Future<String?>
Checks if speech recognition permission is granted.
override
downloadModel(String modelUrl, String destinationPath, {String? language}) Future<bool?>
Downloads a model for offline speech recognition (Android only).
override
getPlatformVersion() Future<String?>
Returns the current platform version.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestPermission() Future<String?>
Requests speech recognition permission.
override
toString() String
A string representation of this object.
inherited
transcribeAudioFile(String audioFilePath, {String? modelPath}) Future<String?>
Transcribes an audio file at the given path.
override
transcribeAudioFileWithMetadata(String audioFilePath, {String? modelPath, String? language, bool forceTranscription = false}) Future<String?>
Transcribes an audio file at the given path and returns metadata.
override

Operators

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