This tutorial shows you how to run a simple pipeline (ASR + NLU) where Whisper transcribes your speech and feeds it into the NLU component to run inference
Steps:
Since the NLU component is not yet available on PyPI, for now, we will need to clone the repository and install it locally.
Clone the SIC repo
git clone git@github.com:Social-AI-VU/social-interaction-cloud.git
Switch to the
nlu_component
branch:git checkout nlu_component
Create and activate a virtual environment:
python -m venv venv_sic
source venv_sic/bin/activate
Install SIC, nlu and whisper dependencies from local repo:
cd social-interaction-cloud
pip install .[whisper-speech-to-text,nlu]
Run the NLU and Whisper components in separate terminals:
run-whisper
run-nlu
Open a new terminal and activate the same virtual environment you created earlier
Clone the
sic_applications
repogit clone https://github.com/Social-AI-VU/sic_applications.git
Run the demo (Don’t forget to put your ontology file and an already trained model in conf/nlu folder)
cd sic_applications/demos/desktop
python demo_desktop_asr_nlu.py