OfflineTranscriptionPlatform class abstract

The interface that implementations of offline_transcription must implement.

Platform implementations should extend this class rather than implement it as offline_transcription does not consider newly added methods to be breaking changes. Extending this class (using extends) ensures that the subclass will get the default implementation, while platform implementations that implements this interface will be broken by newly added methods.

Inheritance
  • Object
  • PlatformInterface
  • OfflineTranscriptionPlatform
Implementers

Constructors

OfflineTranscriptionPlatform.new()
Constructs a OfflineTranscriptionPlatform.

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

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

Operators

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

Static Properties

instance OfflineTranscriptionPlatform
The default instance of OfflineTranscriptionPlatform to use.
getter/setter pair