convert_to_wave: do not .split command
This commit is contained in:
parent
96d7ba1a9e
commit
0e907ef255
8
app.py
8
app.py
|
@ -22,9 +22,13 @@ def convert_to_wav(file_name: str):
|
||||||
assert extension != "wav"
|
assert extension != "wav"
|
||||||
|
|
||||||
print(f"{extension=}")
|
print(f"{extension=}")
|
||||||
command = f"tape2wav {file_name} ${output}.wav"
|
command = [
|
||||||
|
"tape2wav",
|
||||||
|
file_name,
|
||||||
|
f"${output}.wav",
|
||||||
|
]
|
||||||
try:
|
try:
|
||||||
check_call(command.split())
|
check_call(command)
|
||||||
except CalledProcessError as exc:
|
except CalledProcessError as exc:
|
||||||
print(f"tape2wav failed: {exc.output=}\n{exc.stderr=}")
|
print(f"tape2wav failed: {exc.output=}\n{exc.stderr=}")
|
||||||
raise
|
raise
|
||||||
|
|
Loading…
Reference in New Issue
Block a user