Error in Pizza demo Javascript program (Freeswitch)


I installed FreeSwitch and enabled PocketSphinx and Javascript modules successfully. When I called an extension to execute the default Pizza demo program (Java script), I am getting the below error:

EXECUTE [depth=0] sofia/chandramouli/ javascript(ps_pizza.js)
2024-03-09 18:32:09.423106 99.27% [ERR] undefined:188 Exception: SyntaxError: Invalid or unexpected token (near: " console_log(“debug”, "----Hit score " + result.interpretation.@confidence + “/” + ")
2024-03-09 18:32:09.423106 99.27% [NOTICE] switch_core_state_machine.c:382 sofia/chandramouli/ has executed the last dialplan instruction, hanging up.

Based on the error line number in console log, I noticed that It is showing the error in scripts/js_modules/ file at the below line:
console_log(“debug”, "----Hit score " + result.interpretation.@confidence + “/” +
grammar_object.min_score + “/” + grammar_object.confirm_score + “\n”);

I haven’t changed anything in the source code. Is there any issue in the above source code? Any help would be appreciated. Thank you.

Best Regards,


I want to implement speech to text i am trying by pocketsphinx can you help i have download pocketsphinx but not able to install mod_v8 it is showing this err can you give me libv8-6.1-dev or tell me other way to implement or how to implement in lua pls help me.
checking for v8-6.1_static >= 6.1.298… checking for v8fs_static >= 6.1.298… checking for v8 >= 6.1.298… configure: error: You need to either install libv8-6.1-dev (>= 6.1.298), libv8fs-dev (>= 6.1.298) or disable mod_v8 in modules.con

At the very least please tell us which version of which Linux distribution you
are trying to install this on.


Thank You for the reply my version is FreeSWITCH Version 1.10.3-release~64bit (-release 64bit), Ubuntu 20.04.6 LTS and i have to implement in this version of freeswitch and ubuntu.