File size: 844 Bytes
41979e6
e4a7287
41979e6
 
e4a7287
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41979e6
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import os
from pathlib import Path

class Settings:
    # Temel ayarlar
    ENVIRONMENT = os.environ.get("ENVIRONMENT", "production")
    DEBUG = False
    
    # Hugging Face ayarları
    HF_TOKEN = os.environ.get("HF_TOKEN", "")
    HF_CACHE_DIR = Path("/root/.cache/huggingface")
    
    # ASR ayarları
    ASR_MODEL = "openai/whisper-large-v3"
    DIAR_MODEL = "pyannote/speaker-diarization-3.1"
    ANONYMIZE_DATA = True
    ENHANCE_AUDIO = True
    
    # Dosya boyutu limitleri
    MAX_UPLOAD_SIZE = 25 * 1024 * 1024  # 25 MB
    
    # Dil ayarları
    LANGUAGE = "tr"
    SPACY_MODEL = "tr_core_news_sm"
    
    # Özel tıbbi terimler dosyası
    MEDICAL_TERMS_FILE = "medical_terms.json"
    
    # Önbellek ayarları
    CACHE_DIR = Path("/tmp/voice_to_write_cache")
    CACHE_DIR.mkdir(exist_ok=True)

settings = Settings()