Skip to content

Commit

Permalink
Remove word_timestamp from getTranscriptionWhisperASR
Browse files Browse the repository at this point in the history
Not supported by WhisperASR.  Fixes djmango#52
  • Loading branch information
dahifi authored Apr 10, 2024
1 parent 17b6352 commit 48d123b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/transcribe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ export class TranscriptionEngine {
await payloadGenerator(payload_data);

let args = "output=json"; // always output json, so we can have the timestamps if we need them
args += `&word_timestamps=true`; // always output word timestamps, so we can have the timestamps if we need them
const { translate, encode, vadFilter, language, initialPrompt } = this.settings;
if (translate) args += `&task=translate`;
if (encode !== DEFAULT_SETTINGS.encode) args += `&encode=${encode}`;
Expand Down

0 comments on commit 48d123b

Please sign in to comment.