SociallyIneptWeeb / LanguageLeapAI

Your Personal Multilingual AI Translator
MIT License
849 stars 168 forks source link

Language Leap Package uplift #22

Open santosderek opened 1 year ago

santosderek commented 1 year ago

A general uplift of the language leap package.

I would highly recommend pulling this branch down and testing locally; and/or if not comfortable merging, I think it would be a good reference to uplifting some areas of the code. I didn't see an area for unit tests but please correct me if I'm wrong :+1:

If so, feel free to close the PR as desired, just thought it may help.

Changes include:

As mentioned above, the directory structure for src/ now looks like:

$ tree
.
└── src
    ├── language_leap
    │   ├── asr.py
    │   ├── audio
    │   │   └── samples
    │   │       ├── english_speech_sample.wav
    │   │       └── japanese_speech_sample.wav
    │   ├── audio_translate.py
    │   ├── environment.py
    │   ├── get_audio_device_ids.py
    │   ├── __init__.py
    │   ├── subtitler.py
    │   ├── tts.py
    │   ├── voice_translator.py
    │   └── voicevox.py
    ├── run_voicevox_colab.ipynb
    └── run_whisper_colab.ipynb

If at any point in the future you wanted to make this a python package, or cythonize it, you could use this directory structure to manage package imports and/or easily place the package into a docker container during a build process.

SociallyIneptWeeb commented 1 year ago

Thanks a lot! I'll look into it when I have the time 👍