TranscribeRequestDto class

Implemented types
Annotations
  • @freezed

Constructors

TranscribeRequestDto({required String audio, required String model, @JsonKey.new(name: 'is_translate') required bool isTranslate, required int threads, @JsonKey.new(name: 'is_verbose') required bool isVerbose, required String language, @JsonKey.new(name: 'is_special_tokens') required bool isSpecialTokens, @JsonKey.new(name: 'is_no_timestamps') required bool isNoTimestamps, @JsonKey.new(name: 'n_processors') required int nProcessors, @JsonKey.new(name: 'split_on_word') required bool splitOnWord, @JsonKey.new(name: 'no_fallback') required bool noFallback, required bool diarize, @JsonKey.new(name: 'speed_up') required bool speedUp})
const
factory
TranscribeRequestDto.fromJson(Map<String, dynamic> json)
Create request json
factory
TranscribeRequestDto.fromTranscribeRequest(TranscribeRequest request, String modelPath)
Convert request to TranscribeRequestDto with specified modelPath
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