Skip to content

Commit

Permalink
docs: add text to speech setup guide (#812)
Browse files Browse the repository at this point in the history
* Add docs

* Add highlights
  • Loading branch information
danylo-boiko authored Oct 15, 2024
1 parent f029921 commit 8dabb00
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Toolkit is a deployable all-in-one RAG application that enables users to quickly
- [How to add tools](/docs/custom_tool_guides/tool_guide.md)
- [How to add auth to your tools](/docs/custom_tool_guides/tool_auth_guide.md)
- [How to setup Google Drive](/docs/custom_tool_guides/google_drive.md)
- [How to setup Google Text-to-Speech](/docs/text_to_speech.md)
- [How to add authentication](/docs/auth_guide.md)
- [How to deploy toolkit services](/docs/service_deployments.md)
- [How to set up Github Actions for automated DB migrations](/docs/github_migrations_action.md)
Expand Down
30 changes: 30 additions & 0 deletions docs/text_to_speech.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Google Cloud Text-to-Speech Setup

To use Google Cloud Text-to-Speech, you'll need to create a Google Cloud project and follow the steps below:

## 1. Enable Required APIs

Open the **Google Cloud Console**, navigate to **APIs & Services**, and enable:
- **Cloud Text-to-Speech API**
- **Cloud Translation API**

## 2. Create API Credentials

In the **Google Cloud Console**, go to **APIs & Services** > **Credentials**.
Click **Create Credentials** and select **API key**.
Copy the generated API key for using in the next step.

## 3. Configure Environment Variable

You can either set the API key in your `.env` file:

```bash
GOOGLE_CLOUD_API_KEY=<your_api_key>
```

or update your `secrets.yaml` configuration to contain:

```bash
google_cloud:
api_key:<your_api_key>
```

0 comments on commit 8dabb00

Please sign in to comment.