WhisperRequest.fromWavFile constructor
WhisperRequest.fromWavFile({})
Implementation
factory WhisperRequest.fromWavFile({
required File audio,
required File model,
bool is_translate = false,
int threads = 4,
bool is_verbose = false,
String language = "id",
bool is_special_tokens = false,
bool is_no_timestamps = false,
}) {
return WhisperRequest(whisper_api.GetTextFromWavFile.create(
special_type: "getTextFromWavFile",
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.path,
model: model.path,
).toJson());
}