Once you have the SIC infrastructure up and running, you do not need to relaunch SIC every time. You can thus skip the first part once that has been done. For each change that you make to your MARBEL agent, of course, you need to restart it to see the effects of those changes.

There are three different types of runs you can do for this project, MARBEL with Dialogflow to test your dialogue manager (MARBEL Agent), Intent and Slot Classifier with ASR(WHISPER), and all of them together without Dialogflow.

To stop any running servers in a terminal press ctrl C.


Step 1 for all Runs: Launch the Redis Server

  1. Open the project in PyCharm (or another IDE or teriminal).

  2. Go to your cloned repository.

  3. Navigate to the sic_applications directory:

    cd sic_applications
  4. Start the Redis server using the provided configuration file:

    redis-server conf/redis/redis.conf

For Windows go into sic_applicaitons/conf/ and you can run redis-server.exe

If you encounter this error Could not create server TCP listening socket *:6379: bind: Address already in use read through the following collapsable section.

Troubleshoot (Could not create server TCP listening socket *:6379: bind: Address already in use)

For Ubuntu/Debian users, if you encounter the error Could not create server TCP listening socket *:6379: bind: Address already in use., please use the following command to stop the Redis server first

sudo systemctl stop redis-server.service

And, if you wish to prevent Redis server from starting automatically at boot, you can run

sudo systemctl disable redis-server.service

If you still can’t kill Redis server, you can use ps aux | grep redis-server command to find the PID (process ID) of the Redis server. And, terminate the process using kill PID

 

For macOS users, the process should be similar; just find the PID of the Redis server and kill the process:

lsof -i tcp:6379

And find the *PID in the terminal response, kill the pid shown:

kill -9 *Insert PID here

Run your MARBEL Agent with Web Pages and Dialogflow

Follow these steps to set up and run your MARBEL agent along with the SIC infrastructure.

Step 2: Run Your MARBEL Agent with Web Pages and Dialogflow

Part 1: Launch the SIC Infrastructure

  1. Open a New Terminal for Each Component:

  2. Run the Following Commands (in separate terminals):

  1. Open the Web Interface:

  2. Inspect Terminals (Optional):


Part 2: In Eclipse Launch the MARBEL Agent

  1. Open the .mas2g File:

  2. Restarting the MARBEL Agent:


Run your Intent and Slot Classifier with WHISPER

YOU CANNOT RUN THIS PART UNTIL YOU ARE DOWN WITH YOUR ENTIRE INTENT AND SLOT CLASSIFIER.

Follow these steps to launch your Intent and Slot Classifier with WHISPER and run the demonstration.


Step 2: Start WHISPER and NLU Services

  1. In a new terminal WHISPER, and the NLU classifier in the background:

    run-whisper & run-nlu &

Step 3: Run the Demo

  1. Execute the demo script in the sic_applications/demos/desktop directory either in Terminal or with Pycharm:

    python sic_applications/demo_asr_nlu.py

Important Notes

You’re now ready to test the Intent and Slot Classifier with WHISPER! 😊

Run the entire pipeline altogether

We will complete this shortly…