Merge 4368c97e70b614045121a2080e58b5e5d11b8b16 into 517a43ecd132a2089d85f4ebc044728a71d49f6e

This commit is contained in:
Aya1991q 2025-03-16 12:39:30 +02:00 committed by GitHub
commit 8c7cccfbe0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

8
1 Normal file
View File

@ -0,0 +1,8 @@
import openai
openai.api_key = "your-api-key"
audio_file = open("C:\Users\Aya Magdy\Downloads\Convert\Audio 1 - section 4.mp4", "rb")
transcript = openai.Audio.transcribe("whisper-1", audio_file)
print(transcript["text"])