Created
May 4, 2025 06:32
-
-
Save fzadikian/9aeedcb7cb7bf4e82ad373f54228e770 to your computer and use it in GitHub Desktop.
OpenAI Whisper test with Reol interview
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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