module
@google-cloud/text-to-speech
Source: index.
The text-to-speech package has the following named exports:
TextToSpeechClient- Reference to v1.TextToSpeechClientv1beta1- This is used for selecting or pinning a particular backend service version. It exports:TextToSpeechClient- Reference to v1.TextToSpeechClient
Examples
Install the client library with <a href="https://www.npmjs.com/">npm</a>:
npm install --save @google-cloud/text-to-speech
Import the client library:
const text-to-speech = require('@google-cloud/text-to-speech');
Create a client that uses <a href="https://goo.gl/64dyYX">Application Default Credentials (ADC)</a>:
const client = new text-to-speech.TextToSpeechClient();
Create a client with <a href="https://goo.gl/RXp6VL">explicit credentials</a>:
const client = new text-to-speech.TextToSpeechClient({
projectId: 'your-project-id',
keyFilename: '/path/to/keyfile.json',
});
Exports
require("@google-cloud/text-to-speech") unknown
Property
| Name | Type | Optional | Description |
|---|---|---|---|
|
TextToSpeechClient |
|
|
Reference to v1.TextToSpeechClient |
Properties
static
v1 object
Property
| Name | Type | Optional | Description |
|---|---|---|---|
|
TextToSpeechClient |
constructor |
|
Reference to v1.TextToSpeechClient |
static
v1beta1 object
Property
| Name | Type | Optional | Description |
|---|---|---|---|
|
TextToSpeechClient |
constructor |
|
Reference to v1beta1.TextToSpeechClient |