TranscribeRequestDto constructor

const TranscribeRequestDto({
  1. required String audio,
  2. required String model,
  3. @JsonKey(name: "is_translate") required bool isTranslate,
  4. required int threads,
  5. @JsonKey(name: "is_verbose") required bool isVerbose,
  6. required String language,
  7. @JsonKey(name: "is_special_tokens") required bool isSpecialTokens,
  8. @JsonKey(name: "is_no_timestamps") required bool isNoTimestamps,
  9. @JsonKey(name: "n_processors") required int nProcessors,
  10. @JsonKey(name: "split_on_word") required bool splitOnWord,
  11. @JsonKey(name: "no_fallback") required bool noFallback,
  12. required bool diarize,
  13. @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;