Skip to content

Instantly share code, notes, and snippets.

View alantypoon's full-sized avatar

Alan Poon alantypoon

  • HKU
  • Hong Kong
  • 07:36 (UTC +08:00)
View GitHub Profile
@juanmc2005
juanmc2005 / diart_whisper.py
Last active October 29, 2024 23:55
Code for my tutorial "Color Your Captions: Streamlining Live Transcriptions with Diart and OpenAI's Whisper". Available at https://medium.com/@juanmc2005/color-your-captions-streamlining-live-transcriptions-with-diart-and-openais-whisper-6203350234ef
import logging
import os
import sys
import traceback
from contextlib import contextmanager
import diart.operators as dops
import numpy as np
import rich
import rx.operators as ops