bolna
bolna copied to clipboard
feat: Replace torchaudio with pydub
This PR closes #370 This PR closes #380
feat: Replace torchaudio with pydub refactor: Removed unnecessary dependencies
Removed Requirements
- python-dateutil
- tiktoken
- torchaudio
- scipy
- tokenizers
- huggingface-hub
- sentence-transformers
- optimum[onnxruntime]
Major Changes in This Commit
- torchaudio to pydub
- bolna/helpers/utils.py
- save_audio_file_to_s3
- resample
- pcm_to_wav_bytes
- wav_bytes_to_pcm
- bolna/synthesizer/basesynthesizer
- resample
- bolna/helpers/utils.py
- sklearn to np
- bolna/memory/cache/vector_cache
- __get_top_cosine_similarity_doc
- bolna/memory/cache/vector_cache
Issue #370 closes as we are replacing both scipy and torchaudio with pydub