Changes between Version 25 and Version 26 of en/ProgrammingRobotsCourse/PepperApi


Ignore:
Timestamp:
Mar 30, 2020, 3:02:15 PM (4 years ago)
Author:
Ales Horak
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • en/ProgrammingRobotsCourse/PepperApi

    v25 v26  
    148148
    149149==== 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/`.
     150See 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
     152The 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/`.
    153153
    154154HTML app can subscribe to various robot API events:
    155155
    156 {{{
     156{{{#!javascript
    157157RobotUtils.subscribeToALMemoryEvent("SpeechDetected", onSpeechDetected);
    158158RobotUtils.subscribeToALMemoryEvent("ALSpeechRecognition/Status", onSpeechStatus);
     
    162162And update the webpage when events are triggered, eg. display recognized word:
    163163
    164 {{{
     164{{{#!javascript
    165165function onWordRecognized(value)
    166166{
     
    170170
    171171==== 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
     173See 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
     175See `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
     177Timetable search is running as a service, see `scripts/kordisbot_service.py`. With a user's question, the dialog just calls specific service function, eg.
    177178
    178179{{{
     
    181182}}}
    182183
    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.cz with the connection parameters:
     184The service functions `say_answer1` and `say_answer2` are directly generating robot answer sentence.
     185
     186Connection map is displayed on the tablet, using usual map from `mapy.idos.cz` with the connection parameters:
    186187
    187188{{{