Changes between Version 25 and Version 26 of en/ProgrammingRobotsCourse/PepperApi
- Timestamp:
- Mar 30, 2020, 3:02:15 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
en/ProgrammingRobotsCourse/PepperApi
v25 v26 148 148 149 149 ==== Display subtitles for speech recognition/generation 150 https://nlp.fi.muni.cz/projekty/pepper/videos/titulky.mp4 151 152 Subtitle service is running as HTML app on the tablet and receiving updates via Javascript messaging API. See `dialog_subtitles`app, specifically `dialog_subtitles/html/js/`.150 See video [https://nlp.fi.muni.cz/trac/pepper/wiki/NlpPepperShows#subtitlesandlanguageswitchingbetweenCzechandEnglishtitulkyap%C5%99ep%C3%ADn%C3%A1n%C3%ADmezi%C4%8De%C5%A1tinouaangli%C4%8Dtinou Subtitles and language switching between Czech and English / titulky a přepínání mezi češtinou a angličtinou]. 151 152 The subtitle service is running as an HTML app on the Pepper's tablet, receiving updates via Javascript messaging API. See https://gitlab.fi.muni.cz/nlp/dialog_subtitles/ app, specifically `dialog_subtitles/html/js/`. 153 153 154 154 HTML app can subscribe to various robot API events: 155 155 156 {{{ 156 {{{#!javascript 157 157 RobotUtils.subscribeToALMemoryEvent("SpeechDetected", onSpeechDetected); 158 158 RobotUtils.subscribeToALMemoryEvent("ALSpeechRecognition/Status", onSpeechStatus); … … 162 162 And update the webpage when events are triggered, eg. display recognized word: 163 163 164 {{{ 164 {{{#!javascript 165 165 function onWordRecognized(value) 166 166 { … … 170 170 171 171 ==== Access timetable API 172 https://nlp.fi.muni.cz/projekty/pepper/videos/kordisbot.mp4 173 174 See `kordisbot` app for detailed example. To enable recognition of all stops and street names, special concepts were defined (`Ulice-concept.top` and `Zastavky-concept.top`) with the list of accepted names. 175 176 Timetable search is running as a service, see `scripts/kordisbot_service.py`. On user question, dialog just calls specific function, eg. 172 173 See video [https://nlp.fi.muni.cz/trac/pepper/wiki/NlpPepperShows#PublictransportinCzechj%C3%ADzdn%C3%AD%C5%99%C3%A1dv%C4%8De%C5%A1tin%C4%9B Public transport in Czech / jízdní řád v češtině]. 174 175 See `kordisbot` app (in the directory `/nlp/projekty/pepper/myapps`) for detailed example. To enable recognition of all stops and street names, special concepts were defined (`Ulice-concept.top` and `Zastavky-concept.top`) with the list of accepted names. 176 177 Timetable search is running as a service, see `scripts/kordisbot_service.py`. With a user's question, the dialog just calls specific service function, eg. 177 178 178 179 {{{ … … 181 182 }}} 182 183 183 Service functions `say_answer1` and `say_answer2` are directly generating robot answer sentence.184 185 Connection map is displayed on the tablet, using usual map from idos.czwith the connection parameters:184 The service functions `say_answer1` and `say_answer2` are directly generating robot answer sentence. 185 186 Connection map is displayed on the tablet, using usual map from `mapy.idos.cz` with the connection parameters: 186 187 187 188 {{{