# Google Speech-to-Text authentication

> To create a connection to the UiPath Google Speech-to-Text connector, you can choose between two authentication methods: API
Key or OAuth 2.0 Authorization code.

## Prerequisites

To create a connection to the UiPath Google Speech-to-Text connector, you can choose between two authentication methods: API
Key or OAuth 2.0 Authorization code.

Depending on the authentication type you select, you need one of the following credentials:

* API Key
* Client ID and Client secret

Refer to the [Google Cloud Authentication documentation](https://cloud.google.com/docs/authentication#auth-decision-tree) for more details on choosing the right authentication method for your use case.

## Retrieve your credentials

### API Key

1. Log in to your [Google Cloud Console](https://console.cloud.google.com/).
2. Create a new project or select an existing project which you want to use.

   ![docs image](https://dev-assets.cms.uipath.com/assets/images/integration-service/integration-service-docs-image-356093-e4c9bc95.webp)
3. On your project dashboard, navigate to Quick access and select **API & Services**.

   ![docs image](https://dev-assets.cms.uipath.com/assets/images/integration-service/integration-service-docs-image-356089-7b4885d3.webp)
4. Select **Enable APIs and Services**.

   ![docs image](https://dev-assets.cms.uipath.com/assets/images/integration-service/integration-service-docs-image-356085-11eb0fd7.webp)
5. Search for the API you want to enable. In this case, Speech-to-Text. Select it from the list, then selectk **Enable**.

   ![docs image](https://dev-assets.cms.uipath.com/assets/images/integration-service/integration-service-docs-image-356105-341b7683.webp)
6. An **API Enabled** confirmation message will be displayed on the API page.

   ![docs image](https://dev-assets.cms.uipath.com/assets/images/integration-service/integration-service-docs-image-356146-402cbbca.webp)

   Note:
   You might be required to add a Billing Account.
7. Go back to the **APIs & Services** screen and select **Credentials** from the left-side panel.

   ![docs image](https://dev-assets.cms.uipath.com/assets/images/integration-service/integration-service-docs-image-356113-0745ed78.webp)
8. Select **Create Credentials**. You can choose from several options: API key, OAuth client ID, or Service account.

   ![docs image](https://dev-assets.cms.uipath.com/assets/images/integration-service/integration-service-docs-image-356125-8c2d0bf8.webp)
9. Select API key. A key will be generated shortly.
10. Copy the API key and use it to create the connection in Integration Service.
    Note: We recommend you do not share the API key. API calls are billed.

### OAuth Client ID and Client secret

1. Follow steps 1-8 from the previous section.
2. At the **Create credentials** step, select **OAuth client ID**.
3. Configure the application:
   1. Set **Application type** to Web application.
   2. Give your application a name.

   ![docs image](https://dev-assets.cms.uipath.com/assets/images/integration-service/integration-service-docs-image-356129-1d2fba8d.webp)
4. Next, set the **Redirect URI** to: `https://{baseURL}/provisioning_/callback`, then select
   **Create**.
5. Once your application is created, copy the Client ID and Client secret or download the JSON file storing the credentials.

   ![docs image](https://dev-assets.cms.uipath.com/assets/images/integration-service/integration-service-docs-image-356137-9904698d.webp)

## Add the Google Speech-to-Text connection

1. Select Orchestrator from the product launcher.
2. Select a folder, and then navigate to the **Connections** tab.
3. Select **Add connection**.
4. To open the connection creation page, select the connector from the list. You can use the search bar to find the connector.
5. You can choose between two authentication methods: OAuth 2.0 Authorization code or API Key.

   ![docs image](https://dev-assets.cms.uipath.com/assets/images/integration-service/integration-service-docs-image-356142-3886f495.webp)
6. Enter the required credentials and select **Connect**.

   For any secret-type field, you can select the menu next to the field and choose **Use credential asset** to reference an Orchestrator credential asset linked to an external vault instead of entering the value directly. For more information, see [Use credential assets for connections](credential-store-connections.md).
