On 03/11/2021 14.41, Shada Bahassan wrote:
>
> I have audio recording files that are compressed using the .ul format.
> So I'd like to convert it to .wav format in order to read these records.
>
Without having any exerience with SoX, it does sound like something it
should be capable of.
> I discovered Sox, which assisted me in converting, but I'm not sure how
> to use it in the command line and django.
>
I still have no idea what you mean by that. You can launch a process
from Python using the subprocess module I mentioned earlier and pass
command line arguments with that module.
You can use subprocess from your Django code just like you can use any
other Python code.
What exactly are you trying to achieve? Maybe try to describe a bit on a
higher level ignoring SoX, process argument handling and maybe even
Django for now.
Kind regards,
Kasper Laudrup