File size: 763 Bytes
958fece
 
 
327b929
958fece
 
bf6e45c
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
fastapi==0.115.0
uvicorn==0.30.6
pdfplumber==0.11.4
python-docx==1.1.2
python-multipart==0.0.9
pydantic==2.8.2

# Text-to-speech: Kokoro-82M via ONNX Runtime (fp32 export — identical weights
# to the torch release, so no quality loss) with misaki providing the same
# English G2P the torch pipeline uses. 2-4x faster than torch on CPU and keeps
# torch (~2GB) out of the image. Model files are fetched in the Dockerfile
# (or point KOKORO_ONNX_MODEL / KOKORO_ONNX_VOICES at them).
# The /tts route still degrades gracefully to 503 if anything is missing.
kokoro-onnx>=0.4.9
misaki[en]>=0.9.4
soundfile>=0.12.1
# Optional torch fallback (heavy): `pip install kokoro>=0.9.2` — picked up
# automatically by TTS_BACKEND=auto when the ONNX model files are absent.