> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackone.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Text-to-Speech OAuth 2.0 (Multiple Companies) connector profile – StackOne setup guide

> Set up a connector profile using OAuth 2.0 (Multiple Companies) for Google Text-to-Speech in StackOne to allow users to link their accounts.

> [!WARNING]
>
> The steps in this guide require Admin or Owner privileges within Google Cloud, and administrator access to a billing account linked to the project.

Select Actions to adjust the guideSome actions may require additional configuration in the provider to be accessible. Choose the actions you need and the guide will be updated.

Select all
Clear

ActionScope(s)

Loading actions...No actions match your search.

Dynamic Guide URL

Copy URL

Scopes Selected

<pre role="textbox" aria-readonly="true" tabIndex="0" />

Separator

Copy scopes

## Create a Google Cloud OAuth client

Set up a Google Cloud project with the Cloud Text-to-Speech API enabled and an OAuth client for StackOne.

**1. Create or select a project**

Sign in to your [Google Cloud Console](https://console.cloud.google.com/), then open the project picker at the top of the page.

<ul>
  <li>**New project:** Click **New project**, fill in **Project name**, **Organization** and **Parent resource**, then click **Create**. Select the new project in the project picker.</li>
  <li>**Existing project:** Select it in the project picker.</li>
</ul>

![Google Cloud Console Select a resource dialog](https://mintcdn.com/stackone-60/egLCtGzkQpmna7BV/connectors/googletexttospeech/images/oauth2-setup-select-project.png?fit=max\&auto=format\&n=egLCtGzkQpmna7BV\&q=85\&s=0ef269d33152df40aef97aebbc17f58a)

**2. Enable the Cloud Text-to-Speech API**

Open **APIs & Services** > **Library**.

<ul>
  <li>Search for `Cloud Text-to-Speech API`.</li>
  <li>Click **Cloud Text-to-Speech API**.</li>
  <li>Click **Enable**. If it shows **Manage**, it's already enabled.</li>
  <li>If the **Billing required** dialog opens, click **Enable billing** and link a billing account to the project.</li>
  <li>Return to the API page and click **Enable**.</li>
</ul>

![Google Cloud Console Enable Cloud Text-to-Speech API](https://mintcdn.com/stackone-60/egLCtGzkQpmna7BV/connectors/googletexttospeech/images/oauth2-setup-enable-api.png?fit=max\&auto=format\&n=egLCtGzkQpmna7BV\&q=85\&s=9b7f90877373ca6d1d40342e600047a8)

**3. Enter the app information**

Open **APIs & Services** > **OAuth consent screen** to open the Google Auth Platform dashboard.

<ul>
  <li>Click **Get started**. If the **OAuth Overview** page opens instead, open **Branding** from the sidebar.</li>
  <li>**App name**: A name that identifies this integration</li>
  <li>**User support email**: Email address for user inquiries</li>
  <li>Click **Next**.</li>
</ul>

![Enter branding information](https://mintcdn.com/stackone-60/egLCtGzkQpmna7BV/connectors/googletexttospeech/images/oauth2-setup-branding.png?fit=max\&auto=format\&n=egLCtGzkQpmna7BV\&q=85\&s=c01482de86f5897a34b99c4604c3ecd5)

**4. Select the audience**

Choose the user type for your application.

<ul>
  <li>**Internal**: Only users within your Google Workspace organization can authorize (no app verification required)</li>
  <li>**External**: Any Google account can authorize (requires app verification for production use)</li>
  <li>Click **Next**.</li>
</ul>

![Select audience](https://mintcdn.com/stackone-60/egLCtGzkQpmna7BV/connectors/googletexttospeech/images/oauth2-setup-audience.png?fit=max\&auto=format\&n=egLCtGzkQpmna7BV\&q=85\&s=2567a5b6b8f4f716dc406c62d505b361)

**5. Enter contact information**

Google sends notices about changes to your project to these addresses. If you opened **Branding**, the field is under **Developer contact information** on the same page.

<ul>
  <li>**Email addresses**: Email addresses for project notices</li>
  <li>Click **Next**.</li>
</ul>

**6. Accept the user data policy**

Review your settings.

<ul>
  <li>Agree to the Google API Services User Data Policy.</li>
  <li>Click **Create**.</li>
</ul>

**7. Add the scopes**

Enables actions: Cancel Operation, Delete Operation, Get Operation, List Operations, List Voices, Synthesize Long Audio, Synthesize Speech

In Google Auth Platform, open **Data Access**.

<ul>
  <li>Click **Add or Remove Scopes**.</li>
  <li>Under **Manually add scopes** in the **Update selected scopes** side panel, paste each scope listed.</li>
  <li>Click **Add to table**.</li>
  <li>Click **Update**.</li>
  <li>On the **Data Access** page, click **Save**.</li>
</ul>

![Manually add scopes](https://mintcdn.com/stackone-60/egLCtGzkQpmna7BV/connectors/googletexttospeech/images/oauth2-setup-add-scope.png?fit=max\&auto=format\&n=egLCtGzkQpmna7BV\&q=85\&s=201dccc9743789ee4c48d2b4db432789)

<ul>
  <li>
    [https://www.googleapis.com/auth/cloud-platform](https://www.googleapis.com/auth/cloud-platform)
  </li>
</ul>

**8. Create the OAuth client**

Open **APIs & Services** > **Credentials**.

<ul>
  <li>Click **Create credentials**.</li>
  <li>Select **OAuth client ID**.</li>
  <li>**Application type**: **Web application**</li>
  <li>**Name**: A name that identifies this OAuth client</li>
  <li>Under **Authorized redirect URIs**, click **Add URI**.</li>
  <li>Enter the **Callback URL** from your Connector Profile.</li>
  <li>Click **Create**.</li>
</ul>

![Create OAuth 2.0 navigation](https://mintcdn.com/stackone-60/V2c7gq-hCo1DOIrh/connectors/googletexttospeech/images/oauth2-setup-create-oauth-navigation.png?fit=max\&auto=format\&n=V2c7gq-hCo1DOIrh\&q=85\&s=3bd77936ad9ec5c3a884ff7617f5bf7e)

**9. Copy the Client ID and Client Secret**

A dialog shows your **Client ID** and **Client Secret**.

<ul>
  <li>Copy the **Client ID** and **Client Secret** into your Connector Profile.</li>
  <li>Google shows the **Client Secret** only once.</li>
</ul>

![Create a new OAuth client](https://mintcdn.com/stackone-60/egLCtGzkQpmna7BV/connectors/googletexttospeech/images/oauth2-setup-client-credentials.png?fit=max\&auto=format\&n=egLCtGzkQpmna7BV\&q=85\&s=38cd88c2f225501cedbe07bd13ed6a3f)

## Exempt the app from session control

Google Workspace administrators can enforce a **Google Cloud session control** window of 1 to 24 hours on Google Cloud OAuth scopes, which requires interactive re-authentication.

<ul>
  <li>**Never expires:** In the Google Admin console, open **Security** > **Access and data control** > **Google Cloud session control** and select **Session never expires**.</li>
  <li>**Trusted app:** In the Google Admin console, add this OAuth app to the trusted (exempted) apps list.</li>
</ul>

## Create the StackOne Connector Profile

**1. Create a Connector Profile**

Enable the connector and create a Connector Profile in your project. See [Setup Connector Profile](https://docs.stackone.com/gateway/quickstart.md#setup-connector-profile).

**2. Link an Account**

Once the Connector Profile is created, continue to [link an account](https://docs.stackone.com/connectors/googletexttospeech/guides/link-account/oauth-2-0-multiple-companies.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.