This commit is contained in:
mike
2025-12-17 22:11:08 +01:00
parent 36852dde18
commit a53c0e2902
8 changed files with 218 additions and 239 deletions

27
start_transcribe.sh Executable file
View File

@@ -0,0 +1,27 @@
#!/bin/bash
# Simple startup script for transcription with GPU support
cd "$(dirname "$0")"
# Activate virtual environment
source .venv/bin/activate
# Set CUDA library paths for ctranslate2
export LD_LIBRARY_PATH=".venv/lib/python3.13/site-packages/nvidia/cudnn/lib:.venv/lib/python3.13/site-packages/nvidia/cublas/lib:.venv/lib/python3.13/site-packages/nvidia/cuda_runtime/lib:${LD_LIBRARY_PATH}"
# Run transcription with sentence mode and GPU
echo "Starting transcription with:"
echo " - Model: tiny (fast, good for testing)"
echo " - GPU mode (RTX 4060 Ti)"
echo " - Sentence extraction enabled"
echo " - Interval: 5 seconds"
echo ""
echo "Speak into your microphone to see transcription..."
echo "Press Ctrl+C to stop"
echo ""
python3 transcribe_speakers.py \
--sentence-mode \
--model tiny \
--interval 5 \
--min-duration 2