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 npm:
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 Application Default Credentials (ADC):
const client = new text-to-speech.TextToSpeechClient();
Create a client with explicit credentials:
const client = new text-to-speech.TextToSpeechClient({
projectId: 'your-project-id',
keyFilename: '/path/to/keyfile.json',
});
Members
(static) v1 :object
Properties:
Name | Type | Description |
---|---|---|
TextToSpeechClient |
constructor |
Reference to v1.TextToSpeechClient |
(static) v1beta1 :object
Properties:
Name | Type | Description |
---|---|---|
TextToSpeechClient |
constructor |
Reference to v1beta1.TextToSpeechClient |