High-Performance Real-Time Audio Transcription
WhisperLive acts as a drop-in replacement for OpenAI's Whisper API. You can use any standard OpenAI client by changing the base URL.
from openai import OpenAI
client = OpenAI(
api_key="sk-no-key-required",
base_url="https://whisperlive.classroomcopilot.ai/v1/"
)
with open("audio.wav", "rb") as file:
transcription = client.audio.transcriptions.create(
file=file,
model="base",
response_format="verbose_json"
)
print(transcription.text)
curl https://whisperlive.classroomcopilot.ai/v1/audio/transcriptions -H "Content-Type: multipart/form-data" -F file="@audio.wav" -F model="base" -F response_format="verbose_json"