Skip to content

armgit / meet

Public Imported from GitHub
0

Open source video conferencing app powered by LiveKit. Built with Django and React.

🔧(summary) make audio duration limit optional for deployment safety

lebaudantoinee87d0519ff83
diff --git a/src/summary/summary/core/celery_worker.py b/src/summary/summary/core/celery_worker.py
index a464a352..d8360c84 100644
--- a/src/summary/summary/core/celery_worker.py
+++ b/src/summary/summary/core/celery_worker.py
@@ -269,7 +269,7 @@ def process_audio_transcribe_summarize_v2(
audio_file = File(temp_file_path)
metadata_manager.track(task_id, {"audio_length": audio_file.info.length})
- if audio_file.info.length > settings.recording_max_duration:
+ if settings.recording_max_duration is not None and audio_file.info.length > settings.recording_max_duration:
error_msg = "Recording too long: %.2fs > %.2fs limit" % (
audio_file.info.length,
settings.recording_max_duration,
diff --git a/src/summary/summary/core/config.py b/src/summary/summary/core/config.py
index 9b5af0c0..f996aefa 100644
--- a/src/summary/summary/core/config.py
+++ b/src/summary/summary/core/config.py
@@ -17,7 +17,7 @@ class Settings(BaseSettings):
app_api_token: str
# Audio recordings
- recording_max_duration: int = 5400 # 1h30
+ recording_max_duration: Optional[int] = None
# Celery settings
celery_broker_url: str = "redis://redis/0"