sahilkhoslaa / AudioToSignLanguageConverter

A web based application which accepts Audio/ Voice as input and converts it to corresponding Sign Language for Deaf people.
87 stars 45 forks source link

needs-reply: Animation Response Not Working #5

Open Ragul184 opened 3 years ago

Ragul184 commented 3 years ago

We have cloned the project and run it in local host. We ran index.html for front end in one server and ran flask server for backend. The code was working fine and what we spoke is perfectly recognized and the output was shown. But the animation wont give any response. When opened the console log, it is giving an 405 Error like this:

image

allcsa.js:3104 Browser Environment: OS=win Browser=chrome Java=false player.js:2 file opened allcsa.js:49338 CWASA loading configuration allcsa.js:49295 CWASA configuration starts: cwaclientcfg.json allcsa.js:8061 Config: Installation base "http://vhg.cmp.uea.ac.uk/tech/jas/vhg2017/" used for jasBase allcsa.js:3762 fetchURI fetching: http://vhg.cmp.uea.ac.uk/tech/jas/vhg2017/cwa/cwacfg.json Type=POST allcsa.js:49300 CWASA initialisation starts allcsa.js:48956 Starting AvatarGUI 0 ... allcsa.js:49228 No element for bttnPlaySiGMLText av0 allcsa.js:49228 No element for bttnSuspend av0 allcsa.js:49228 No element for bttnResume av0 allcsa.js:49228 No element for bttnPrevF av0 allcsa.js:49228 No element for bttnNextF av0 allcsa.js:49228 No element for txtFPS av0 allcsa.js:49228 No element for txtaSiGMLText av0 allcsa.js:48338 Starting SigningAvatar 0 ... allcsa.js:48356 Getting WebGL context allcsa.js:48526 -------- WebGL Implementation Data -------- allcsa.js:48527 GL Version: WebGL 1.0 (OpenGL ES 2.0 Chromium); GLSL Version: WebGL GLSL ES 1.0 (OpenGL ES GLSL ES 1.0 Chromium) allcsa.js:48528 Vendor: WebKit; Renderer: WebKit WebGL allcsa.js:48529 MAX_VERTEX_ATTRIBS: 16; MAX_VERTEX_UNIFORM_VECTORS: 4096 allcsa.js:48530 --------------------------------------------- allcsa.js:48367 Switch Avatar to marc allcsa.js:3214 Server given for Animgen processing allcsa.js:49334 CWASA initialisation ends allcsa.js:9663 AsynchAvJARScan() stated url=http://vhg.cmp.uea.ac.uk/tech/jas/vhg2017/avatars/marc.jar at 2021-01-27T14:20:50.058Z allcsa.js:9639 AsynchAvJARScan() ended url=http://vhg.cmp.uea.ac.uk/tech/jas/vhg2017/avatars/marc.jar entries=9 at 2021-01-27T14:20:50.073Z allcsa.js:9673 Got DataView for marc: len=1406217 chk=36130 at 2021-01-27T14:20:50.346Z allcsa.js:48631 Start Binary character load for marc ... allcsa.js:12240 Mesh: DO_TRX_BONE_UNIFORMS: true, TEST_CPU_TRX_TO_MAT: false, DO_ARM_TWISTS: true, SUPPRESS_A_T: false, USE_TEXTURES: true allcsa.js:12384 Asynchronous texture PNG URI via AvDef entry for marc.png ... allcsa.js:3762 fetchURI fetching: http://vhg.cmp.uea.ac.uk/tech/jas/vhg2017/cwa/shaders/qskin.vert Type=POST allcsa.js:3762 fetchURI fetching: http://vhg.cmp.uea.ac.uk/tech/jas/vhg2017/cwa/shaders/qskin.frag Type=POST allcsa.js:48646 Character loaded (Binary): marc. allcsa.js:48562 Camera: [0,0.23,3.24,5,18,30,-1,-1] allcsa.js:7775 fetchURI fetched: http://vhg.cmp.uea.ac.uk/tech/jas/vhg2017/cwa/shaders/qskin.frag Status=200 allcsa.js:8237 Shader loaded: shaders/qskin.vert allcsa.js:8237 Shader loaded: shaders/qskin.frag allcsa.js:8174 Shader program using: VrtxS=shaders/qskin.vert FragS=shaders/qskin.frag created allcsa.js:8317 Texture: loaded from source data URL handler.js:20 Avatar loaded successfully ! handler.js:71 Speech recognition started... handler.js:89 Speech: hello handler.js:51 [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/. HttpClient.get @ handler.js:51 getParsedText @ handler.js:57 recognition.onresult @ handler.js:93 handler.js:58 {"isl_text_string": "hello ", "pre_process_string": " hello"} player.js:87 tokenize into sentences : hello. player.js:107 Processed sting : ,hello.,EOL, handler.js:156 Got tokens handler.js:175 (2) ["hello.", "EOL"] handler.js:195 (2) ["hello", "EOL"] handler.js:200 sigmllength : 850 handler.js:235 maxi is : 876 handler.js:250 [FinalText] handler.js:251 1 handler.js:101 Speech recognition stopped... allcsa.js:48480 playSiGMLURL: http://127.0.0.1:5500/SignFiles/hello.sigml allcsa.js:3762 fetchURI fetching: http://127.0.0.1:5500/SignFiles/hello.sigml Type=POST allcsa.js:7801 POST http://127.0.0.1:5500/SignFiles/hello.sigml 405 (Method Not Allowed) Access.fetchURI @ allcsa.js:7801 Data.fetchText @ allcsa.js:7951 SigningAvatar.playSiGMLURL @ allcsa.js:48481 AvatarGUI.playSiGMLURL @ allcsa.js:49045 (anonymous) @ allcsa.js:49398 startPlayer @ animationPlayer.js:42 (anonymous) @ handler.js:270 setInterval (async) clickme @ handler.js:260 recognition.onresult @ handler.js:95 allcsa.js:7795 fetchURI: Failed for http://127.0.0.1:5500/SignFiles/hello.sigml Status=405 allcsa.js:48458 Uncaught TypeError: Cannot read property 'indexOf' of null at SigningAvatar.playSiGML (allcsa.js:48458) at allcsa.js:48311 at allcsa.js:7948 at XMLHttpRequest. (allcsa.js:7796) SigningAvatar.playSiGML @ allcsa.js:48458 (anonymous) @ allcsa.js:48311 (anonymous) @ allcsa.js:7948 (anonymous) @ allcsa.js:7796 XMLHttpRequest.send (async) Access.fetchURI @ allcsa.js:7801 Data.fetchText @ allcsa.js:7951 SigningAvatar.playSiGMLURL @ allcsa.js:48481 AvatarGUI.playSiGMLURL @ allcsa.js:49045 (anonymous) @ allcsa.js:49398 startPlayer @ animationPlayer.js:42 (anonymous) @ handler.js:270 setInterval (async) clickme @ handler.js:260 recognition.onresult @ handler.js:95

This was the console log for the file...👆

Can you consider it as urgent and can you help us to resolve this issue please?

LokeshSingrol commented 3 years ago

Untitled getting this error. checked with folder structure couldn't find anything wrong in it.

folder

riya-agg commented 3 years ago

I am having the same error.. Can anyone help?

shoebham commented 3 years ago

hey, was anybody able to solve this problem?

DeveshTulsian commented 3 years ago

Hi is there any solution for this?

Ragul184 commented 3 years ago

Hi is there any solution for this?

Hello @DeveshTulsian, Yeah while debugging the error I found out that the program was running successfully without any error. The problem was that the server couldn't load the .sigml file format, which is the animation file format. The server while using in local host throwing an error because it couldn't load it.

My assumption is that it may work properly when it was hosted globally. But if you can't host it there is another workaround for it.

The workaround may be visit another github project which is using .mp4 files for animation and not .sigml files. I am attaching the github link for this here. This one is using .mp4 files to render the animation in the browser. Kindly see it and if you are satisfied then reply me that it is ok!

shoebham commented 3 years ago

Hi is there any solution for this?

Hello @DeveshTulsian, Yeah while debugging the error I found out that the program was running successfully without any error. The problem was that the server couldn't load the .sigml file format, which is the animation file format. The server while using in local host throwing an error because it couldn't load it.

My assumption is that it may work properly when it was hosted globally. But if you can't host it there is another workaround for it.

The workaround may be visit another github project which is using .mp4 files for animation and not .sigml files. I am attaching the github link for this here. This one is using .mp4 files to render the animation in the browser. Kindly see it and if you are satisfied then reply me that it is ok!

Hey are u able to open the html file? ,in mine its showing in console Access to XMLHttpRequest at 'https://vhg.cmp.uea.ac.uk/tech/jas/vhg2017/avatars/marc.jar' (redirected from 'http://vhg.cmp.uea.ac.uk/tech/jas/vhg2017/avatars/marc.jar') from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

and I checked http://islfromtext.in/avatarfinal.php too it's also throwing the same error.

VSaipreetham commented 2 years ago

even i am unable to load the animation

Access to XMLHttpRequest at 'https://vhg.cmp.uea.ac.uk/tech/jas/vhg2017/avatars/marc.jar' (redirected from 'http://vhg.cmp.uea.ac.uk/tech/jas/vhg2017/avatars/marc.jar') from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

VSaipreetham commented 2 years ago

@shoebham were u able to solve the problem

shoebham commented 2 years ago

@VSaipreetham I was not able to resolve the CORS issue , so I downloaded all the files the project needs from here and changed the configuration to not request the files from the server, along with many changes as per my requirements you can have a look at my project I made something on similar lines.