A Python script designed to convert MP3 files to WAV format, suitable for use as custom lock sounds in Tesla vehicles. The script manages file sizes, ensuring compatibility with Tesla's requirements, and organizes converted and original files into appropriate directories.
- Python 3.x
- pip
- ffmpeg or libav
-
Clone the Repository
git clone https://github.com/windoze95/TeslaLockSoundManager.git cd TeslaLockSoundManager -
Set Up a Virtual Environment
python -m venv teslamanager_venv
-
Activate the Virtual Environment
- On Windows:
teslamanager_venv\Scripts\activate
- On Unix or MacOS:
source teslamanager_venv/bin/activate
- On Windows:
-
Install Required Packages
pip install -r requirements.txt
-
Prepare Your MP3 Files
- Place the MP3 files you want to convert in the
mp3_indirectory.
- Place the MP3 files you want to convert in the
-
Run the Script
python TeslaLockSoundManager.py
-
Check the Output
- Converted WAV files suitable for Tesla lock sounds will be in the
payloaddirectory. - Files too large for Tesla lock sounds will be moved to the
too_bigdirectory. - Original MP3 files will be archived in
archive/mp3.
- Converted WAV files suitable for Tesla lock sounds will be in the
When you are done, you can deactivate the virtual environment:
deactivate