m1guelpf / yt-whisper

Using OpenAI's Whisper to automatically generate YouTube subtitles
MIT License
1.37k stars 140 forks source link

How do I proceed next to get the text? [I am a noob] #32

Open HardikJain02 opened 1 year ago

HardikJain02 commented 1 year ago

If the following is the code for whisper (it is for local video), what will be the code for yt-whisper for a youtube video?

import whisper model = whisper.load_model("base") result = model.transcribe("localaudio.mp3") print(result["text"])

HardikJain02 commented 1 year ago

@m1guelpf

afrizal0 commented 1 year ago

i think simply you can change your local video name with your youtube url

HardikJain02 commented 1 year ago

hey, that won't work. that doesn't make sense because I'm using yt_whisper for directly transcribing through the youtube URL, not the local video.