...
Code Block | ||
---|---|---|
| ||
pepper = Pepper(device_idip="pepper1192.168.0.23") dialogflow = self.start_service(DialogflowService, device_id='local'Dialogflow(ip="localhost") dialogflow.connect(pepper.microphone) dialogflow.register_callback(print_transcript) while True: intent = dialogflow.request(ListenForIntentRequestListenForIntent()) if intent.name == "hello": wave_req = PepperMotionRequestPepperMotion("wave") pepper.motion.request(wave_req) |
...