mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 12:19:06 +00:00
* Self-hosted gpu api * Refactor self-hosted api * Rename model api tests * Use lifespan instead of startup event * Fix self hosted imports * Add newlines * Add response models * Move gpu dir to the root * Add project description * Refactor lifespan * Update env var names for model api tests * Preload diarizarion service * Refactor uploaded file paths
13 lines
291 B
Python
13 lines
291 B
Python
from pathlib import Path
|
|
|
|
SUPPORTED_FILE_EXTENSIONS = ["mp3", "mp4", "mpeg", "mpga", "m4a", "wav", "webm"]
|
|
SAMPLE_RATE = 16000
|
|
VAD_CONFIG = {
|
|
"batch_max_duration": 30.0,
|
|
"silence_padding": 0.5,
|
|
"window_size": 512,
|
|
}
|
|
|
|
# App-level paths
|
|
UPLOADS_PATH = Path("/tmp/whisper-uploads")
|