- transcribe_backends.py: parakeet-tdt-0.6b-v3 (onnx-asr, VAD+timestamps) as selectable backend (TRANSCRIBE_BACKEND), token->word reconstruction keeping the leading-space convention, absolute timestamps, native floats, language detection via py3langid, and automatic whisper fallback (errors, empty output, or language outside parakeet's 25). - whisper singleton + ASR GPU semaphore (model stays resident; GPU decodes serialized; CPU path behavior unchanged). - ffmpeg_utils.py: central encoder args (FFMPEG_ENCODER=x264|nvenc|auto with cached probe + fallback); migrated the 9 hardcoded libx264 call sites. - saasshorts now honors WHISPER_* config instead of hardcoded base/cpu/int8. - Dockerfile: ARG GPU=1 installs CUDA user-space libs (cuBLAS/cuDNN9) + onnx-asr/onnxruntime-gpu; LD_LIBRARY_PATH + NVIDIA_DRIVER_CAPABILITIES. - Validated on prod GPU (RTX 4000 Ada, driver 580): 94s clip transcribed in 6.5s, word timestamps within ~0.1s of whisper, fallback path exercised.
43 lines
1.8 KiB
Text
43 lines
1.8 KiB
Text
# AWS S3 (optional — for clip backup/gallery)
|
|
AWS_ACCESS_KEY_ID=your_aws_access_key_here
|
|
AWS_SECRET_ACCESS_KEY=your_aws_secret_key_here
|
|
AWS_REGION=eu-west-3
|
|
AWS_S3_BUCKET=your-bucket-name
|
|
AWS_S3_PUBLIC_BUCKET=your-public-bucket-name
|
|
|
|
# YouTube cookies (optional — paste Netscape-format cookies to bypass bot detection)
|
|
# YOUTUBE_COOKIES=...
|
|
|
|
# Google OAuth (cloud/billing mode only). When logging in through a proxy whose
|
|
# Host header doesn't match a Google-registered URI (e.g. local dev via the Vite
|
|
# proxy), pin the callback explicitly:
|
|
# OAUTH_REDIRECT_URI=http://localhost:8000/api/auth/google/callback
|
|
# FRONTEND_URL=http://localhost:5175
|
|
|
|
# Local dev: show the full pipeline logs (yt-dlp/ffmpeg/debug) in the UI even
|
|
# when running in paid mode (BILLING_ENABLED). Cloud/prod leaves this unset.
|
|
# DEBUG_LOGS=true
|
|
|
|
# Pre-flight quality gate: warn before processing a YouTube source below this
|
|
# height (720p default; 0 disables). Only applies to URL sources.
|
|
# QUALITY_GATE_MIN_HEIGHT=720
|
|
|
|
# Whisper transcription model (main pipeline). "small" is better than "base" on
|
|
# non-English audio; "base" is faster. device/compute for GPU tuning.
|
|
# Prod GPU: WHISPER_MODEL=large-v3-turbo WHISPER_DEVICE=cuda WHISPER_COMPUTE=float16
|
|
# WHISPER_MODEL=small
|
|
# WHISPER_DEVICE=cpu
|
|
# WHISPER_COMPUTE=int8
|
|
|
|
# Transcription backend: whisper (default) | parakeet. Parakeet (NVIDIA
|
|
# parakeet-tdt-0.6b-v3 via onnx-asr, GPU image only) is ~2x faster than
|
|
# whisper-turbo-GPU and auto-falls-back to whisper on errors or languages
|
|
# outside its 25 European ones.
|
|
# TRANSCRIBE_BACKEND=whisper
|
|
|
|
# Concurrent GPU transcriptions (parakeet or whisper-on-cuda). Keep 1.
|
|
# ASR_GPU_CONCURRENCY=1
|
|
|
|
# Video encoder for all ffmpeg encodes: x264 (default) | nvenc | auto.
|
|
# auto probes h264_nvenc once at startup and falls back to x264 if unusable.
|
|
# FFMPEG_ENCODER=x264
|