[project]
name = "ml-server"
version = "0.1.0"
description = "ML backend server for LocalVoiceMode v2"
readme = "README.md"
license = {text = "MIT"}
requires-python = ">=3.11"
dependencies = [
# Core
"numpy>=1.26",
"scipy>=1.12",
# TTS
"pocket-tts>=0.1",
# ASR
"onnx-asr[gpu,hub]>=0.2",
# SER (SenseVoice)
"funasr>=1.0",
"funasr-onnx>=0.4",
# VAD (Smart Turn)
"transformers>=4.36", # For WhisperFeatureExtractor
# LLM
"httpx>=0.27",
# Utilities
"pyyaml>=6.0",
"pydantic>=2.0",
"python-dotenv>=1.0",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0",
"pytest-asyncio>=0.23",
"ruff>=0.3",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["ml_server"]
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "I", "W"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]