-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpyproject.toml
More file actions
176 lines (166 loc) 路 4.51 KB
/
Copy pathpyproject.toml
File metadata and controls
176 lines (166 loc) 路 4.51 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
[project]
name = "efficientai"
version = "0.1.0"
description = "Voice AI Evaluation Platform"
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
# Cap below 0.137: FastAPI 0.137+ uses _IncludedRouter without .path, which
# breaks prometheus-fastapi-instrumentator on every API request when
# OBSERVABILITY_ENABLED is true. See prometheus-fastapi-instrumentator#370.
"fastapi>=0.104.0,<0.137",
"uvicorn[standard]>=0.24.0",
"sqlalchemy>=2.0.0",
"alembic>=1.12.0",
"psycopg2-binary>=2.9.9",
"pydantic[email]>=2.5.0",
"pydantic-settings>=2.1.0",
"python-multipart>=0.0.6",
"python-jose[cryptography]>=3.3.0",
"bcrypt>=4.2.0",
"cryptography>=41.0.0",
"celery>=5.3.0",
"redis>=5.0.0",
"librosa>=0.10.0",
"soundfile>=0.12.0",
"pydub>=0.25.1",
"python-dotenv>=1.0.0",
"httpx>=0.25.0",
"click>=8.1.0",
"pyyaml>=6.0.0",
"aiofiles>=23.2.0",
"boto3>=1.34.0",
"google-cloud-storage>=2.14.0",
"azure-storage-blob>=12.19.0",
"cartesia>=0.1.0",
"deepgram-sdk>=3.0.0,<4.0.0",
"sarvamai>=0.1.0",
"loguru>=0.7.0",
"retell-sdk>=0.1.0",
"livekit>=0.11.0",
"daily-python>=0.10.0",
"aiortc>=1.6.0",
"av>=10.0.0",
"croniter>=2.0.0",
"pytz>=2024.1",
"jiwer>=3.0.0",
"litellm>=1.84.0,<2.0.0",
"jinja2>=3.1.0",
"wait-for2>=0.4.0",
"docstring-parser>=0.15",
"pyloudnorm>=0.1.0",
"numpy>=1.24.0",
"aiohttp>=3.9.0",
"websockets>=12.0",
"pillow>=10.0.0",
"protobuf>=4.25.0",
"requests>=2.31.0",
"nltk>=3.8.0",
"openai>=1.0.0",
"anthropic>=0.18.0",
"huggingface-hub>=0.20.0",
"soxr>=0.3.0",
"typing-extensions>=4.9.0",
"onnxruntime>=1.17.0",
"prometheus-fastapi-instrumentator>=7.0.0",
"plivo>=4.47.0",
"openpyxl>=3.1.0",
"weasyprint>=62.0",
"flexprice>=2.1.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.4.0",
"pytest-asyncio>=0.21.0",
"pytest-cov>=4.1.0",
"pytest-mock>=3.14.0",
"pytest-xdist>=3.5.0",
"factory-boy>=3.3.1",
"moto[s3]>=5.0.0",
"black>=23.11.0",
"ruff>=0.1.0",
"mypy>=1.7.0",
]
local-smart-turn-v3 = [
"transformers>=5.5.0,<6.0.0",
"onnxruntime>=1.17.0",
"importlib-resources>=6.4.0",
]
cartesia = [
"cartesia>=0.1.0",
"websockets>=12.0",
]
deepgram = [
"deepgram-sdk>=3.0.0,<4.0.0",
]
# Local Whisper transcription (requires PyTorch) - use OpenAI API instead for lighter install
local-whisper = [
"openai-whisper>=20231117",
]
# Qualitative Voice AI Metrics (MOS, Emotion, Prosody) + Speaker Diarization
qualitative-voice = [
"torch>=2.0.0",
"torchaudio>=2.1.0",
"transformers>=5.5.0,<6.0.0",
"librosa>=0.10.0",
"imageio-ffmpeg>=0.5.1",
"scipy>=1.11.0",
"pyannote.audio>=3.1.0",
"praat-parselmouth>=0.4.3",
]
# NVIDIA NeMo ASR for TTS hallucination detection (WER/CER via Conformer CTC)
nemo-asr = [
"nemo_toolkit[asr]>=1.20.0",
]
# Google AI services (Gemini, Cloud TTS, Cloud Speech)
google = [
"google-genai>=1.0.0",
"google-cloud-texttospeech>=2.16.0",
"google-cloud-speech>=2.26.0",
]
plivo = [
"plivo>=4.47.0",
]
# GEPA prompt optimization (enterprise feature)
gepa = [
"gepa",
"dspy",
]
# Optional: Speaker Consistency metric (has version conflicts with torchaudio)
# speechbrain = ["speechbrain>=1.0.0"]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build]
force-include = { "src/efficientai" = "efficientai" }
[tool.hatch.build.targets.wheel]
packages = ["app", "efficientai"]
[project.scripts]
eai = "app.cli:main"
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "I", "N", "W"]
ignore = []
[tool.black]
line-length = 100
target-version = ["py311"]
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
asyncio_mode = "auto"
markers = [
"unit: fast pure unit tests",
"integration: database or app-level integration tests",
"slow: expensive or long-running tests",
]
filterwarnings = [
"ignore:Error loading \\.env file, using defaults\\..*:UserWarning:app\\.database",
"ignore:'audioop' is deprecated and slated for removal in Python 3.13:DeprecationWarning:efficientai\\.audio\\.utils",
]