- Bing Speech web socket demo (requires Key)
- Bing Speech and LUIS app for using natural language to target and control Unity GameObject properties.
- Bot Framework Direct Line web socket demo (requires Direct Line key)
- Echo message demo
- Transform JSON demo
This project contains git submodule dependencies so use:
git clone --recursive https://github.com/Unity3dAzure/UnityWebSocketDemo.git
Or if you've already done a git clone then use:
git submodule update --init --recursive
-
Create Bing Speech service in Azure and get a key for the Unity BingSpeechService script.
-
Select 'Import new app' and import the sample UnityLUISApp.json file.
-
Under 'Publish > Resources and Keys' section select 'Add Key'
-
Copy the key's Endpoint ending in 'q=' into the Unity LUISApp script.
-
Create an Azure Bot Service.
-
In the Azure Bot Service select Channels and add a Direct Line channel.
-
Copy the Direct Line secret key into the Unity BotService script.
- Clone the Web Socket server repo and run the echo server.
node ./server-echo.js
- Open Unity project's Echo Demo scene in Unity and hit play!
- Clone the Web Socket server repo and run the json server.
node ./server-json.js
- Open Unity project's My Transform Demo scene in Unity and hit play!
Refer to the download instructions above to install these submodules.
Questions or tweet #Azure #GameDev @deadlyfingers