-
Notifications
You must be signed in to change notification settings - Fork 363
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add text to speech setup guide (#812)
* Add docs * Add highlights
- Loading branch information
1 parent
f029921
commit 8dabb00
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
``` |