bolna icon indicating copy to clipboard operation
bolna copied to clipboard

feat: Replace torchaudio with pydub

Open h3110Fr13nd opened this issue 5 months ago • 2 comments

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
  • sklearn to np
    • bolna/memory/cache/vector_cache
      • __get_top_cosine_similarity_doc

Issue #370 closes as we are replacing both scipy and torchaudio with pydub

h3110Fr13nd avatar Aug 24 '24 14:08 h3110Fr13nd