Getting Started With OpenAI Whisper API In Python | Beginner Tutorial

preview_player
Показать описание
In this lesson, we are going to learn how to use OpenAI Whisper API to transcribe and translate audio files in Python. OpenAI Whisper is an automatic speech recognition model, and with the OpenAI Whisper API, we can now integrate speech-to-text transcription functionality into our applications to translate or transcribe audio with ease.

► Buy Me a Coffee? Your support is much appreciated!
-------------------------------------------------------------------------------------------
☕ Venmo: @Jie-Jenn

► Support my channel so I can continue making free contents
---------------------------------------------------------------------------------------------------------------

00:00 - Intro (bakcground, Whisper API benefits, pricing)
01:53 - Create OpenAI API Key
02:27 - Install OpenAI Python library
03:28 - OpenAI transcribe method
07:44 - OpenAI translate method
10:06 - How to chunk audio file

#openai #whisper #openaiwhisper #python
Рекомендации по теме
Комментарии
Автор

Great video, thank you for this! And thank you for including closed captions!

CaterpillarDog
Автор

Great video - but can you answer something? If you chunk and transcribe and your goal of this whole thing is to make subtitle files - how do you handle the timestamps for each transcription? Usually, if the video is 3 minutes long and you don't chunk it, you can get subtitles from WEBVTT easily. But if you make 3 chunks, each transcription starts from 0 to 1 minute. It can be rather confusing to merge the WEBVTTs and then make a unified SRT file. Would love a tutorial on this.

muhammadroushan
Автор

interesting! thanks for the explanation. i wish you explained how it could be done for real time transcribe by using a Mic instead of audio file

uen
Автор

Why we can't use translate and transcribe in one python file

s_sattu_s
Автор

I have some larger mp3 files that I have extracted from YouTube videos. I am using your chunking method in order to meet the file size requirements for the whisper app but I'm not sure how to create the vtt files on the individual chunks in a way that will allow me to reassemble all of the separate vtt files into a single file where the timing matches the original mp3 file before chunking. Do you have any code for this?

Thank you so much for this video. It's great!

sachaally
Автор

Video seems great, but for us newbies, you might have to explain certain things... Like what is the blue screen that you typed in the api key and model id...

rayrod
Автор

Hi all, i just followed the tutorial and it run an error out: exceeded your current But i only gave it a 10 sec. video. How come?

taichowing
Автор

great tutorial! question: does it only translates to english? what would i have to change in the code to translate to other languages? thanks!!

endymion
Автор

Great video! But I have a question. How do you run python code blocks in VS Code terminal? Is it some kind of extension?

zubayerrahaman
Автор

Thank you for this video! Unfortunately i'm getting an error with the 'Audio.transcribe' method:

"AttributeError: type object 'Audio' has no attribute 'transcribe'" Does anyone happen to know what the problem is?

/edit: the problem was my outdated openai version. I was on 0.26, but you need 0.27.

WolverineAndSloth
Автор

how to rename "assistant:" to the name i want eg Alexa: ?

kontgaming
Автор

Hide you key.. You probably realized that already tho

JeffWusch
visit shbcf.ru