mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2026-02-05 10:26:48 +00:00
Compare commits
2 Commits
fix/websoc
...
feature/mo
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e1b790c5a8 | ||
| c8743fdf1c |
@@ -131,6 +131,15 @@ if [ -z "$DIARIZER_URL" ]; then
|
|||||||
fi
|
fi
|
||||||
echo " -> $DIARIZER_URL"
|
echo " -> $DIARIZER_URL"
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo "Deploying mixdown (CPU audio processing)..."
|
||||||
|
MIXDOWN_URL=$(modal deploy reflector_mixdown.py 2>&1 | grep -o 'https://[^ ]*web.modal.run' | head -1)
|
||||||
|
if [ -z "$MIXDOWN_URL" ]; then
|
||||||
|
echo "Error: Failed to deploy mixdown. Check Modal dashboard for details."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
echo " -> $MIXDOWN_URL"
|
||||||
|
|
||||||
# --- Output Configuration ---
|
# --- Output Configuration ---
|
||||||
echo ""
|
echo ""
|
||||||
echo "=========================================="
|
echo "=========================================="
|
||||||
@@ -147,4 +156,8 @@ echo ""
|
|||||||
echo "DIARIZATION_BACKEND=modal"
|
echo "DIARIZATION_BACKEND=modal"
|
||||||
echo "DIARIZATION_URL=$DIARIZER_URL"
|
echo "DIARIZATION_URL=$DIARIZER_URL"
|
||||||
echo "DIARIZATION_MODAL_API_KEY=$API_KEY"
|
echo "DIARIZATION_MODAL_API_KEY=$API_KEY"
|
||||||
|
echo ""
|
||||||
|
echo "MIXDOWN_BACKEND=modal"
|
||||||
|
echo "MIXDOWN_URL=$MIXDOWN_URL"
|
||||||
|
echo "MIXDOWN_MODAL_API_KEY=$API_KEY"
|
||||||
echo "# --- End Modal Configuration ---"
|
echo "# --- End Modal Configuration ---"
|
||||||
|
|||||||
379
gpu/modal_deployments/reflector_mixdown.py
Normal file
379
gpu/modal_deployments/reflector_mixdown.py
Normal file
@@ -0,0 +1,379 @@
|
|||||||
|
"""
|
||||||
|
Reflector GPU backend - audio mixdown
|
||||||
|
======================================
|
||||||
|
|
||||||
|
CPU-intensive audio mixdown service for combining multiple audio tracks.
|
||||||
|
Uses PyAV filter graph (amix) for high-quality audio mixing.
|
||||||
|
"""
|
||||||
|
|
||||||
|
import os
|
||||||
|
import tempfile
|
||||||
|
import time
|
||||||
|
from fractions import Fraction
|
||||||
|
|
||||||
|
import modal
|
||||||
|
|
||||||
|
MIXDOWN_TIMEOUT = 900 # 15 minutes
|
||||||
|
SCALEDOWN_WINDOW = 60 # 1 minute idle before shutdown
|
||||||
|
|
||||||
|
app = modal.App("reflector-mixdown")
|
||||||
|
|
||||||
|
# CPU-based image (no GPU needed for audio processing)
|
||||||
|
image = (
|
||||||
|
modal.Image.debian_slim(python_version="3.12")
|
||||||
|
.apt_install("ffmpeg") # Required by PyAV
|
||||||
|
.pip_install(
|
||||||
|
"av==13.1.0", # PyAV for audio processing
|
||||||
|
"requests==2.32.3", # HTTP for presigned URL downloads/uploads
|
||||||
|
"fastapi==0.115.12", # API framework
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@app.function(
|
||||||
|
cpu=4.0, # 4 CPU cores for audio processing
|
||||||
|
timeout=MIXDOWN_TIMEOUT,
|
||||||
|
scaledown_window=SCALEDOWN_WINDOW,
|
||||||
|
secrets=[modal.Secret.from_name("reflector-gpu")],
|
||||||
|
image=image,
|
||||||
|
)
|
||||||
|
@modal.concurrent(max_inputs=10)
|
||||||
|
@modal.asgi_app()
|
||||||
|
def web():
|
||||||
|
import logging
|
||||||
|
import secrets
|
||||||
|
import shutil
|
||||||
|
|
||||||
|
import av
|
||||||
|
import requests
|
||||||
|
from av.audio.resampler import AudioResampler
|
||||||
|
from fastapi import Depends, FastAPI, HTTPException, status
|
||||||
|
from fastapi.security import OAuth2PasswordBearer
|
||||||
|
from pydantic import BaseModel
|
||||||
|
|
||||||
|
# Setup logging
|
||||||
|
logging.basicConfig(
|
||||||
|
level=logging.INFO, format="%(asctime)s - %(levelname)s - %(message)s"
|
||||||
|
)
|
||||||
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
app = FastAPI()
|
||||||
|
oauth2_scheme = OAuth2PasswordBearer(tokenUrl="token")
|
||||||
|
|
||||||
|
# Validate API key exists at startup
|
||||||
|
API_KEY = os.environ.get("REFLECTOR_GPU_APIKEY")
|
||||||
|
if not API_KEY:
|
||||||
|
raise RuntimeError("REFLECTOR_GPU_APIKEY not configured in Modal secrets")
|
||||||
|
|
||||||
|
def apikey_auth(apikey: str = Depends(oauth2_scheme)):
|
||||||
|
# Use constant-time comparison to prevent timing attacks
|
||||||
|
if secrets.compare_digest(apikey, API_KEY):
|
||||||
|
return
|
||||||
|
raise HTTPException(
|
||||||
|
status_code=status.HTTP_401_UNAUTHORIZED,
|
||||||
|
detail="Invalid API key",
|
||||||
|
headers={"WWW-Authenticate": "Bearer"},
|
||||||
|
)
|
||||||
|
|
||||||
|
class MixdownRequest(BaseModel):
|
||||||
|
track_urls: list[str]
|
||||||
|
output_url: str
|
||||||
|
target_sample_rate: int = 48000
|
||||||
|
expected_duration_sec: float | None = None
|
||||||
|
|
||||||
|
class MixdownResponse(BaseModel):
|
||||||
|
duration_ms: float
|
||||||
|
tracks_mixed: int
|
||||||
|
audio_uploaded: bool
|
||||||
|
|
||||||
|
def download_track(url: str, temp_dir: str, index: int) -> str:
|
||||||
|
"""Download track from presigned URL to temp file using streaming."""
|
||||||
|
logger.info(f"Downloading track {index + 1}")
|
||||||
|
response = requests.get(url, stream=True, timeout=300)
|
||||||
|
|
||||||
|
if response.status_code == 404:
|
||||||
|
raise HTTPException(status_code=404, detail=f"Track {index} not found")
|
||||||
|
if response.status_code == 403:
|
||||||
|
raise HTTPException(
|
||||||
|
status_code=403, detail=f"Track {index} presigned URL expired"
|
||||||
|
)
|
||||||
|
|
||||||
|
response.raise_for_status()
|
||||||
|
|
||||||
|
temp_path = os.path.join(temp_dir, f"track_{index}.webm")
|
||||||
|
total_bytes = 0
|
||||||
|
with open(temp_path, "wb") as f:
|
||||||
|
for chunk in response.iter_content(chunk_size=8192):
|
||||||
|
if chunk:
|
||||||
|
f.write(chunk)
|
||||||
|
total_bytes += len(chunk)
|
||||||
|
|
||||||
|
logger.info(f"Track {index + 1} downloaded: {total_bytes} bytes")
|
||||||
|
return temp_path
|
||||||
|
|
||||||
|
def mixdown_tracks_modal(
|
||||||
|
track_paths: list[str],
|
||||||
|
output_path: str,
|
||||||
|
target_sample_rate: int,
|
||||||
|
expected_duration_sec: float | None,
|
||||||
|
logger,
|
||||||
|
) -> float:
|
||||||
|
"""Mix multiple audio tracks using PyAV filter graph.
|
||||||
|
|
||||||
|
Args:
|
||||||
|
track_paths: List of local file paths to audio tracks
|
||||||
|
output_path: Local path for output MP3 file
|
||||||
|
target_sample_rate: Sample rate for output (Hz)
|
||||||
|
expected_duration_sec: Optional fallback duration if container metadata unavailable
|
||||||
|
logger: Logger instance for progress tracking
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
Duration in milliseconds
|
||||||
|
"""
|
||||||
|
logger.info(f"Starting mixdown of {len(track_paths)} tracks")
|
||||||
|
|
||||||
|
# Build PyAV filter graph: N abuffer -> amix -> aformat -> sink
|
||||||
|
graph = av.filter.Graph()
|
||||||
|
inputs = []
|
||||||
|
|
||||||
|
for idx in range(len(track_paths)):
|
||||||
|
args = (
|
||||||
|
f"time_base=1/{target_sample_rate}:"
|
||||||
|
f"sample_rate={target_sample_rate}:"
|
||||||
|
f"sample_fmt=s32:"
|
||||||
|
f"channel_layout=stereo"
|
||||||
|
)
|
||||||
|
in_ctx = graph.add("abuffer", args=args, name=f"in{idx}")
|
||||||
|
inputs.append(in_ctx)
|
||||||
|
|
||||||
|
mixer = graph.add("amix", args=f"inputs={len(inputs)}:normalize=0", name="mix")
|
||||||
|
fmt = graph.add(
|
||||||
|
"aformat",
|
||||||
|
args=f"sample_fmts=s32:channel_layouts=stereo:sample_rates={target_sample_rate}",
|
||||||
|
name="fmt",
|
||||||
|
)
|
||||||
|
sink = graph.add("abuffersink", name="out")
|
||||||
|
|
||||||
|
# Connect inputs to mixer (no delays for Modal implementation)
|
||||||
|
for idx, in_ctx in enumerate(inputs):
|
||||||
|
in_ctx.link_to(mixer, 0, idx)
|
||||||
|
|
||||||
|
mixer.link_to(fmt)
|
||||||
|
fmt.link_to(sink)
|
||||||
|
graph.configure()
|
||||||
|
|
||||||
|
# Open all containers
|
||||||
|
containers = []
|
||||||
|
try:
|
||||||
|
for i, path in enumerate(track_paths):
|
||||||
|
try:
|
||||||
|
c = av.open(path)
|
||||||
|
containers.append(c)
|
||||||
|
except Exception as e:
|
||||||
|
logger.warning(
|
||||||
|
f"Failed to open container {i}: {e}",
|
||||||
|
)
|
||||||
|
|
||||||
|
if not containers:
|
||||||
|
raise ValueError("Could not open any track containers")
|
||||||
|
|
||||||
|
# Calculate total duration for progress reporting
|
||||||
|
max_duration_sec = 0.0
|
||||||
|
for c in containers:
|
||||||
|
if c.duration is not None:
|
||||||
|
dur_sec = c.duration / av.time_base
|
||||||
|
max_duration_sec = max(max_duration_sec, dur_sec)
|
||||||
|
if max_duration_sec == 0.0 and expected_duration_sec:
|
||||||
|
max_duration_sec = expected_duration_sec
|
||||||
|
|
||||||
|
# Setup output container
|
||||||
|
out_container = av.open(output_path, "w", format="mp3")
|
||||||
|
out_stream = out_container.add_stream("libmp3lame", rate=target_sample_rate)
|
||||||
|
|
||||||
|
decoders = [c.decode(audio=0) for c in containers]
|
||||||
|
active = [True] * len(decoders)
|
||||||
|
resamplers = [
|
||||||
|
AudioResampler(format="s32", layout="stereo", rate=target_sample_rate)
|
||||||
|
for _ in decoders
|
||||||
|
]
|
||||||
|
|
||||||
|
current_max_time = 0.0
|
||||||
|
last_log_time = time.monotonic()
|
||||||
|
start_time = time.monotonic()
|
||||||
|
|
||||||
|
total_duration = 0
|
||||||
|
|
||||||
|
while any(active):
|
||||||
|
for i, (dec, is_active) in enumerate(zip(decoders, active)):
|
||||||
|
if not is_active:
|
||||||
|
continue
|
||||||
|
try:
|
||||||
|
frame = next(dec)
|
||||||
|
except StopIteration:
|
||||||
|
active[i] = False
|
||||||
|
inputs[i].push(None) # Signal end of stream
|
||||||
|
continue
|
||||||
|
|
||||||
|
if frame.sample_rate != target_sample_rate:
|
||||||
|
continue
|
||||||
|
|
||||||
|
# Progress logging (every 5 seconds)
|
||||||
|
if frame.time is not None:
|
||||||
|
current_max_time = max(current_max_time, frame.time)
|
||||||
|
now = time.monotonic()
|
||||||
|
if now - last_log_time >= 5.0:
|
||||||
|
elapsed = now - start_time
|
||||||
|
if max_duration_sec > 0:
|
||||||
|
progress_pct = min(
|
||||||
|
100.0, (current_max_time / max_duration_sec) * 100
|
||||||
|
)
|
||||||
|
logger.info(
|
||||||
|
f"Mixdown progress: {progress_pct:.1f}% @ {current_max_time:.1f}s (elapsed: {elapsed:.1f}s)"
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
logger.info(
|
||||||
|
f"Mixdown progress: @ {current_max_time:.1f}s (elapsed: {elapsed:.1f}s)"
|
||||||
|
)
|
||||||
|
last_log_time = now
|
||||||
|
|
||||||
|
out_frames = resamplers[i].resample(frame) or []
|
||||||
|
for rf in out_frames:
|
||||||
|
rf.sample_rate = target_sample_rate
|
||||||
|
rf.time_base = Fraction(1, target_sample_rate)
|
||||||
|
inputs[i].push(rf)
|
||||||
|
|
||||||
|
# Pull mixed frames from sink and encode
|
||||||
|
while True:
|
||||||
|
try:
|
||||||
|
mixed = sink.pull()
|
||||||
|
except Exception:
|
||||||
|
break
|
||||||
|
mixed.sample_rate = target_sample_rate
|
||||||
|
mixed.time_base = Fraction(1, target_sample_rate)
|
||||||
|
|
||||||
|
# Encode and mux
|
||||||
|
for packet in out_stream.encode(mixed):
|
||||||
|
out_container.mux(packet)
|
||||||
|
total_duration += packet.duration
|
||||||
|
|
||||||
|
# Flush remaining frames from filter graph
|
||||||
|
while True:
|
||||||
|
try:
|
||||||
|
mixed = sink.pull()
|
||||||
|
except Exception:
|
||||||
|
break
|
||||||
|
mixed.sample_rate = target_sample_rate
|
||||||
|
mixed.time_base = Fraction(1, target_sample_rate)
|
||||||
|
|
||||||
|
for packet in out_stream.encode(mixed):
|
||||||
|
out_container.mux(packet)
|
||||||
|
total_duration += packet.duration
|
||||||
|
|
||||||
|
# Flush encoder
|
||||||
|
for packet in out_stream.encode():
|
||||||
|
out_container.mux(packet)
|
||||||
|
total_duration += packet.duration
|
||||||
|
|
||||||
|
# Calculate duration in milliseconds
|
||||||
|
if total_duration > 0:
|
||||||
|
# Use the same calculation as AudioFileWriterProcessor
|
||||||
|
duration_ms = round(
|
||||||
|
float(total_duration * out_stream.time_base * 1000), 2
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
duration_ms = 0.0
|
||||||
|
|
||||||
|
out_container.close()
|
||||||
|
logger.info(f"Mixdown complete: duration={duration_ms}ms")
|
||||||
|
|
||||||
|
finally:
|
||||||
|
# Cleanup all containers
|
||||||
|
for c in containers:
|
||||||
|
if c is not None:
|
||||||
|
try:
|
||||||
|
c.close()
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
|
||||||
|
return duration_ms
|
||||||
|
|
||||||
|
@app.post("/v1/audio/mixdown", dependencies=[Depends(apikey_auth)])
|
||||||
|
def mixdown(request: MixdownRequest) -> MixdownResponse:
|
||||||
|
"""Mix multiple audio tracks into a single MP3 file.
|
||||||
|
|
||||||
|
Tracks are downloaded from presigned S3 URLs, mixed using PyAV,
|
||||||
|
and uploaded to a presigned S3 PUT URL.
|
||||||
|
"""
|
||||||
|
if not request.track_urls:
|
||||||
|
raise HTTPException(status_code=400, detail="No track URLs provided")
|
||||||
|
|
||||||
|
logger.info(f"Mixdown request: {len(request.track_urls)} tracks")
|
||||||
|
|
||||||
|
temp_dir = tempfile.mkdtemp()
|
||||||
|
temp_files = []
|
||||||
|
output_mp3_path = None
|
||||||
|
|
||||||
|
try:
|
||||||
|
# Download all tracks
|
||||||
|
for i, url in enumerate(request.track_urls):
|
||||||
|
temp_path = download_track(url, temp_dir, i)
|
||||||
|
temp_files.append(temp_path)
|
||||||
|
|
||||||
|
# Mix tracks
|
||||||
|
output_mp3_path = os.path.join(temp_dir, "mixed.mp3")
|
||||||
|
duration_ms = mixdown_tracks_modal(
|
||||||
|
temp_files,
|
||||||
|
output_mp3_path,
|
||||||
|
request.target_sample_rate,
|
||||||
|
request.expected_duration_sec,
|
||||||
|
logger,
|
||||||
|
)
|
||||||
|
|
||||||
|
# Upload result to S3
|
||||||
|
logger.info("Uploading result to S3")
|
||||||
|
file_size = os.path.getsize(output_mp3_path)
|
||||||
|
with open(output_mp3_path, "rb") as f:
|
||||||
|
upload_response = requests.put(
|
||||||
|
request.output_url, data=f, timeout=300
|
||||||
|
)
|
||||||
|
|
||||||
|
if upload_response.status_code == 403:
|
||||||
|
raise HTTPException(
|
||||||
|
status_code=403, detail="Output presigned URL expired"
|
||||||
|
)
|
||||||
|
|
||||||
|
upload_response.raise_for_status()
|
||||||
|
logger.info(f"Upload complete: {file_size} bytes")
|
||||||
|
|
||||||
|
return MixdownResponse(
|
||||||
|
duration_ms=duration_ms,
|
||||||
|
tracks_mixed=len(request.track_urls),
|
||||||
|
audio_uploaded=True,
|
||||||
|
)
|
||||||
|
|
||||||
|
except HTTPException:
|
||||||
|
raise
|
||||||
|
except Exception as e:
|
||||||
|
logger.error(f"Mixdown failed: {e}", exc_info=True)
|
||||||
|
raise HTTPException(status_code=500, detail=f"Mixdown failed: {str(e)}")
|
||||||
|
|
||||||
|
finally:
|
||||||
|
# Cleanup temp files
|
||||||
|
for temp_path in temp_files:
|
||||||
|
try:
|
||||||
|
os.unlink(temp_path)
|
||||||
|
except Exception as e:
|
||||||
|
logger.warning(f"Failed to cleanup temp file {temp_path}: {e}")
|
||||||
|
|
||||||
|
if output_mp3_path and os.path.exists(output_mp3_path):
|
||||||
|
try:
|
||||||
|
os.unlink(output_mp3_path)
|
||||||
|
except Exception as e:
|
||||||
|
logger.warning(f"Failed to cleanup output file {output_mp3_path}: {e}")
|
||||||
|
|
||||||
|
try:
|
||||||
|
shutil.rmtree(temp_dir)
|
||||||
|
except Exception as e:
|
||||||
|
logger.warning(f"Failed to cleanup temp directory {temp_dir}: {e}")
|
||||||
|
|
||||||
|
return app
|
||||||
@@ -489,7 +489,7 @@ async def process_tracks(input: PipelineInput, ctx: Context) -> ProcessTracksRes
|
|||||||
)
|
)
|
||||||
@with_error_handling(TaskName.MIXDOWN_TRACKS)
|
@with_error_handling(TaskName.MIXDOWN_TRACKS)
|
||||||
async def mixdown_tracks(input: PipelineInput, ctx: Context) -> MixdownResult:
|
async def mixdown_tracks(input: PipelineInput, ctx: Context) -> MixdownResult:
|
||||||
"""Mix all padded tracks into single audio file using PyAV (same as Celery)."""
|
"""Mix all padded tracks into single audio file using PyAV or Modal backend."""
|
||||||
ctx.log("mixdown_tracks: mixing padded tracks into single audio file")
|
ctx.log("mixdown_tracks: mixing padded tracks into single audio file")
|
||||||
|
|
||||||
track_result = ctx.task_output(process_tracks)
|
track_result = ctx.task_output(process_tracks)
|
||||||
@@ -513,7 +513,7 @@ async def mixdown_tracks(input: PipelineInput, ctx: Context) -> MixdownResult:
|
|||||||
|
|
||||||
storage = _spawn_storage()
|
storage = _spawn_storage()
|
||||||
|
|
||||||
# Presign URLs on demand (avoids stale URLs on workflow replay)
|
# Presign URLs for padded tracks (same expiration for both backends)
|
||||||
padded_urls = []
|
padded_urls = []
|
||||||
for track_info in padded_tracks:
|
for track_info in padded_tracks:
|
||||||
if track_info.key:
|
if track_info.key:
|
||||||
@@ -534,13 +534,79 @@ async def mixdown_tracks(input: PipelineInput, ctx: Context) -> MixdownResult:
|
|||||||
logger.error("Mixdown failed - no decodable audio frames found")
|
logger.error("Mixdown failed - no decodable audio frames found")
|
||||||
raise ValueError("No decodable audio frames in any track")
|
raise ValueError("No decodable audio frames in any track")
|
||||||
|
|
||||||
|
output_key = f"{input.transcript_id}/audio.mp3"
|
||||||
|
|
||||||
|
# Conditional: Modal or local backend
|
||||||
|
if settings.MIXDOWN_BACKEND == "modal":
|
||||||
|
ctx.log("mixdown_tracks: using Modal backend")
|
||||||
|
|
||||||
|
# Presign PUT URL for output (Modal will upload directly)
|
||||||
|
output_url = await storage.get_file_url(
|
||||||
|
output_key,
|
||||||
|
operation="put_object",
|
||||||
|
expires_in=PRESIGNED_URL_EXPIRATION_SECONDS,
|
||||||
|
)
|
||||||
|
|
||||||
|
from reflector.processors.audio_mixdown_modal import ( # noqa: PLC0415
|
||||||
|
AudioMixdownModalProcessor,
|
||||||
|
)
|
||||||
|
|
||||||
|
try:
|
||||||
|
processor = AudioMixdownModalProcessor()
|
||||||
|
result = await processor.mixdown(
|
||||||
|
track_urls=valid_urls,
|
||||||
|
output_url=output_url,
|
||||||
|
target_sample_rate=target_sample_rate,
|
||||||
|
expected_duration_sec=recording_duration
|
||||||
|
if recording_duration > 0
|
||||||
|
else None,
|
||||||
|
)
|
||||||
|
duration_ms = result.duration_ms
|
||||||
|
tracks_mixed = result.tracks_mixed
|
||||||
|
|
||||||
|
ctx.log(
|
||||||
|
f"mixdown_tracks: Modal returned duration={duration_ms}ms, tracks={tracks_mixed}"
|
||||||
|
)
|
||||||
|
except httpx.HTTPStatusError as e:
|
||||||
|
error_detail = e.response.text if hasattr(e.response, "text") else str(e)
|
||||||
|
logger.error(
|
||||||
|
"[Hatchet] Modal mixdown HTTP error",
|
||||||
|
transcript_id=input.transcript_id,
|
||||||
|
status_code=e.response.status_code if hasattr(e, "response") else None,
|
||||||
|
error=error_detail,
|
||||||
|
)
|
||||||
|
raise RuntimeError(
|
||||||
|
f"Modal mixdown failed with HTTP {e.response.status_code}: {error_detail}"
|
||||||
|
)
|
||||||
|
except httpx.TimeoutException:
|
||||||
|
logger.error(
|
||||||
|
"[Hatchet] Modal mixdown timeout",
|
||||||
|
transcript_id=input.transcript_id,
|
||||||
|
timeout=settings.MIXDOWN_TIMEOUT,
|
||||||
|
)
|
||||||
|
raise RuntimeError(
|
||||||
|
f"Modal mixdown timeout after {settings.MIXDOWN_TIMEOUT}s"
|
||||||
|
)
|
||||||
|
except ValueError as e:
|
||||||
|
logger.error(
|
||||||
|
"[Hatchet] Modal mixdown validation error",
|
||||||
|
transcript_id=input.transcript_id,
|
||||||
|
error=str(e),
|
||||||
|
)
|
||||||
|
raise
|
||||||
|
else:
|
||||||
|
ctx.log("mixdown_tracks: using local backend")
|
||||||
|
|
||||||
|
# Existing local implementation
|
||||||
output_path = tempfile.mktemp(suffix=".mp3")
|
output_path = tempfile.mktemp(suffix=".mp3")
|
||||||
duration_ms_callback_capture_container = [0.0]
|
duration_ms_callback_capture_container = [0.0]
|
||||||
|
|
||||||
async def capture_duration(d):
|
async def capture_duration(d):
|
||||||
duration_ms_callback_capture_container[0] = d
|
duration_ms_callback_capture_container[0] = d
|
||||||
|
|
||||||
writer = AudioFileWriterProcessor(path=output_path, on_duration=capture_duration)
|
writer = AudioFileWriterProcessor(
|
||||||
|
path=output_path, on_duration=capture_duration
|
||||||
|
)
|
||||||
|
|
||||||
await mixdown_tracks_pyav(
|
await mixdown_tracks_pyav(
|
||||||
valid_urls,
|
valid_urls,
|
||||||
@@ -549,18 +615,23 @@ async def mixdown_tracks(input: PipelineInput, ctx: Context) -> MixdownResult:
|
|||||||
offsets_seconds=None,
|
offsets_seconds=None,
|
||||||
logger=logger,
|
logger=logger,
|
||||||
progress_callback=make_audio_progress_logger(ctx, TaskName.MIXDOWN_TRACKS),
|
progress_callback=make_audio_progress_logger(ctx, TaskName.MIXDOWN_TRACKS),
|
||||||
expected_duration_sec=recording_duration if recording_duration > 0 else None,
|
expected_duration_sec=recording_duration
|
||||||
|
if recording_duration > 0
|
||||||
|
else None,
|
||||||
)
|
)
|
||||||
await writer.flush()
|
await writer.flush()
|
||||||
|
|
||||||
file_size = Path(output_path).stat().st_size
|
file_size = Path(output_path).stat().st_size
|
||||||
storage_path = f"{input.transcript_id}/audio.mp3"
|
|
||||||
|
|
||||||
with open(output_path, "rb") as mixed_file:
|
with open(output_path, "rb") as mixed_file:
|
||||||
await storage.put_file(storage_path, mixed_file)
|
await storage.put_file(output_key, mixed_file)
|
||||||
|
|
||||||
Path(output_path).unlink(missing_ok=True)
|
Path(output_path).unlink(missing_ok=True)
|
||||||
|
duration_ms = duration_ms_callback_capture_container[0]
|
||||||
|
tracks_mixed = len(valid_urls)
|
||||||
|
|
||||||
|
ctx.log(f"mixdown_tracks: local mixdown uploaded {file_size} bytes")
|
||||||
|
|
||||||
|
# Update DB (same for both backends)
|
||||||
async with fresh_db_connection():
|
async with fresh_db_connection():
|
||||||
from reflector.db.transcripts import transcripts_controller # noqa: PLC0415
|
from reflector.db.transcripts import transcripts_controller # noqa: PLC0415
|
||||||
|
|
||||||
@@ -570,12 +641,12 @@ async def mixdown_tracks(input: PipelineInput, ctx: Context) -> MixdownResult:
|
|||||||
transcript, {"audio_location": "storage"}
|
transcript, {"audio_location": "storage"}
|
||||||
)
|
)
|
||||||
|
|
||||||
ctx.log(f"mixdown_tracks complete: uploaded {file_size} bytes to {storage_path}")
|
ctx.log(f"mixdown_tracks complete: uploaded to {output_key}")
|
||||||
|
|
||||||
return MixdownResult(
|
return MixdownResult(
|
||||||
audio_key=storage_path,
|
audio_key=output_key,
|
||||||
duration=duration_ms_callback_capture_container[0],
|
duration=duration_ms,
|
||||||
tracks_mixed=len(valid_urls),
|
tracks_mixed=tracks_mixed,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
89
server/reflector/processors/audio_mixdown_modal.py
Normal file
89
server/reflector/processors/audio_mixdown_modal.py
Normal file
@@ -0,0 +1,89 @@
|
|||||||
|
"""
|
||||||
|
Modal.com backend for audio mixdown.
|
||||||
|
|
||||||
|
Uses Modal's CPU containers to offload audio mixing from Hatchet workers.
|
||||||
|
Communicates via presigned S3 URLs for both input and output.
|
||||||
|
"""
|
||||||
|
|
||||||
|
import httpx
|
||||||
|
from pydantic import BaseModel
|
||||||
|
|
||||||
|
from reflector.settings import settings
|
||||||
|
|
||||||
|
|
||||||
|
class MixdownResponse(BaseModel):
|
||||||
|
"""Response from Modal mixdown endpoint."""
|
||||||
|
|
||||||
|
duration_ms: float
|
||||||
|
tracks_mixed: int
|
||||||
|
audio_uploaded: bool
|
||||||
|
|
||||||
|
|
||||||
|
class AudioMixdownModalProcessor:
|
||||||
|
"""Audio mixdown processor using Modal.com CPU backend.
|
||||||
|
|
||||||
|
Sends track URLs (presigned GET) and output URL (presigned PUT) to Modal.
|
||||||
|
Modal handles download, mixdown via PyAV, and upload.
|
||||||
|
"""
|
||||||
|
|
||||||
|
def __init__(self, modal_api_key: str | None = None):
|
||||||
|
if not settings.MIXDOWN_URL:
|
||||||
|
raise ValueError("MIXDOWN_URL required to use AudioMixdownModalProcessor")
|
||||||
|
|
||||||
|
self.mixdown_url = settings.MIXDOWN_URL + "/v1"
|
||||||
|
self.timeout = settings.MIXDOWN_TIMEOUT
|
||||||
|
self.modal_api_key = modal_api_key or settings.MIXDOWN_MODAL_API_KEY
|
||||||
|
|
||||||
|
if not self.modal_api_key:
|
||||||
|
raise ValueError(
|
||||||
|
"MIXDOWN_MODAL_API_KEY required to use AudioMixdownModalProcessor"
|
||||||
|
)
|
||||||
|
|
||||||
|
async def mixdown(
|
||||||
|
self,
|
||||||
|
track_urls: list[str],
|
||||||
|
output_url: str,
|
||||||
|
target_sample_rate: int,
|
||||||
|
expected_duration_sec: float | None = None,
|
||||||
|
) -> MixdownResponse:
|
||||||
|
"""Mix multiple audio tracks via Modal backend.
|
||||||
|
|
||||||
|
Args:
|
||||||
|
track_urls: List of presigned GET URLs for audio tracks (non-empty)
|
||||||
|
output_url: Presigned PUT URL for output MP3
|
||||||
|
target_sample_rate: Sample rate for output (Hz, must be positive)
|
||||||
|
expected_duration_sec: Optional fallback duration if container metadata unavailable
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
MixdownResponse with duration_ms, tracks_mixed, audio_uploaded
|
||||||
|
|
||||||
|
Raises:
|
||||||
|
ValueError: If track_urls is empty or target_sample_rate invalid
|
||||||
|
httpx.HTTPStatusError: On HTTP errors (404, 403, 500, etc.)
|
||||||
|
httpx.TimeoutException: On timeout
|
||||||
|
"""
|
||||||
|
# Validate inputs
|
||||||
|
if not track_urls:
|
||||||
|
raise ValueError("track_urls cannot be empty")
|
||||||
|
if target_sample_rate <= 0:
|
||||||
|
raise ValueError(
|
||||||
|
f"target_sample_rate must be positive, got {target_sample_rate}"
|
||||||
|
)
|
||||||
|
if expected_duration_sec is not None and expected_duration_sec < 0:
|
||||||
|
raise ValueError(
|
||||||
|
f"expected_duration_sec cannot be negative, got {expected_duration_sec}"
|
||||||
|
)
|
||||||
|
|
||||||
|
async with httpx.AsyncClient(timeout=self.timeout) as client:
|
||||||
|
response = await client.post(
|
||||||
|
f"{self.mixdown_url}/audio/mixdown",
|
||||||
|
headers={"Authorization": f"Bearer {self.modal_api_key}"},
|
||||||
|
json={
|
||||||
|
"track_urls": track_urls,
|
||||||
|
"output_url": output_url,
|
||||||
|
"target_sample_rate": target_sample_rate,
|
||||||
|
"expected_duration_sec": expected_duration_sec,
|
||||||
|
},
|
||||||
|
)
|
||||||
|
response.raise_for_status()
|
||||||
|
return MixdownResponse(**response.json())
|
||||||
@@ -98,6 +98,17 @@ class Settings(BaseSettings):
|
|||||||
# Diarization: local pyannote.audio
|
# Diarization: local pyannote.audio
|
||||||
DIARIZATION_PYANNOTE_AUTH_TOKEN: str | None = None
|
DIARIZATION_PYANNOTE_AUTH_TOKEN: str | None = None
|
||||||
|
|
||||||
|
# Audio Mixdown
|
||||||
|
# backends:
|
||||||
|
# - local: in-process PyAV mixdown (runs in same process as Hatchet worker)
|
||||||
|
# - modal: HTTP API client to Modal.com CPU container
|
||||||
|
MIXDOWN_BACKEND: str = "local"
|
||||||
|
MIXDOWN_URL: str | None = None
|
||||||
|
MIXDOWN_TIMEOUT: int = 900 # 15 minutes
|
||||||
|
|
||||||
|
# Mixdown: modal backend
|
||||||
|
MIXDOWN_MODAL_API_KEY: str | None = None
|
||||||
|
|
||||||
# Sentry
|
# Sentry
|
||||||
SENTRY_DSN: str | None = None
|
SENTRY_DSN: str | None = None
|
||||||
|
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ broadcast messages to all connected websockets.
|
|||||||
|
|
||||||
import asyncio
|
import asyncio
|
||||||
import json
|
import json
|
||||||
|
import threading
|
||||||
|
|
||||||
import redis.asyncio as redis
|
import redis.asyncio as redis
|
||||||
from fastapi import WebSocket
|
from fastapi import WebSocket
|
||||||
@@ -97,10 +98,8 @@ class WebsocketManager:
|
|||||||
|
|
||||||
async def _pubsub_data_reader(self, pubsub_subscriber):
|
async def _pubsub_data_reader(self, pubsub_subscriber):
|
||||||
while True:
|
while True:
|
||||||
# timeout=1.0 prevents tight CPU loop when no messages available
|
|
||||||
message = await pubsub_subscriber.get_message(
|
message = await pubsub_subscriber.get_message(
|
||||||
ignore_subscribe_messages=True,
|
ignore_subscribe_messages=True
|
||||||
timeout=1.0,
|
|
||||||
)
|
)
|
||||||
if message is not None:
|
if message is not None:
|
||||||
room_id = message["channel"].decode("utf-8")
|
room_id = message["channel"].decode("utf-8")
|
||||||
@@ -110,38 +109,29 @@ class WebsocketManager:
|
|||||||
await socket.send_json(data)
|
await socket.send_json(data)
|
||||||
|
|
||||||
|
|
||||||
# Process-global singleton to ensure only one WebsocketManager instance exists.
|
|
||||||
# Multiple instances would cause resource leaks and CPU issues.
|
|
||||||
_ws_manager: WebsocketManager | None = None
|
|
||||||
|
|
||||||
|
|
||||||
def get_ws_manager() -> WebsocketManager:
|
def get_ws_manager() -> WebsocketManager:
|
||||||
"""
|
"""
|
||||||
Returns the global WebsocketManager singleton.
|
Returns the WebsocketManager instance for managing websockets.
|
||||||
|
|
||||||
Creates instance on first call, subsequent calls return cached instance.
|
This function initializes and returns the WebsocketManager instance,
|
||||||
Thread-safe via GIL. Concurrent initialization may create duplicate
|
which is responsible for managing websockets and handling websocket
|
||||||
instances but last write wins (acceptable for this use case).
|
connections.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
WebsocketManager: The global WebsocketManager instance.
|
WebsocketManager: The initialized WebsocketManager instance.
|
||||||
|
|
||||||
|
Raises:
|
||||||
|
ImportError: If the 'reflector.settings' module cannot be imported.
|
||||||
|
RedisConnectionError: If there is an error connecting to the Redis server.
|
||||||
"""
|
"""
|
||||||
global _ws_manager
|
local = threading.local()
|
||||||
|
if hasattr(local, "ws_manager"):
|
||||||
|
return local.ws_manager
|
||||||
|
|
||||||
if _ws_manager is not None:
|
|
||||||
return _ws_manager
|
|
||||||
|
|
||||||
# No lock needed - GIL makes this safe enough
|
|
||||||
# Worst case: race creates two instances, last assignment wins
|
|
||||||
pubsub_client = RedisPubSubManager(
|
pubsub_client = RedisPubSubManager(
|
||||||
host=settings.REDIS_HOST,
|
host=settings.REDIS_HOST,
|
||||||
port=settings.REDIS_PORT,
|
port=settings.REDIS_PORT,
|
||||||
)
|
)
|
||||||
_ws_manager = WebsocketManager(pubsub_client=pubsub_client)
|
ws_manager = WebsocketManager(pubsub_client=pubsub_client)
|
||||||
return _ws_manager
|
local.ws_manager = ws_manager
|
||||||
|
return ws_manager
|
||||||
|
|
||||||
def reset_ws_manager() -> None:
|
|
||||||
"""Reset singleton for testing. DO NOT use in production."""
|
|
||||||
global _ws_manager
|
|
||||||
_ws_manager = None
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import os
|
import os
|
||||||
from contextlib import asynccontextmanager
|
from contextlib import asynccontextmanager
|
||||||
|
from tempfile import NamedTemporaryFile
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
@@ -332,17 +333,10 @@ def celery_enable_logging():
|
|||||||
|
|
||||||
@pytest.fixture(scope="session")
|
@pytest.fixture(scope="session")
|
||||||
def celery_config():
|
def celery_config():
|
||||||
# Use Redis for chord/group task execution (memory:// broker doesn't support chords)
|
with NamedTemporaryFile() as f:
|
||||||
# Redis must be running - start with: docker compose up -d redis
|
|
||||||
import os
|
|
||||||
|
|
||||||
redis_host = os.environ.get("REDIS_HOST", "localhost")
|
|
||||||
redis_port = os.environ.get("REDIS_PORT", "6379")
|
|
||||||
# Use db 2 to avoid conflicts with main app
|
|
||||||
redis_url = f"redis://{redis_host}:{redis_port}/2"
|
|
||||||
yield {
|
yield {
|
||||||
"broker_url": redis_url,
|
"broker_url": "memory://",
|
||||||
"result_backend": redis_url,
|
"result_backend": f"db+sqlite:///{f.name}",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -376,12 +370,9 @@ async def ws_manager_in_memory(monkeypatch):
|
|||||||
def __init__(self, queue: asyncio.Queue):
|
def __init__(self, queue: asyncio.Queue):
|
||||||
self.queue = queue
|
self.queue = queue
|
||||||
|
|
||||||
async def get_message(
|
async def get_message(self, ignore_subscribe_messages: bool = True):
|
||||||
self, ignore_subscribe_messages: bool = True, timeout: float | None = None
|
|
||||||
):
|
|
||||||
wait_timeout = timeout if timeout is not None else 0.05
|
|
||||||
try:
|
try:
|
||||||
return await asyncio.wait_for(self.queue.get(), timeout=wait_timeout)
|
return await asyncio.wait_for(self.queue.get(), timeout=0.05)
|
||||||
except Exception:
|
except Exception:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|||||||
@@ -115,7 +115,9 @@ def appserver(tmpdir, setup_database, celery_session_app, celery_session_worker)
|
|||||||
settings.DATA_DIR = DATA_DIR
|
settings.DATA_DIR = DATA_DIR
|
||||||
|
|
||||||
|
|
||||||
# Using celery_includes from conftest.py which includes both pipelines
|
@pytest.fixture(scope="session")
|
||||||
|
def celery_includes():
|
||||||
|
return ["reflector.pipelines.main_live_pipeline"]
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.usefixtures("setup_database")
|
@pytest.mark.usefixtures("setup_database")
|
||||||
|
|||||||
@@ -56,12 +56,7 @@ def appserver_ws_user(setup_database):
|
|||||||
|
|
||||||
if server_instance:
|
if server_instance:
|
||||||
server_instance.should_exit = True
|
server_instance.should_exit = True
|
||||||
server_thread.join(timeout=2.0)
|
server_thread.join(timeout=30)
|
||||||
|
|
||||||
# Reset global singleton for test isolation
|
|
||||||
from reflector.ws_manager import reset_ws_manager
|
|
||||||
|
|
||||||
reset_ws_manager()
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(autouse=True)
|
@pytest.fixture(autouse=True)
|
||||||
@@ -138,11 +133,6 @@ async def test_user_ws_accepts_valid_token_and_receives_events(appserver_ws_user
|
|||||||
|
|
||||||
# Connect and then trigger an event via HTTP create
|
# Connect and then trigger an event via HTTP create
|
||||||
async with aconnect_ws(base_ws, subprotocols=subprotocols) as ws:
|
async with aconnect_ws(base_ws, subprotocols=subprotocols) as ws:
|
||||||
# Give Redis pubsub time to establish subscription before publishing
|
|
||||||
import asyncio
|
|
||||||
|
|
||||||
await asyncio.sleep(0.2)
|
|
||||||
|
|
||||||
# Emit an event to the user's room via a standard HTTP action
|
# Emit an event to the user's room via a standard HTTP action
|
||||||
from httpx import AsyncClient
|
from httpx import AsyncClient
|
||||||
|
|
||||||
@@ -160,7 +150,6 @@ async def test_user_ws_accepts_valid_token_and_receives_events(appserver_ws_user
|
|||||||
"email": "user-abc@example.com",
|
"email": "user-abc@example.com",
|
||||||
}
|
}
|
||||||
|
|
||||||
# Use in-memory client (global singleton makes it share ws_manager)
|
|
||||||
async with AsyncClient(app=app, base_url=f"http://{host}:{port}/v1") as ac:
|
async with AsyncClient(app=app, base_url=f"http://{host}:{port}/v1") as ac:
|
||||||
# Create a transcript as this user so that the server publishes TRANSCRIPT_CREATED to user room
|
# Create a transcript as this user so that the server publishes TRANSCRIPT_CREATED to user room
|
||||||
resp = await ac.post("/transcripts", json={"name": "WS Test"})
|
resp = await ac.post("/transcripts", json={"name": "WS Test"})
|
||||||
|
|||||||
20
server/uv.lock
generated
20
server/uv.lock
generated
@@ -330,6 +330,26 @@ name = "av"
|
|||||||
version = "14.4.0"
|
version = "14.4.0"
|
||||||
source = { registry = "https://pypi.org/simple" }
|
source = { registry = "https://pypi.org/simple" }
|
||||||
sdist = { url = "https://files.pythonhosted.org/packages/86/f6/0b473dab52dfdea05f28f3578b1c56b6c796ce85e76951bab7c4e38d5a74/av-14.4.0.tar.gz", hash = "sha256:3ecbf803a7fdf67229c0edada0830d6bfaea4d10bfb24f0c3f4e607cd1064b42", size = 3892203 }
|
sdist = { url = "https://files.pythonhosted.org/packages/86/f6/0b473dab52dfdea05f28f3578b1c56b6c796ce85e76951bab7c4e38d5a74/av-14.4.0.tar.gz", hash = "sha256:3ecbf803a7fdf67229c0edada0830d6bfaea4d10bfb24f0c3f4e607cd1064b42", size = 3892203 }
|
||||||
|
wheels = [
|
||||||
|
{ url = "https://files.pythonhosted.org/packages/18/8a/d57418b686ffd05fabd5a0a9cfa97e63b38c35d7101af00e87c51c8cc43c/av-14.4.0-cp311-cp311-macosx_12_0_arm64.whl", hash = "sha256:5b21d5586a88b9fce0ab78e26bd1c38f8642f8e2aad5b35e619f4d202217c701", size = 19965048 },
|
||||||
|
{ url = "https://files.pythonhosted.org/packages/f5/aa/3f878b0301efe587e9b07bb773dd6b47ef44ca09a3cffb4af50c08a170f3/av-14.4.0-cp311-cp311-macosx_12_0_x86_64.whl", hash = "sha256:cf8762d90b0f94a20c9f6e25a94f1757db5a256707964dfd0b1d4403e7a16835", size = 23750064 },
|
||||||
|
{ url = "https://files.pythonhosted.org/packages/9a/b4/6fe94a31f9ed3a927daa72df67c7151968587106f30f9f8fcd792b186633/av-14.4.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c0ac9f08920c7bbe0795319689d901e27cb3d7870b9a0acae3f26fc9daa801a6", size = 33648775 },
|
||||||
|
{ url = "https://files.pythonhosted.org/packages/6c/f3/7f3130753521d779450c935aec3f4beefc8d4645471159f27b54e896470c/av-14.4.0-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:a56d9ad2afdb638ec0404e962dc570960aae7e08ae331ad7ff70fbe99a6cf40e", size = 32216915 },
|
||||||
|
{ url = "https://files.pythonhosted.org/packages/f8/9a/8ffabfcafb42154b4b3a67d63f9b69e68fa8c34cb39ddd5cb813dd049ed4/av-14.4.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6bed513cbcb3437d0ae47743edc1f5b4a113c0b66cdd4e1aafc533abf5b2fbf2", size = 35287279 },
|
||||||
|
{ url = "https://files.pythonhosted.org/packages/ad/11/7023ba0a2ca94a57aedf3114ab8cfcecb0819b50c30982a4c5be4d31df41/av-14.4.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:d030c2d3647931e53d51f2f6e0fcf465263e7acf9ec6e4faa8dbfc77975318c3", size = 36294683 },
|
||||||
|
{ url = "https://files.pythonhosted.org/packages/3d/fa/b8ac9636bd5034e2b899354468bef9f4dadb067420a16d8a493a514b7817/av-14.4.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:1cc21582a4f606271d8c2036ec7a6247df0831050306c55cf8a905701d0f0474", size = 34552391 },
|
||||||
|
{ url = "https://files.pythonhosted.org/packages/fb/29/0db48079c207d1cba7a2783896db5aec3816e17de55942262c244dffbc0f/av-14.4.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:ce7c9cd452153d36f1b1478f904ed5f9ab191d76db873bdd3a597193290805d4", size = 37265250 },
|
||||||
|
{ url = "https://files.pythonhosted.org/packages/1c/55/715858c3feb7efa4d667ce83a829c8e6ee3862e297fb2b568da3f968639d/av-14.4.0-cp311-cp311-win_amd64.whl", hash = "sha256:fd261e31cc6b43ca722f80656c39934199d8f2eb391e0147e704b6226acebc29", size = 27925845 },
|
||||||
|
{ url = "https://files.pythonhosted.org/packages/a6/75/b8641653780336c90ba89e5352cac0afa6256a86a150c7703c0b38851c6d/av-14.4.0-cp312-cp312-macosx_12_0_arm64.whl", hash = "sha256:a53e682b239dd23b4e3bc9568cfb1168fc629ab01925fdb2e7556eb426339e94", size = 19954125 },
|
||||||
|
{ url = "https://files.pythonhosted.org/packages/99/e6/37fe6fa5853a48d54d749526365780a63a4bc530be6abf2115e3a21e292a/av-14.4.0-cp312-cp312-macosx_12_0_x86_64.whl", hash = "sha256:5aa0b901751a32703fa938d2155d56ce3faf3630e4a48d238b35d2f7e49e5395", size = 23751479 },
|
||||||
|
{ url = "https://files.pythonhosted.org/packages/f7/75/9a5f0e6bda5f513b62bafd1cff2b495441a8b07ab7fb7b8e62f0c0d1683f/av-14.4.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a3b316fed3597675fe2aacfed34e25fc9d5bb0196dc8c0b014ae5ed4adda48de", size = 33801401 },
|
||||||
|
{ url = "https://files.pythonhosted.org/packages/6a/c9/e4df32a2ad1cb7f3a112d0ed610c5e43c89da80b63c60d60e3dc23793ec0/av-14.4.0-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:a587b5c5014c3c0e16143a0f8d99874e46b5d0c50db6111aa0b54206b5687c81", size = 32364330 },
|
||||||
|
{ url = "https://files.pythonhosted.org/packages/ca/f0/64e7444a41817fde49a07d0239c033f7e9280bec4a4bb4784f5c79af95e6/av-14.4.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:10d53f75e8ac1ec8877a551c0db32a83c0aaeae719d05285281eaaba211bbc30", size = 35519508 },
|
||||||
|
{ url = "https://files.pythonhosted.org/packages/c2/a8/a370099daa9033a3b6f9b9bd815304b3d8396907a14d09845f27467ba138/av-14.4.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:c8558cfde79dd8fc92d97c70e0f0fa8c94c7a66f68ae73afdf58598f0fe5e10d", size = 36448593 },
|
||||||
|
{ url = "https://files.pythonhosted.org/packages/27/bb/edb6ceff8fa7259cb6330c51dbfbc98dd1912bd6eb5f7bc05a4bb14a9d6e/av-14.4.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:455b6410dea0ab2d30234ffb28df7d62ca3cdf10708528e247bec3a4cdcced09", size = 34701485 },
|
||||||
|
{ url = "https://files.pythonhosted.org/packages/a7/8a/957da1f581aa1faa9a5dfa8b47ca955edb47f2b76b949950933b457bfa1d/av-14.4.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:1661efbe9d975f927b8512d654704223d936f39016fad2ddab00aee7c40f412c", size = 37521981 },
|
||||||
|
{ url = "https://files.pythonhosted.org/packages/28/76/3f1cf0568592f100fd68eb40ed8c491ce95ca3c1378cc2d4c1f6d1bd295d/av-14.4.0-cp312-cp312-win_amd64.whl", hash = "sha256:fbbeef1f421a3461086853d6464ad5526b56ffe8ccb0ab3fd0a1f121dfbf26ad", size = 27925944 },
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "banks"
|
name = "banks"
|
||||||
|
|||||||
Reference in New Issue
Block a user