Exercise - Add the Azure Cognitive Services speech translation component

Completed

In this module, you will add speech translation to your project, which will allow you to translate and transcribe your speech into three different languages.

  1. In the Hierarchy window, select the Lunarcom object, then in the Inspector window, use the Add Component button to add the Lunarcom Translation Recognizer (Script) component to the Lunarcom object and configure it as follows:

    • Change the Target Language to a language of your choosing, for example: German

    Screenshot of Add the Lunarcom Translation Recognizer (Script).

  2. If you now enter Game mode, you can test the speech translation by pressing the satellite button. Then, assuming your computer has a microphone, when you say something, your speech will be translated into the chosen language and transcribed on the terminal panel:

    Screenshot of Test the speech translation.

    Caution

    The application needs to connect to Azure, so make sure your computer/device is connected to the internet.