TranscribeRequestDto class
Transcribe request sent to whisper.cpp
- Implemented types
- Annotations
-
- @freezed
Constructors
- TranscribeRequestDto({required String audio, required String model, @JsonKey(name: 'is_translate') required bool isTranslate, required int threads, @JsonKey(name: 'is_verbose') required bool isVerbose, required String language, @JsonKey(name: 'is_special_tokens') required bool isSpecialTokens, @JsonKey(name: 'is_no_timestamps') required bool isNoTimestamps, @JsonKey(name: 'n_processors') required int nProcessors, @JsonKey(name: 'split_on_word') required bool splitOnWord, @JsonKey(name: 'no_fallback') required bool noFallback, required bool diarize, @JsonKey(name: 'speed_up') required bool speedUp})
-
constfactory
-
TranscribeRequestDto.fromJson(Map<
String, dynamic> json) -
Create request json
factory
- TranscribeRequestDto.fromTranscribeRequest(TranscribeRequest request, String modelPath)
-
Convert
request
to TranscribeRequestDto with specifiedmodelPath
factory
Properties
- audio → String
-
no setterinherited
-
copyWith
→ $TranscribeRequestDtoCopyWith<
TranscribeRequestDto> -
no setterinherited
- diarize → bool
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isNoTimestamps → bool
-
no setterinherited
- isSpecialTokens → bool
-
no setterinherited
- isTranslate → bool
-
no setterinherited
- isVerbose → bool
-
no setterinherited
- language → String
-
no setterinherited
- model → String
-
no setterinherited
- noFallback → bool
-
no setterinherited
- nProcessors → int
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- specialType → String
-
Type of request or response
no setteroverride
- speedUp → bool
-
no setterinherited
- splitOnWord → bool
-
no setterinherited
- threads → int
-
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toRequestString(
) → String -
Convert current request to String encoded whisper json
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited