mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2026-03-27 09:26:46 +00:00
* fix: local processing instead of http server for cpu * add fallback token if service worker doesnt work * chore: rename processors to keep processor pattern up to date and allow other processors to be createed and used with env vars
24 lines
451 B
Python
24 lines
451 B
Python
"""
|
|
Base class for audio padding processors.
|
|
"""
|
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class PaddingResponse(BaseModel):
|
|
size: int
|
|
cancelled: bool = False
|
|
|
|
|
|
class AudioPaddingProcessor:
|
|
"""Base class for audio padding processors."""
|
|
|
|
async def pad_track(
|
|
self,
|
|
track_url: str,
|
|
output_url: str,
|
|
start_time_seconds: float,
|
|
track_index: int,
|
|
) -> PaddingResponse:
|
|
raise NotImplementedError
|