How to convert .mp3 file to .PTH file

Someone can help me please I need to convert an .mp3 file to a .PTH file but don’t know how to do it

Could you describe your use case in more details, please?
Do you want to store the decoded waveforms from the mp3 file as a tensor?
If so, you could use torchaudio to read the data, transform it to a tensor, and store it via torch.save.

Kits dot ai requires you to upload the file in .pht format, so I think that’s why he wants the file in .pht. Additionally, Mobile phone recorded audio that you are trying to use for training is in .dat that can be converted to .mp3. The issue now is converting from MP3 to .pht.

Hey sorry for late reply. u can use this :slight_smile:

BahaaAI - RVC Model Training & Inference- 19 January 2025 - Colab