RealtimeSTT icon indicating copy to clipboard operation
RealtimeSTT copied to clipboard

translate not working for transcribe method of faster-whisper

Open bilalshafim opened this issue 1 year ago • 2 comments

I have added the translate task like so in the _transcription_worker.

  segments, info = model.transcribe(
      audio,
      language=language if language else None,
      beam_size=beam_size,
      initial_prompt=initial_prompt,
      suppress_tokens=suppress_tokens,
      task="translate"
  )

Is there a reason why it does not translate or could this be a faster-whisper issue? I'll try to setup faster-whisper separately and test it there as well.

Tested with: German, Japanese on small model.

bilalshafim avatar Sep 11 '24 13:09 bilalshafim