How to retrieve Google Key for Cally Square blocks

If you want to configure Google TTS/ASR/Google Dialogflow in your Cally Square project, you need to generate Key on Google Cloud

  • Access to your Google Cloud account

  • Click on your project and select new project, assigning a name

image (11)-20240523-104035.jpg
  • Then enter in the created project

  • From the menu on the left, select APIs & Services section → Enabled APIs & services

image (12)-20240523-104603.jpg

 

  • Search from the bar, services you want to enable. For example you can search and activate:

    • Cloud Speech-to-text API (for ASR block)

    • Cloud Text-to-speech API (for TTS block)

We recommend to enable on the project all the API services that you consider useful for your needs

By selecting the API, you can then click to Enable

  • From the section below, you will see the list of all activated API services

  • Now you have to create API Keys, which apply to Google modules you have enabled on Google.
    To create them you need to access to APIs & ServicesCredentials

     

  • The system creates an API key, that can be without restrictions (so available for all services connected to the project) or if you want to enable it for specifc services, you can click on 3 dots menu → Edit API key

  • On section API restrictions, you can select Restrict key and select from the list the APIs you want to associate

  • Then you can see them in selected APIs:

  • Moreover you can change key name (for example to indicate to whom you gave the key or to specify the use of the key).
    And you can set an application restriction on IP addresses (e.g. your public Motion IP) to filter the IPs on which you want to use the key (also for security reasons)

  • From editing section or clicking on Show Key, you can copy your API key

  • And paste it in input API key of your Google Cloud Provider (used then to configure TTS/TSR blocks)