This commit is contained in:
@@ -36,8 +36,9 @@ class FilterView(FlaskView):
|
||||
current_app.logger.exception(e)
|
||||
return abort(417, 'Input JSON schema invalid')
|
||||
|
||||
soundfile_handle, soundfile_path = tempfile.mkstemp()
|
||||
soundfile.save(open(soundfile_handle, "wb+"))
|
||||
soundfile_handle, soundfile_path = tempfile.mkstemp(suffix=".wav")
|
||||
with open(soundfile_handle, "wb+") as f:
|
||||
soundfile.save(f)
|
||||
|
||||
task = {
|
||||
"audio_file_path": soundfile_path,
|
||||
|
||||
Reference in New Issue
Block a user