diff --git a/audio.mp3 b/audio.mp3 deleted file mode 100644 index 4203f93..0000000 Binary files a/audio.mp3 and /dev/null differ diff --git a/src/blackbox/text_to_audio.py b/src/blackbox/text_to_audio.py index 6b58e9b..9881d17 100644 --- a/src/blackbox/text_to_audio.py +++ b/src/blackbox/text_to_audio.py @@ -1,5 +1,5 @@ from fastapi import Response, status -from fastapi.responses import FileResponse, JSONResponse +from fastapi.responses import JSONResponse from blackbox.blackbox import Blackbox from gtts import gTTS from io import BytesIO @@ -26,4 +26,4 @@ class TextToAudio(Blackbox): if text is None: return JSONResponse(content={"error": "text is required"}, status_code=status.HTTP_400_BAD_REQUEST) by = self.processing(text) - return Response(content=by.read(), media_type="audio/mpeg", headers={"Content-Disposition": "attachment; filename=audio.mp3"}) \ No newline at end of file + return Response(content=by.read(), media_type="audio/mp3", headers={"Content-Disposition": "attachment; filename=audio.mp3"}) \ No newline at end of file diff --git a/src/my_file.mp3 b/src/my_file.mp3 deleted file mode 100644 index e69de29..0000000