Below are the details of the API through which you can access different functionalities of the Talking Coach Unity3d application
1. Send Text to convert into speech
Call this function to send text and let the avatar speak the text. API: SendMessage('TalkingCoach', 'convertToSpeach', text)
-convertToSpeach: name of the unity function
-text: the text to be send for speaking.
example: SendMessage('TalkingCoach', 'convertToSpeach', 'Dank u wel, maneer')
2. Stop the speech
Call this function to stop the speech and the animation of the avatar. API: SendMessage('TalkingCoach', 'stopSpeach')
3. Change Background
This API calls to change the background of the TalkingCoach API: SendMessage('TalkingCoach', 'changeBackround')
4. Change Coach
This API calls to change the Coach of the TalkingCoach API: SendMessage('TalkingCoach', 'changeCoach')
5. Zoom in/out
Call this API to zoom in or zoom out the camera. Sending Negative value will zoom in the camera while sending positive value will zoom out. The value zero (0) will put the camera in its original position API: SendMessage('TalkingCoach', 'zoom', zoomValue(int))
6. Move Horizontal
Call this API to move the Avatar horizontally. Send nagative Integer value to move left, postive integer value to move right and 0 to put avatar in its origianl position API: SendMessage('TalkingCoach', 'moveAvatarHorizontal', moveValue)
7. Move Vertical
Call this API to move the Avatar Vertically. Send nagative Integer value to move Up, postive integer value to move down and 0 to put avatar in its origianl position API: SendMessage('TalkingCoach', 'moveAvatarVertical', moveValue)