Finally fixed
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
2021-11-23 21:33:06 +01:00
parent dd2a3cfff5
commit 6c259c1451
5 changed files with 28 additions and 17 deletions

View File

@@ -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,