# Missing Packages Analysis ## Packages Used in Code but Missing from requirements.txt ### Critical Missing Packages: 1. **`gtts`** (Google Text-to-Speech) - **Used in**: `utils/textToSpeech.py` - **Status**: ❌ Missing from requirements.txt - **In pyproject.toml**: ✅ Yes (line 15: `gtts>=2.5.4`) - **Action**: Add to requirements.txt 2. **`pyannote-audio`** - **Used in**: `utils/model_factory.py` (imports `Pipeline`, `Inference`) - **Status**: ❌ Missing from requirements.txt - **In pyproject.toml**: ✅ Yes (line 21: `pyannote-audio==3.1.1`) - **Action**: Add to requirements.txt 3. **`soundfile`** - **Used in**: Required by `pyannote-audio` - **Status**: ❌ Missing from requirements.txt - **In pyproject.toml**: ✅ Yes (line 20: `soundfile>=0.13.1`) - **Action**: Add to requirements.txt ### Packages with Missing Versions: 4. **`scikit-learn`** - **Used in**: `tools/speakerEmbeddingTool.py` (imports `sklearn.metrics.pairwise.cosine_similarity`) - **Status**: ⚠️ In requirements.txt but WITHOUT version (line 75) - **In pyproject.toml**: ✅ Yes (line 26: `scikit-learn>=1.8.0`) - **Action**: Add version pin to requirements.txt ### Potentially Missing (Check if needed): 5. **`faster-whisper`** - **Used in**: Not directly imported in code - **Status**: ❌ Missing from requirements.txt - **In pyproject.toml**: ✅ Yes (line 23: `faster-whisper>=1.2.1`) - **Note**: May be an optional dependency or used indirectly ## Summary **Total Missing**: 4 packages - 3 critical packages (`gtts`, `pyannote-audio`, `soundfile`) - 1 package without version (`scikit-learn`) ## Recommended Fix Add these lines to `requirements.txt`: ``` gtts>=2.5.4 pyannote-audio==3.1.1 soundfile>=0.13.1 scikit-learn>=1.8.0 ``` Note: `faster-whisper` is listed in pyproject.toml but not used directly in code. You may want to verify if it's needed or remove it from pyproject.toml if unused.