A script made in Python that converts .wav audio files into .hac files to replace music files in video games (e.g Dragon Ball Sparking Zero). Also has a downloader that downloads any link from YouTube into a .wav file.
MIT License
This Python script allows you to download audio from YouTube videos in .wav
format and convert multiple .wav
files into .hca
and looping that files using VGAudiocli.exe
.
Go to Releases to download the most recent version of the executable.
This script requires the following libraries and tools:
.wav
file of the URL from YouTube..wav
files and the metadata of them..wav
files..wav
files to .hac
.You can install the necessary Python libraries using pip
. Run the following command:
pip install yt-dlp scipy
Clone this repository:
git clone https://github.com/akhos09/wavtohac.git
cd WavToHac
Ensure that all dependencies are installed as outlined above.
Place ffmpeg.exe
in the same directory as this script or specify the correct path in the code.
Run the script:
Open a terminal or command prompt and navigate to the directory containing the script. Run the following command:
python wavtohac.py
Import the .txt file
Write down an .txt
file (https://url,name,name.hca), to import the URL of the song from YouTube you want to download, the name of the .wav
file, and the converted .hca
file name.
For example:
https://www.youtube.com/watch?v=ixZDTiXiHsc,song1,hca1.hca
https://www.youtube.com/watch?v=gqbQuypKCCU,song,hca2.hca
ffmpeg
is in the same directory as the script.yt-dlp
is updated to the latest version for compatibility.See the LICENSE file for details.