CactusTTS class

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
supportsAudio Future<bool>
no setter

Methods

applyLoraAdapters(List<LoraAdapterInfo> adapters) Future<void>
detokenize(List<int> tokens) Future<String>
dispose() → void
generate(String text, {int maxTokens = 256, double? temperature, int? topK, double? topP, List<String>? stopSequences, CactusTokenCallback? onToken}) Future<CactusCompletionResult>
getLoadedLoraAdapters() Future<List<LoraAdapterInfo>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeLoraAdapters() Future<void>
rewind() Future<void>
stopCompletion() Future<void>
tokenize(String text) Future<List<int>>
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

init({required String modelUrl, String? modelFilename, int contextSize = 2048, int gpuLayers = 0, int threads = 4, CactusProgressCallback? onProgress}) Future<CactusTTS>