Skip to content

Instantly share code, notes, and snippets.

@fzadikian
Created May 4, 2025 06:32
Show Gist options
  • Save fzadikian/9aeedcb7cb7bf4e82ad373f54228e770 to your computer and use it in GitHub Desktop.
Save fzadikian/9aeedcb7cb7bf4e82ad373f54228e770 to your computer and use it in GitHub Desktop.
OpenAI Whisper test with Reol interview
import whisper # from https://github.com/openai/whisper
from whisper.utils import get_writer
model = whisper.load_model("large")
audio = "reol_interview/audio.m4a"
result = model.transcribe(audio, task="translate", language="Japanese", verbose="True")
output_directory = "./"
srt_writer = get_writer("srt", output_directory)
srt_writer(result, audio)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment