Loading dlg_pepper-infinite-craft-pkg/dlg_pepper-infinite-craft-pkg_czc.top +3 −2 Original line number Original line Diff line number Diff line topic: ~dlg_presentation_nlp() topic: ~dlg_presentation_nlp() language: czc language: czc u:(["hra kombinuj slova"]) u:([]) ^pCall(ALTabletService.showWebview("http://198.18.0.1/apps/pepper-infinite-craft-pkg/")) ^pCall(ALTabletService.showWebview("http://198.18.0.1/apps/pepper-infinite-craft-pkg/")) No newline at end of file $onStopped=1 No newline at end of file dlg_pepper-infinite-craft-pkg/dlg_pepper-infinite-craft-pkg_enu.top +3 −2 Original line number Original line Diff line number Diff line topic: ~dlg_presentation_nlp() topic: ~dlg_presentation_nlp() language: enu language: enu u:(["game combine words"]) u:([]) ^pCall(ALTabletService.showWebview("http://198.18.0.1/apps/pepper-infinite-craft-pkg/")) ^pCall(ALTabletService.showWebview("http://198.18.0.1/apps/pepper-infinite-craft-pkg/")) No newline at end of file $onStopped=1 No newline at end of file html/script.js +28 −27 Original line number Original line Diff line number Diff line Loading @@ -220,43 +220,44 @@ function robot_say(sentence) { function robot_init(voice_speed) { function robot_init(voice_speed) { RobotUtils.onService(function(ALTextToSpeech, ALSpeechRecognition, ALDialog) { RobotUtils.onService(function(ALTextToSpeech, ALSpeechRecognition, ALDialog) { ALDialog.stopDialog().then(function(){ ALTextToSpeech.getLanguage().then(function(language) { ALTextToSpeech.getLanguage().then(function(language) { if (language == "English") { if (language == "English") { LANG = "en"; LANG = "en"; } else if (language == "Czech") { } else if (language == "Czech") { LANG = "cs"; LANG = "cs"; } element_app_name.innerText = dialogs[LANG]["app-name"]; element_element_list_name.innerText = dialogs[LANG]["element-list-name"]; element_exit_button.innerText = dialogs[LANG]["quit"]; element_reset_button.innerText = dialogs[LANG]["reset"]; element_delete_button.innerText = dialogs[LANG]["delete"]; show_response_state(true); fetch(PREFIX + `api?method=get_state&lang=${encodeURIComponent(LANG)}`).then(function(response) { show_response_state(false); return response.json(); }).then(function(j) { if ("error" in j) { alert(j["error"]); } } element_app_name.innerText = dialogs[LANG]["app-name"]; for (var i = 0;i < j["result"]["words"].length;i = i + 1) { element_element_list_name.innerText = dialogs[LANG]["element-list-name"]; add_element(j["result"]["words"][i]) element_exit_button.innerText = dialogs[LANG]["quit"]; } element_reset_button.innerText = dialogs[LANG]["reset"]; ALTextToSpeech.setParameter("speed", voice_speed).then(function(){ element_delete_button.innerText = dialogs[LANG]["delete"]; ALSpeechRecognition.subscribe(AL_SPEACH_RECOGNITION_SUB_NAME).then(function(){ show_response_state(true); ALDialog.stopDialog().then(function(){ fetch(PREFIX + `api?method=get_state&lang=${encodeURIComponent(LANG)}`).then(function(response) { show_response_state(false); return response.json(); }).then(function(j) { if ("error" in j) { alert(j["error"]); } for (var i = 0;i < j["result"]["words"].length;i = i + 1) { add_element(j["result"]["words"][i]) } ALTextToSpeech.setParameter("speed", voice_speed).then(function(){ ALSpeechRecognition.subscribe(AL_SPEACH_RECOGNITION_SUB_NAME).then(function(){ ALSpeechRecognition.pause(true).then(function(){ ALSpeechRecognition.pause(true).then(function(){ ALSpeechRecognition.setVocabulary(discovered_elements, true).then(function(){ ALSpeechRecognition.setVocabulary(discovered_elements, true).then(function(){ ALSpeechRecognition.pause(false).then(function(){ ALSpeechRecognition.pause(false).then(function(){ ALSpeechRecognition.pause(false).then(function(){ ALSpeechRecognition.pause(false).then(function(){ robot_say(dialogs[LANG]["begin"]); ALTextToSpeech.say(dialogs[LANG]["begin"]); robot_animation_run("animations/Stand/Gestures/YouKnowWhat_6"); robot_animation_run("animations/Stand/Gestures/YouKnowWhat_6"); combine_words_memory_subscription = RobotUtils.subscribeToALMemoryEvent("WordRecognized", onWordRecognized); combine_words_memory_subscription = RobotUtils.subscribeToALMemoryEvent("WordRecognized", onWordRecognized); }, alert); }, alert); }, alert); }, alert); }, alert); }, alert); }, alert) }, alert); }, alert); }, alert) }, alert); }, alert); }, alert); }, alert); }, alert); }, alert); Loading manifest.xml +1 −1 Original line number Original line Diff line number Diff line <package uuid="pepper-infinite-craft-pkg" version="0.7.97"> <package uuid="pepper-infinite-craft-pkg" version="0.7.104"> <names> <names> <name lang="en_US">pepper-infinite-craft-pkg</name> <name lang="en_US">pepper-infinite-craft-pkg</name> <name lang="cs_CZ">pepper-infinite-craft-pkg</name> <name lang="cs_CZ">pepper-infinite-craft-pkg</name> Loading Loading
dlg_pepper-infinite-craft-pkg/dlg_pepper-infinite-craft-pkg_czc.top +3 −2 Original line number Original line Diff line number Diff line topic: ~dlg_presentation_nlp() topic: ~dlg_presentation_nlp() language: czc language: czc u:(["hra kombinuj slova"]) u:([]) ^pCall(ALTabletService.showWebview("http://198.18.0.1/apps/pepper-infinite-craft-pkg/")) ^pCall(ALTabletService.showWebview("http://198.18.0.1/apps/pepper-infinite-craft-pkg/")) No newline at end of file $onStopped=1 No newline at end of file
dlg_pepper-infinite-craft-pkg/dlg_pepper-infinite-craft-pkg_enu.top +3 −2 Original line number Original line Diff line number Diff line topic: ~dlg_presentation_nlp() topic: ~dlg_presentation_nlp() language: enu language: enu u:(["game combine words"]) u:([]) ^pCall(ALTabletService.showWebview("http://198.18.0.1/apps/pepper-infinite-craft-pkg/")) ^pCall(ALTabletService.showWebview("http://198.18.0.1/apps/pepper-infinite-craft-pkg/")) No newline at end of file $onStopped=1 No newline at end of file
html/script.js +28 −27 Original line number Original line Diff line number Diff line Loading @@ -220,43 +220,44 @@ function robot_say(sentence) { function robot_init(voice_speed) { function robot_init(voice_speed) { RobotUtils.onService(function(ALTextToSpeech, ALSpeechRecognition, ALDialog) { RobotUtils.onService(function(ALTextToSpeech, ALSpeechRecognition, ALDialog) { ALDialog.stopDialog().then(function(){ ALTextToSpeech.getLanguage().then(function(language) { ALTextToSpeech.getLanguage().then(function(language) { if (language == "English") { if (language == "English") { LANG = "en"; LANG = "en"; } else if (language == "Czech") { } else if (language == "Czech") { LANG = "cs"; LANG = "cs"; } element_app_name.innerText = dialogs[LANG]["app-name"]; element_element_list_name.innerText = dialogs[LANG]["element-list-name"]; element_exit_button.innerText = dialogs[LANG]["quit"]; element_reset_button.innerText = dialogs[LANG]["reset"]; element_delete_button.innerText = dialogs[LANG]["delete"]; show_response_state(true); fetch(PREFIX + `api?method=get_state&lang=${encodeURIComponent(LANG)}`).then(function(response) { show_response_state(false); return response.json(); }).then(function(j) { if ("error" in j) { alert(j["error"]); } } element_app_name.innerText = dialogs[LANG]["app-name"]; for (var i = 0;i < j["result"]["words"].length;i = i + 1) { element_element_list_name.innerText = dialogs[LANG]["element-list-name"]; add_element(j["result"]["words"][i]) element_exit_button.innerText = dialogs[LANG]["quit"]; } element_reset_button.innerText = dialogs[LANG]["reset"]; ALTextToSpeech.setParameter("speed", voice_speed).then(function(){ element_delete_button.innerText = dialogs[LANG]["delete"]; ALSpeechRecognition.subscribe(AL_SPEACH_RECOGNITION_SUB_NAME).then(function(){ show_response_state(true); ALDialog.stopDialog().then(function(){ fetch(PREFIX + `api?method=get_state&lang=${encodeURIComponent(LANG)}`).then(function(response) { show_response_state(false); return response.json(); }).then(function(j) { if ("error" in j) { alert(j["error"]); } for (var i = 0;i < j["result"]["words"].length;i = i + 1) { add_element(j["result"]["words"][i]) } ALTextToSpeech.setParameter("speed", voice_speed).then(function(){ ALSpeechRecognition.subscribe(AL_SPEACH_RECOGNITION_SUB_NAME).then(function(){ ALSpeechRecognition.pause(true).then(function(){ ALSpeechRecognition.pause(true).then(function(){ ALSpeechRecognition.setVocabulary(discovered_elements, true).then(function(){ ALSpeechRecognition.setVocabulary(discovered_elements, true).then(function(){ ALSpeechRecognition.pause(false).then(function(){ ALSpeechRecognition.pause(false).then(function(){ ALSpeechRecognition.pause(false).then(function(){ ALSpeechRecognition.pause(false).then(function(){ robot_say(dialogs[LANG]["begin"]); ALTextToSpeech.say(dialogs[LANG]["begin"]); robot_animation_run("animations/Stand/Gestures/YouKnowWhat_6"); robot_animation_run("animations/Stand/Gestures/YouKnowWhat_6"); combine_words_memory_subscription = RobotUtils.subscribeToALMemoryEvent("WordRecognized", onWordRecognized); combine_words_memory_subscription = RobotUtils.subscribeToALMemoryEvent("WordRecognized", onWordRecognized); }, alert); }, alert); }, alert); }, alert); }, alert); }, alert); }, alert) }, alert); }, alert); }, alert) }, alert); }, alert); }, alert); }, alert); }, alert); }, alert); Loading
manifest.xml +1 −1 Original line number Original line Diff line number Diff line <package uuid="pepper-infinite-craft-pkg" version="0.7.97"> <package uuid="pepper-infinite-craft-pkg" version="0.7.104"> <names> <names> <name lang="en_US">pepper-infinite-craft-pkg</name> <name lang="en_US">pepper-infinite-craft-pkg</name> <name lang="cs_CZ">pepper-infinite-craft-pkg</name> <name lang="cs_CZ">pepper-infinite-craft-pkg</name> Loading