process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=
    subprocess.PIPE, creationflags=subprocess_flags)
stdout, stderr = process.communicate()
if process.returncode != 0 or not os.path.exists(output_filename):
    raise AudioProcessingException(stdout)
return output_filename
Обработка сбоя подпроцесса в Windows