TranscribeRequestDto constructor
const
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,
Implementation
const factory 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,
}) = _TranscribeRequestDto;