The basic Orchestration Code template provided by Soul Machines has limited functionality. It can:
Listen for WebSocket connection requests.
Open new WebSocket Connection to the Soul Machine Servers.
Receive and write to console all JSON messages from Soul Machines.
To complete the integration with your chosen NLP platform, as a minimum, you need to make the following enhancements to this codebase:
Process each message received from Soul Machines
Extract Text from Final
recognizeResults
messagesSend a request to NLP API
Extract text from NLP response
Send
startSpeaking
command to Soul Machines