diff --git a/ugj_blocks.js b/ugj_blocks.js index ac0cb0b..f36e7dd 100644 --- a/ugj_blocks.js +++ b/ugj_blocks.js @@ -2837,7 +2837,7 @@ Blockly.Blocks['aquestalk_pi'] = { }; Blockly.JavaScript['aquestalk_pi'] = function (block) { var value_talk = Blockly.JavaScript.valueToCode(block, 'talk', Blockly.JavaScript.ORDER_ATOMIC); - var code = `"${elutil.path.join(elutil.executable_path, 'aquestalkpi/AquesTalkPi') + ' -g 50 ' + value_talk + ' | aplay'}", { shell: true }`; + var code = `'${elutil.path.join(elutil.executable_path, 'aquestalkpi/AquesTalkPi')} -g 50 ' + ${value_talk} + ' | aplay', { shell: true }`; return [code, Blockly.JavaScript.ORDER_NONE]; };