This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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-....") |