Changes between Version 36 and Version 37 of en/ProgrammingRobotsCourse/PepperApi


Ignore:
Timestamp:
Mar 2, 2023, 10:38:37 AM (14 months ago)
Author:
Ales Horak
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • en/ProgrammingRobotsCourse/PepperApi

    v36 v37  
    2828
    2929=== speech input via Python
    30   * in `onLoad` add:
     30  * in `onLoad` add (leave the `self.tts` lines from previous example there):
    3131    {{{#!python
    3232        self.dialog = ALProxy('ALDialog')
     
    4040            self.logger.info('Running on virtual robot')
    4141            self.speech = None
     42}}}
     43  * add at the very beginning of the Python code
     44    {{{#!python
     45import random
    4246}}}
    4347  * process speech accordingly