blog.humaneguitarist.org

AudioRegent 1.3.1 released

[Thu, 28 Jul 2011 22:31:52 +0000]
I've updated AudioRegent to version 1.3.1. You can read an overview of the software and get the download link to the new version here [http://blog.humaneguitarist.org/projects/audioregent/]. The only reason I updated the software is because, as I've mentioned before [http://blog.humaneguitarist.org/2011/04/26/dot-dot-slash-slash/], I've been having problems with Windows (and only recently at that) in terms of calling executables from the command line. What seems to have helped is to no longer pass a command as a string a la: RunSoxString = SoxPath + " ./outWavs/" + OggArray[cnt] + ws + "--comment-file comment.txt ./outOggs/" + str(OggArray[cnt])[:-4] + "." + outputType + ws + SoxOptions RunSox = subprocess.Popen([RunSoxString], shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE) RunSox.wait() #wait until the subprocess finishes Now, it seems I have to pass it as a Python list (aka an array): RunSoxString = SoxPath + " ./outWavs/" + OggArray[cnt] + ws + "--comment-file comment.txt ./outOggs/" + str(OggArray[cnt])[:-4] + "." + outputType + ws + SoxOptions import shlex RunSoxList = shlex.split(RunSoxString) RunSox = subprocess.Popen(RunSoxList, shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE) RunSox.wait() #wait until the subprocess finishes By the way, I totally haven't tested this new version enough to distribute it and I haven't tested it at all on a Linux box. But since no one's using it, I'm not too worried. :)