...
recognizeResults
Each time a user speaks to a Digital Hero, your STT service transcribes their utterance from audio to text. The output from your STT service for each utterance is a series of intermediate recognizeResults
messages, as well as one final recognizeResults
message. These messages are sent from the Soul Machines Servers to your Orchestration Server via the WebSocket connection.
Below is an example of a “final”recognizeResults
message. The final messages can be identified by those messages where the “final” attribute is set to “true.” The transcript text from each “final”message must be sent to your NLP for a response, all other recognizeResults
messages received (e.g. where “final” = ”false”) can be ignored.
...
...
...
...
...
...
startSpeaking Request
To instruct your Digital Hero to speak a response from your NLP, you need to send a startSpeaking
command from your Orchestration Server via the WebSocket connection.
Below is an example of startSpeaking
command message.
...
...
...
...
...
...
...
...
...
...
...
...