ChatGPT Speech to Text Whisper API

parmarjatin4911@gmail.com - Jan 28 - - Dev Community

ChatGPT Speech to Text Whisper API

import openai
client = openai.Client()

audio_file= open("speech.mp3", "rb")
transcript = client.audio.transcriptions.create(
model = "whisper-1",
file=audio_file
)
print(transcript.text)

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player