-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathcheck_dependencies.py
More file actions
52 lines (46 loc) · 1.71 KB
/
Copy pathcheck_dependencies.py
File metadata and controls
52 lines (46 loc) · 1.71 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
#!/usr/bin/env python
"""Check if qualitative voice dependencies are installed."""
import sys
print("=" * 60)
print("Qualitative Voice Metrics - Dependency Check")
print("=" * 60)
print(f"Python: {sys.version}")
print()
deps = [
("torch", "torch", "Deep learning framework for ML models"),
("transformers", "transformers", "Hugging Face models for emotion detection"),
("speechbrain", "speechbrain", "Speaker consistency (ECAPA-TDNN)"),
("librosa", "librosa", "Audio loading and processing"),
("parselmouth", "parselmouth", "Prosody and acoustic metrics (Praat)"),
("scipy", "scipy", "Scientific computing"),
]
all_installed = True
for name, module, description in deps:
try:
m = __import__(module)
version = getattr(m, "__version__", "installed")
print(f"✅ {name}: {version}")
print(f" └─ {description}")
except ImportError as e:
all_installed = False
print(f"❌ {name}: NOT INSTALLED")
print(f" └─ {description}")
print(f" └─ Error: {e}")
except Exception as e:
all_installed = False
print(f"⚠️ {name}: IMPORT ERROR (version conflict?)")
print(f" └─ {description}")
print(f" └─ Error: {e}")
print()
print("=" * 60)
if all_installed:
print("✅ All dependencies installed! Qualitative metrics should work.")
else:
print("❌ Some dependencies are missing!")
print()
print("Install with:")
print(' pip install torch transformers speechbrain librosa praat-parselmouth scipy')
print()
print("Or install the optional group:")
print(' pip install -e ".[qualitative-voice]"')
print("=" * 60)