Jump to content
  • AzureTranslate - A.2 - Example: Translate & Announce Text

    AzureTranslate - A.2 - Example: Translate & Announce Text

    VBScript   Lua

     

    This example demonstrates the usage of the AzureTranslate and AzureTTS GSE actions.

     

    Please make sure that your SwyxWare matches the version requirements for both GSE actions.

     

    It translates any given text in any langauge to German and announces it. In case of an error (in the usage or execution of the AzureTranslate and/or AzureTTS actions) it simply plays a beep.

    The text to translate and announce is passed as GSE rule parameter into the GSE rule.

     

    image.png

     

    image.png

     

     

    To install it:
     

    1. Follow the instructions AzureTTS - 2 - Setup GSE Action  to also install the AzureTTS GSE action.
       
    2. Open the Call Routing Manager of your desired SwyxWare user.
       
    3. Click the "New Rule..." button.
       
    4. Select "Graphical Script Editor" and click Ok.
       
    5. Within the GSE open the File | Import... menu and click No.
       
    6. From the download package select the following file:

      For VBScript usage:
      VBScript based\rse\Translate and Announce Text.rse


      For Lua usage:

      Lua based\rse\Translate and Announce Text.rse

       

    7. You need to make some modifications in the AzureTranslate and AzureTTS blocks (e.g. your subscription keys for both services). They are explained in detail in the chapters AzureTranslate - 3.1 - Usage and  AzureTTS - 3.1 - Usage.

     

     


    Tom Wellige
     Share


     Share




×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and have taken note of our Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.