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
#!/usr/bin/env bash | |
set -euo pipefail | |
# ------------ helpers ------------ | |
bold() { printf "\033[1m%s\033[0m\n" "$*"; } | |
note() { printf "➤ %s\n" "$*"; } | |
ok() { printf "✓ %s\n" "$*"; } | |
warn() { printf "⚠ %s\n" "$*"; } | |
require_darwin() { |
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
<!DOCTYPE html> | |
<!-- | |
Interactive Transcript Viewer with Audio Synchronization | |
A web application that provides synchronized audio playback with transcript text. | |
Built with WaveSurfer.js for audio visualization and playback control. | |
Features: | |
- Audio waveform visualization and playback controls | |
- Word-level synchronization with audio timeline |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
import os | |
from contextlib import contextmanager, redirect_stderr, redirect_stdout | |
@contextmanager | |
def suppress_stdout_stderr(): | |
"""A context manager that redirects stdout and stderr to devnull""" | |
with open(os.devnull, 'w') as fnull: | |
with redirect_stderr(fnull) as err, redirect_stdout(fnull) as out: | |
yield (err, out) |