mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 20:29:06 +00:00
* llm instructions * vibe dailyco * vibe dailyco * doc update (vibe) * dont show recording ui on call * stub processor (vibe) * stub processor (vibe) self-review * stub processor (vibe) self-review * chore(main): release 0.14.0 (#670) * Add multitrack pipeline * Mixdown audio tracks * Mixdown with pyav filter graph * Trigger multitrack processing for daily recordings * apply platform from envs in priority: non-dry * Use explicit track keys for processing * Align tracks of a multitrack recording * Generate waveforms for the mixed audio * Emit multriack pipeline events * Fix multitrack pipeline track alignment * dailico docs * Enable multitrack reprocessing * modal temp files uniform names, cleanup. remove llm temporary docs * docs cleanup * dont proceed with raw recordings if any of the downloads fail * dry transcription pipelines * remove is_miltitrack * comments * explicit dailyco room name * docs * remove stub data/method * frontend daily/whereby code self-review (no-mistake) * frontend daily/whereby code self-review (no-mistakes) * frontend daily/whereby code self-review (no-mistakes) * consent cleanup for multitrack (no-mistakes) * llm fun * remove extra comments * fix tests * merge migrations * Store participant names * Get participants by meeting session id * pop back main branch migration * s3 paddington (no-mistakes) * comment * pr comments * pr comments * pr comments * platform / meeting cleanup * Use participant names in summary generation * platform assignment to meeting at controller level * pr comment * room playform properly default none * room playform properly default none * restore migration lost * streaming WIP * extract storage / use common storage / proper env vars for storage * fix mocks tests * remove fall back * streaming for multifile * cenrtal storage abstraction (no-mistakes) * remove dead code / vars * Set participant user id for authenticated users * whereby recording name parsing fix * whereby recording name parsing fix * more file stream * storage dry + tests * remove homemade boto3 streaming and use proper boto * update migration guide * webhook creation script - print uuid --------- Co-authored-by: Igor Loskutov <igor.loskutoff@gmail.com> Co-authored-by: Mathieu Virbel <mat@meltingrocks.com> Co-authored-by: Sergey Mankovsky <sergey@monadical.com>
70 lines
2.0 KiB
Python
70 lines
2.0 KiB
Python
from .base import Storage # noqa
|
|
from reflector.settings import settings
|
|
|
|
|
|
def get_transcripts_storage() -> Storage:
|
|
"""
|
|
Get storage for processed transcript files (master credentials).
|
|
|
|
Also use this for ALL our file operations with bucket override:
|
|
master = get_transcripts_storage()
|
|
master.delete_file(key, bucket=recording.bucket_name)
|
|
"""
|
|
assert settings.TRANSCRIPT_STORAGE_BACKEND
|
|
return Storage.get_instance(
|
|
name=settings.TRANSCRIPT_STORAGE_BACKEND,
|
|
settings_prefix="TRANSCRIPT_STORAGE_",
|
|
)
|
|
|
|
|
|
def get_whereby_storage() -> Storage:
|
|
"""
|
|
Get storage config for Whereby (for passing to Whereby API).
|
|
|
|
Usage:
|
|
whereby_storage = get_whereby_storage()
|
|
key_id, secret = whereby_storage.key_credentials
|
|
whereby_api.create_meeting(
|
|
bucket=whereby_storage.bucket_name,
|
|
access_key_id=key_id,
|
|
secret=secret,
|
|
)
|
|
|
|
Do NOT use for our file operations - use get_transcripts_storage() instead.
|
|
"""
|
|
if not settings.WHEREBY_STORAGE_AWS_BUCKET_NAME:
|
|
raise ValueError(
|
|
"WHEREBY_STORAGE_AWS_BUCKET_NAME required for Whereby with AWS storage"
|
|
)
|
|
|
|
return Storage.get_instance(
|
|
name="aws",
|
|
settings_prefix="WHEREBY_STORAGE_",
|
|
)
|
|
|
|
|
|
def get_dailyco_storage() -> Storage:
|
|
"""
|
|
Get storage config for Daily.co (for passing to Daily API).
|
|
|
|
Usage:
|
|
daily_storage = get_dailyco_storage()
|
|
daily_api.create_meeting(
|
|
bucket=daily_storage.bucket_name,
|
|
region=daily_storage.region,
|
|
role_arn=daily_storage.role_credential,
|
|
)
|
|
|
|
Do NOT use for our file operations - use get_transcripts_storage() instead.
|
|
"""
|
|
# Fail fast if platform-specific config missing
|
|
if not settings.DAILYCO_STORAGE_AWS_BUCKET_NAME:
|
|
raise ValueError(
|
|
"DAILYCO_STORAGE_AWS_BUCKET_NAME required for Daily.co with AWS storage"
|
|
)
|
|
|
|
return Storage.get_instance(
|
|
name="aws",
|
|
settings_prefix="DAILYCO_STORAGE_",
|
|
)
|