File size: 515 Bytes
95f1d5c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
services:
  khanhtts-api:
    build: .
    image: khanhtts-api:latest
    ports:
      - "8000:8000"
    environment:
      MODEL_DIR: /app/KhanhTTS-OmniVoice
      DEVICE_MAP: cpu
      TORCH_DTYPE: float32
      DEFAULT_REF_AUDIO: /app/refs/reference.wav
      # DEFAULT_REF_TEXT: transcript của reference.wav (khuyến nghị)
    volumes:
      # Mount local model (avoids baking ~3GB into image)
      - ./KhanhTTS-OmniVoice:/app/KhanhTTS-OmniVoice:ro
      - ./refs:/app/refs:ro
    restart: unless-stopped