create static method

GetTextFromWavFile create({
  1. String? special_type,
  2. bool? is_translate,
  3. int? threads,
  4. bool? is_verbose,
  5. String? language,
  6. bool? is_special_tokens,
  7. bool? is_no_timestamps,
  8. String? audio,
  9. String? model,
  10. int n_processors = 1,
  11. bool split_on_word = false,
  12. bool no_fallback = false,
  13. bool diarize = false,
  14. bool speed_up = false,
})
override

return original data json

Implementation

static GetTextFromWavFile create({
  String? special_type,
  bool? is_translate,
  int? threads,
  bool? is_verbose,
  String? language,
  bool? is_special_tokens,
  bool? is_no_timestamps,
  String? audio,
  String? model,
  int n_processors = 1,
  bool split_on_word = false,
  bool no_fallback = false,
  bool diarize = false,
  bool speed_up = false,
}) {
  GetTextFromWavFile getTextFromWavFile = GetTextFromWavFile({
    "@type": special_type,
    "is_translate": is_translate,
    "threads": threads,
    "is_verbose": is_verbose,
    "language": language,
    "is_special_tokens": is_special_tokens,
    "is_no_timestamps": is_no_timestamps,
    "audio": audio,
    "model": model,
    "n_processors": n_processors,
    "split_on_word": split_on_word,
    "no_fallback": no_fallback,
    "diarize": diarize,
    "speed_up": speed_up,
  });
  return getTextFromWavFile;
}