Overview

mic.py is a python3 server that processes speech recieved from the speech app, matches it to a valid speech act, and then send the verified speech to game/game_flow/Robot/command_server.py in game_flow.

Uses difflib to run the closest match from the speech recieved from the app and a list of accepted speech acts located in communication/speech/resources/speechActs.txt

The code for this project is in: ~/sawyer_ws/src/communication/speech/scripts

Controls

  • Processes human speech to send verified speech to algorithm

Communicates with:

  • Rospublisher 'chat' located in communication/speech/speech_app/speech/subscribers.dart

Topics Publishes to:

Verified Speech

  • name: 'verified_speech',
  • type: '/common_msgs/ChatMessage',

Topics Subscribed To:

Chat

  • name: 'chat',
  • type: '/common_msgs/ChatMessage',

Features

  • name: 'features',
  • type: '/common_msgs/Features',

To run:

run command

  • roslaunch speech mic.launch

or from sawyer_ws

  • cd src/communication/speech/scripts

  • python3 mic.py