PluginRegistry class
Plugin registry for managing plugins.
Properties
-
allPlugins
→ List<
WhisperKitPlugin> -
Get all registered plugins.
no setter
-
formatters
→ List<
TextFormatterPlugin> -
Get all text formatters.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
postprocessors
→ List<
PostProcessorPlugin> -
Get all post-processors.
no setter
-
preprocessors
→ List<
AudioPreprocessorPlugin> -
Get all audio preprocessors.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
disposeAll(
) → Future< void> - Dispose all plugins and clear registry.
-
getPlugin(
String id) → WhisperKitPlugin? - Get a registered plugin by ID.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
register(
WhisperKitPlugin plugin) → Future< void> - Register a plugin.
-
runFormatters(
String text) → String - Run all text formatters on text.
-
runPostprocessors(
WhisperTranscribeResponse response) → Future< WhisperTranscribeResponse> - Run all post-processors on response.
-
runPreprocessors(
List< int> audioData) → Future<List< int> > - Run all preprocessors on audio data.
-
toString(
) → String -
A string representation of this object.
inherited
-
unregister(
String pluginId) → Future< void> - Unregister a plugin.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → PluginRegistry
-
Singleton instance.
no setter