Comments (3)
A mi en la consola de la web me sale el siguiente error:
recorfer.js:52 Tenemos blobios!
recorder.js:59 POST http://localhost:5000/audio 500 (INTERNAL SERVER ERROR)
doPreview @ recorder.js:59
recorder.js:67 Oops: Ocurrió un error SyntaxError: Unexpected token '<', "<!doctype "... is not valid JSON
Y luego en la terminal de vs code me sale al final:
FileNotFoundError: [Errno 2] No such file or directory: 'static/response.mp3'
pero aqui dejo todo lo demas:
127.0.0.1 - - [19/Jul/2023 23:58:30] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [19/Jul/2023 23:58:30] "GET /static/recorder.css HTTP/1.1" 304 -
127.0.0.1 - - [19/Jul/2023 23:58:30] "GET /static/recorder.js HTTP/1.1" 304 -
127.0.0.1 - - [19/Jul/2023 23:58:30] "GET /static/img/microphone.png HTTP/1.1" 304 -
127.0.0.1 - - [19/Jul/2023 23:58:37] "POST /audio HTTP/1.1" 500 -
Error on request:
Traceback (most recent call last):
File "a:\asistente-virtual-main\.env\Lib\site-packages\werkzeug\serving.py", line 364, in run_wsgi
execute(self.server.app)
File "a:\asistente-virtual-main\.env\Lib\site-packages\werkzeug\serving.py", line 325, in execute
application_iter = app(environ, start_response)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "a:\asistente-virtual-main\.env\Lib\site-packages\flask\app.py", line 2213, in __call__
return self.wsgi_app(environ, start_response)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "a:\asistente-virtual-main\.env\Lib\site-packages\flask\app.py", line 2193, in wsgi_app
response = self.handle_exception(e)
^^^^^^^^^^^^^^^^^^^^^^^^
File "a:\asistente-virtual-main\.env\Lib\site-packages\flask\app.py", line 2190, in wsgi_app
response = self.full_dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "a:\asistente-virtual-main\.env\Lib\site-packages\flask\app.py", line 1486, in full_dispatch_request
rv = self.handle_user_exception(e)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "a:\asistente-virtual-main\.env\Lib\site-packages\flask\app.py", line 1484, in full_dispatch_request
rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^
File "a:\asistente-virtual-main\.env\Lib\site-packages\flask\app.py", line 1469, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "a:\asistente-virtual-main\.env\app.py", line 62, in audio
tts_file = TTS().process(final_response)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "a:\asistente-virtual-main\.env\tts.py", line 36, in process
with open("static/" + file_name, 'wb') as f:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'static/response.mp3'
from asistente-virtual.
127.0.0.1 - - [19/Jul/2023 23:58:30] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [19/Jul/2023 23:58:30] "GET /static/recorder.css HTTP/1.1" 304 -
127.0.0.1 - - [19/Jul/2023 23:58:30] "GET /static/recorder.js HTTP/1.1" 304 -
127.0.0.1 - - [19/Jul/2023 23:58:30] "GET /static/img/microphone.png HTTP/1.1" 304 -
127.0.0.1 - - [19/Jul/2023 23:58:37] "POST /audio HTTP/1.1" 500 -
Error on request:
Traceback (most recent call last):
File "a:\asistente-virtual-main.env\Lib\site-packages\werkzeug\serving.py", line 364, in run_wsgi
execute(self.server.app)
File "a:\asistente-virtual-main.env\Lib\site-packages\werkzeug\serving.py", line 325, in execute
application_iter = app(environ, start_response)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "a:\asistente-virtual-main.env\Lib\site-packages\flask\app.py", line 2213, in call
return self.wsgi_app(environ, start_response)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "a:\asistente-virtual-main.env\Lib\site-packages\flask\app.py", line 2193, in wsgi_app
response = self.handle_exception(e)
^^^^^^^^^^^^^^^^^^^^^^^^
File "a:\asistente-virtual-main.env\Lib\site-packages\flask\app.py", line 2190, in wsgi_app
response = self.full_dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "a:\asistente-virtual-main.env\Lib\site-packages\flask\app.py", line 1486, in full_dispatch_request
rv = self.handle_user_exception(e)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "a:\asistente-virtual-main.env\Lib\site-packages\flask\app.py", line 1484, in full_dispatch_request
rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^
File "a:\asistente-virtual-main.env\Lib\site-packages\flask\app.py", line 1469, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "a:\asistente-virtual-main.env\app.py", line 62, in audio
tts_file = TTS().process(final_response)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "a:\asistente-virtual-main.env\tts.py", line 36, in process
with open("static/" + file_name, 'wb') as f:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'static/response.mp3'
Revisa la función process en el archivo 'tts.py' en la línea 36 para asegurarte de que no haya errores en la generación del archivo 'response.mp3' y que la ruta del archivo se esté manejando correctamente. El error te dice: FileNotFoundError, lo que indica que no encuntra el archivo en la ruta: 'static/response.mp3' entonces no esta generando archivo, chequea los permisos del navegador en ese directorio.
from asistente-virtual.
Amigo resulta que al momento generar una respuesta, el audio response.mp3 me muestra lo siguiente:
y no lo que grabe en la pag.
from asistente-virtual.
Related Issues (9)
- tengo el problema :5000/audio:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR) recorder.js:67 Oops: Ocurrió un error SyntaxError: Unexpected token '<', "<!doctype "... is not valid JSON HOT 2
- Otros modelos de lenguaje
- No se si me tocaria comprar la suscripcion al api de chatGPT HOT 3
- Problema cuando instalo los requirements HOT 2
- alguien sabe de que va este error?
- Hola Ringatech, no estoy seguro de como... HOT 2
- tengo este problema HOT 2
- Algunos problemas solucionados
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asistente-virtual.