HoneyTian commited on
Commit
1b1a336
1 Parent(s): dcf6c65
Files changed (1) hide show
  1. main.py +1 -0
main.py CHANGED
@@ -81,6 +81,7 @@ def process(
81
  # audio convert
82
  in_filename = Path(in_filename)
83
  out_filename = Path(tempfile.gettempdir()) / "asr" / in_filename.name
 
84
 
85
  audio_convert(in_filename=in_filename.as_posix(),
86
  out_filename=out_filename.as_posix(),
 
81
  # audio convert
82
  in_filename = Path(in_filename)
83
  out_filename = Path(tempfile.gettempdir()) / "asr" / in_filename.name
84
+ out_filename.parent.mkdir(parents=True, exist_ok=True)
85
 
86
  audio_convert(in_filename=in_filename.as_posix(),
87
  out_filename=out_filename.as_posix(),