TranscribeRequestDto.fromTranscribeRequest constructor
TranscribeRequestDto.fromTranscribeRequest(
- TranscribeRequest request,
- String modelPath
Convert request
to TranscribeRequestDto with specified modelPath
Implementation
factory TranscribeRequestDto.fromTranscribeRequest(
TranscribeRequest request,
String modelPath,
) {
return TranscribeRequestDto(
audio: request.audio,
model: modelPath,
isTranslate: request.isTranslate,
threads: request.threads,
isVerbose: request.isVerbose,
language: request.language,
isSpecialTokens: request.isSpecialTokens,
isNoTimestamps: request.isNoTimestamps,
nProcessors: request.nProcessors,
splitOnWord: request.splitOnWord,
noFallback: request.noFallback,
diarize: request.diarize,
speedUp: request.speedUp,
);
}