start_speech_chat.launch

The start_speech_chat.launch launch file will start the AIML server, AIML TTS node, and speech recognition node:

    <launch> 
      <param name="aiml_path" 
    value="/home/robot/ros_robotics_projects_ws/src/ros_aiml/data" /> 
      <node name="aiml_server" pkg="ros_aiml" type="aiml_server.py" 
    output="screen"> 
      </node> 
      <include file="$(find sound_play)/soundplay_node.launch">
      </include> 
      <node name="aiml_tts" pkg="ros_aiml" type="aiml_tts_client.py" 
    output="screen"> 
      </node> 
      <node name="aiml_speech_recog" pkg="ros_aiml" 
    type="aiml_speech_recog_client.py" output="screen"> 
      </node> 
    </launch> 

After creating the launch file, change its permission using the following command:

    $ sudo chmod +x *.launch

Use the following command to start interacting ...

Get ROS Programming: Building Powerful Robots now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.