Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Clone the SIC repo

    1. git clone https://github.com/Social-AI-VU/social-interaction-cloud.git

  2. Switch to the nlu_component branch:

    1. git checkout nlu_component

  3. Create and activate a virtual environment:

    1. If you are using pure Python environment

      Code Block
      python -m venv venv_sic
      
      source venv_sic/bin/activate
    2. If you are using Anaconda environment

      Code Block
      conda create -n venv_sic python=3.12
      conda activate venv_sic
  4. Install SIC, nlu and whisper dependencies from local repo:

    Code Block
    cd social-interaction-cloud
    
    pip
    install .[whisper-speech-to-text,nlu]

    If you are using zsh, the default shell in macOS, add quotes to escape the brackets:

    pip install
     install ."[whisper-speech-to-text,nlu]"
  5. Run the NLU and Whisper components in separate terminals (Don’t forget to run a redis server. See the details here https://socialrobotics.atlassian.net/wiki/spaces/CBSR/pages/2180415493/Getting+started#Step-1%3A-starting-Redis-on-your-laptop ):

    Code Block
    # Start the Redis server
    redis-server conf/redis/redis.conf
    
    # Start the NLU and Whisper components separately
    run-whisper
    
    run-nlu
  6. Open a new terminal and activate the same virtual environment you created earlier

  7. Clone the sic_applications repo

    1. git clone https://github.com/Social-AI-VU/sic_applications.git

  8. Add (trained) nlu model and ontology to the configuration of sic_applications

    image-20241217-142723.pngImage Added

  9. Run the demo (Don’t forget to put your ontology file and an already trained model in sic_application_conf/nlu folder, the default name is ontology.)

    1. cd sic_applications/demos/desktop

    2. python demo_desktop_asr_nlu.py

...