Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 1.99 KB

README.md

File metadata and controls

21 lines (14 loc) · 1.99 KB

Widget Examples

These example scenes show how to create a simple application by combining Widget functionality.

Usage

ExampleDialog

Open the ExampleDialog scene. In the ExampleDialog GameObject click on the DialogWidget GameObject. The dialog file to be uploaded is specified in the Inspector under "Auto Upload Dialog". Specify a unique name for the dialog instance under "Dialog Name". The upload will result in an error if a unique name is not provided. At runtime, the Widgets will automatically connect their inputs and outputs resulting in a simple dialog application using Speech to Text and Dialog.

Be sure a microphone is connected and enabled on your computer. Play the scene in the Unity editor and say "Hello" to Watson.

ExampleLanguageTranslation

Open the ExampleLanguageTranslation scene. At runtime, the Widgets will automatically connect their inputs and outputs resulting in a simple language translation application using Speech to Text, Language Translation and Text to Speech.

Be sure a microphone is connected and enabled on your computer. Play the scene in the Unity editor and speak to Watson. Alternatively, phrases can be typed into the top field for translation. The Language Translation service will auto detect language and translate the phrased to Spanish by default. Other languages are listed in the dropdowns above each field.