Skip to content

Instantly share code, notes, and snippets.

@MorteZahh
MorteZahh / whisper.py
Created December 29, 2024 13:25 — forked from Hamid-K/whisper.py
Whisper: Transcribe Audio to Text
# Sample script to use OpenAI Whisper API
# This script demonstrates how to convert input audio files to text, fur further processing.
# The code can be still improved and optimized in many ways. Feel free to modify and use it
# for your own needs.
#
import openai
from openai import OpenAI
client = OpenAI(api_key="sk-proj-....")