Skip to content

Speakr is a personal, self-hosted web application designed for transcribing audio recordings

Python

Update config examples for connector architecture with deprecation notices

Murtaza Nasir48c59f636cc5
diff --git a/config/docker-compose.example.yml b/config/docker-compose.example.yml
index d2ac8b03..81901762 100644
--- a/config/docker-compose.example.yml
+++ b/config/docker-compose.example.yml
@@ -13,16 +13,18 @@ services:
# 1. Copy this file to your project root:
# cp config/docker-compose.example.yml docker-compose.yml
#
- # 2. Choose your transcription method and copy the corresponding .env file:
+ # 2. Copy the unified transcription config (RECOMMENDED):
+ # cp config/env.transcription.example .env
#
- # For standard Whisper API (no speaker diarization):
- # cp config/env.whisper.example .env
+ # This supports all providers with auto-detection:
+ # - OpenAI GPT-4o with diarization (set TRANSCRIPTION_MODEL=gpt-4o-transcribe-diarize)
+ # - Self-hosted ASR/WhisperX (set ASR_BASE_URL=http://your-asr:9000)
+ # - Legacy Whisper (set TRANSCRIPTION_MODEL=whisper-1)
#
- # For WhisperX ASR with voice profiles (recommended for speaker features):
- # cp config/env.whisperx.example .env
- #
- # For basic ASR with diarization (no voice profiles):
- # cp config/env.asr.example .env
+ # Legacy config files (still supported):
+ # - config/env.whisper.example - Standard Whisper API
+ # - config/env.whisperx.example - WhisperX with voice profiles
+ # - config/env.asr.example - Basic ASR with diarization
#
# 3. Edit the .env file to add your API keys and settings.
#
diff --git a/config/env.asr.example b/config/env.asr.example
index baa63e79..4199ee29 100644
--- a/config/env.asr.example
+++ b/config/env.asr.example
@@ -1,5 +1,12 @@
# -----------------------------------------------------------------------------
-# Speakr Configuration: ASR Endpoint
+# Speakr Configuration: ASR Endpoint (Legacy)
+#
+# ⚠️ DEPRECATION NOTICE: This configuration style is still supported but
+# we recommend using the new unified configuration in env.transcription.example
+# which supports all transcription providers with auto-detection.
+#
+# Migration: Simply set ASR_BASE_URL and the connector will auto-detect ASR mode.
+# USE_ASR_ENDPOINT=true is no longer required (but still works for backwards compat).
#
# Instructions:
# 1. Copy this file to a new file named .env
@@ -54,21 +61,24 @@ GPT5_VERBOSITY=medium
# CHAT_GPT5_VERBOSITY=medium
# --- Transcription Service (ASR Endpoint) ---
-# Setting this to true enables all ASR features including speaker diarization
-# Note: File chunking is NOT supported with ASR endpoints
-USE_ASR_ENDPOINT=true
+# New connector architecture auto-detects ASR mode when ASR_BASE_URL is set.
+# USE_ASR_ENDPOINT=true is deprecated but still works for backwards compatibility.
+#
+# Note: ASR endpoints handle chunking internally - CHUNK_LIMIT settings are ignored.
-# ASR Endpoint URL
+# ASR Endpoint URL (setting this auto-enables ASR mode)
# For containers in same docker-compose: Use container name and internal port
# Example: http://whisper-asr:9000 (NOT the host port 6002 or external IP)
# For external ASR: Use http://192.168.1.100:9000 or http://asr.example.com:9000
ASR_BASE_URL=http://whisper-asr:9000
-# Optional: Override default speaker settings (defaults shown)
-# These are automatically set when USE_ASR_ENDPOINT=true
-# ASR_DIARIZE=true # Auto-enabled with ASR (set to false to disable)
-# ASR_MIN_SPEAKERS=1 # Default minimum speakers
-# ASR_MAX_SPEAKERS=5 # Default maximum speakers
+# Deprecated: No longer needed, kept for backwards compatibility
+# USE_ASR_ENDPOINT=true
+
+# Speaker diarization options
+ASR_DIARIZE=true
+# ASR_MIN_SPEAKERS=1 # Hint for minimum speakers
+# ASR_MAX_SPEAKERS=5 # Hint for maximum speakers
# ASR_RETURN_SPEAKER_EMBEDDINGS=false # Only enable for WhisperX ASR service
# --- Application Settings ---
diff --git a/config/env.transcription.example b/config/env.transcription.example
index 7cff0713..edc91346 100644
--- a/config/env.transcription.example
+++ b/config/env.transcription.example
@@ -82,11 +82,20 @@ TRANSCRIPTION_MODEL=gpt-4o-transcribe-diarize
# =============================================================================
# CHUNKING CONFIGURATION (For large files)
# =============================================================================
-# Enable automatic file chunking for large audio files
-ENABLE_CHUNKING=true
+# Chunking is now connector-aware with this priority:
+# 1. Connector handles internally (openai_transcribe, asr_endpoint) → No app chunking
+# 2. ENABLE_CHUNKING=false → Disable chunking (only affects openai_whisper)
+# 3. CHUNK_LIMIT set → Use your settings
+# 4. Connector defaults → Use connector's recommended limits
+# 5. App default → 20MB size-based
+#
+# For openai_transcribe/asr_endpoint: These settings are IGNORED (connector handles it)
+# For openai_whisper: These settings control chunking behavior
+
+# ENABLE_CHUNKING=false # Uncomment to disable chunking for openai_whisper
-# Maximum chunk size in MB (files larger than this will be split)
-CHUNK_SIZE_MB=20
+# Chunk limit - supports size (20MB) or duration (600s, 10m)
+CHUNK_LIMIT=20MB
# Overlap between chunks in seconds (helps with transcription accuracy at boundaries)
CHUNK_OVERLAP_SECONDS=3
diff --git a/config/env.whisper.example b/config/env.whisper.example
index fef817ca..09a76042 100644
--- a/config/env.whisper.example
+++ b/config/env.whisper.example
@@ -1,5 +1,14 @@
# -----------------------------------------------------------------------------
-# Speakr Configuration: Standard Whisper API
+# Speakr Configuration: Standard Whisper API (Legacy)
+#
+# ⚠️ DEPRECATION NOTICE: This configuration style is still supported but
+# we recommend using the new unified configuration in env.transcription.example
+# which supports all transcription providers with auto-detection.
+#
+# Migration: See TRANSCRIPTION_CONNECTOR documentation in env.transcription.example
+# For OpenAI Whisper, simply set:
+# TRANSCRIPTION_API_KEY=your_key
+# TRANSCRIPTION_MODEL=whisper-1 (or gpt-4o-transcribe-diarize for diarization)
#
# Instructions:
# 1. Copy this file to a new file named .env
@@ -54,9 +63,18 @@ GPT5_VERBOSITY=medium
# CHAT_GPT5_VERBOSITY=medium
# --- Transcription Service (OpenAI Whisper API) ---
+# New connector architecture is enabled by default.
+# Available models:
+# whisper-1 - Legacy, no diarization
+# gpt-4o-transcribe - High quality, no diarization
+# gpt-4o-mini-transcribe - Cost-effective, no diarization
+# gpt-4o-transcribe-diarize - Speaker diarization! (recommended)
TRANSCRIPTION_BASE_URL=https://api.openai.com/v1
TRANSCRIPTION_API_KEY=your_openai_api_key
-WHISPER_MODEL=whisper-1
+TRANSCRIPTION_MODEL=whisper-1
+
+# Legacy model name (deprecated, use TRANSCRIPTION_MODEL instead)
+# WHISPER_MODEL=whisper-1
# --- Application Settings ---
# Set to "true" to allow user registration, "false" to disable
@@ -73,17 +91,15 @@ TIMEZONE="UTC"
LOG_LEVEL="INFO"
# --- Large File Chunking ---
-# Automatically splits large files to work with API limits
-ENABLE_CHUNKING=true
+# Chunking is now connector-aware:
+# - openai_transcribe/asr_endpoint: Handled internally, these settings ignored
+# - openai_whisper: Uses these settings for files >25MB
+#
+# ENABLE_CHUNKING=false # Uncomment to disable (only for openai_whisper)
-# Choose chunking method based on your provider's limits:
-# For size-based limits (e.g., OpenAI's 25MB limit):
+# Chunk limit - supports size (20MB) or duration (600s, 10m)
CHUNK_LIMIT=20MB
-# For duration-based limits (uncomment and use instead):
-# CHUNK_LIMIT=1200s # 20 minutes
-# CHUNK_LIMIT=20m # Alternative format
-
# Overlap between chunks (seconds)
CHUNK_OVERLAP_SECONDS=3
diff --git a/config/env.whisperx.example b/config/env.whisperx.example
index 80b56889..2380a7f5 100644
--- a/config/env.whisperx.example
+++ b/config/env.whisperx.example
@@ -1,6 +1,13 @@
# -----------------------------------------------------------------------------
# Speakr Configuration: WhisperX ASR Endpoint (with Voice Profiles)
#
+# ⚠️ DEPRECATION NOTICE: This configuration style is still supported but
+# we recommend using the new unified configuration in env.transcription.example
+# which supports all transcription providers with auto-detection.
+#
+# Migration: Simply set ASR_BASE_URL and the connector will auto-detect ASR mode.
+# USE_ASR_ENDPOINT=true is no longer required (but still works for backwards compat).
+#
# This configuration is for use with the WhisperX ASR Service:
# https://github.com/murtaza-nasir/whisperx-asr-service
#
@@ -64,20 +71,23 @@ GPT5_VERBOSITY=medium
# CHAT_GPT5_VERBOSITY=medium
# --- Transcription Service (WhisperX ASR Endpoint) ---
-# Setting this to true enables all ASR features including speaker diarization and voice profiles
-# Note: File chunking is NOT supported with ASR endpoints
-USE_ASR_ENDPOINT=true
+# New connector architecture auto-detects ASR mode when ASR_BASE_URL is set.
+# USE_ASR_ENDPOINT=true is deprecated but still works for backwards compatibility.
+#
+# Note: ASR endpoints handle chunking internally - CHUNK_LIMIT settings are ignored.
-# WhisperX ASR Endpoint URL
+# WhisperX ASR Endpoint URL (setting this auto-enables ASR mode)
# For containers in same docker-compose: Use container name and internal port
# Example: http://whisperx-asr:9000 (NOT the host port or external IP)
# For external ASR: Use http://192.168.1.100:9000 or http://asr.example.com:9000
ASR_BASE_URL=http://whisperx-asr:9000
-# Optional: Override default speaker settings (defaults shown)
-# These are automatically set when USE_ASR_ENDPOINT=true
-# ASR_DIARIZE=true # Auto-enabled with ASR (set to false to disable)
-# ASR_MIN_SPEAKERS=1 # Default minimum speakers
+# Deprecated: No longer needed, kept for backwards compatibility
+# USE_ASR_ENDPOINT=true
+
+# Speaker diarization options
+ASR_DIARIZE=true
+# ASR_MIN_SPEAKERS=1 # Hint for minimum speakers
# ASR_MAX_SPEAKERS=5 # Default maximum speakers
# Enable speaker embeddings for voice profile matching (WhisperX only)