Before running the samples, make sure you've followed the steps outlined in Using the client library.
cd samples
npm install
cd ..
View the source code.
Usage:
node packages/google-cloud-texttospeech/samples/generated/v1/text_to_speech.list_voices.js
View the source code.
Usage:
node packages/google-cloud-texttospeech/samples/generated/v1/text_to_speech.synthesize_speech.js
View the source code.
Usage:
node packages/google-cloud-texttospeech/samples/generated/v1/text_to_speech_long_audio_synthesize.synthesize_long_audio.js
View the source code.
Usage:
node packages/google-cloud-texttospeech/samples/generated/v1beta1/text_to_speech.list_voices.js
View the source code.
Usage:
node packages/google-cloud-texttospeech/samples/generated/v1beta1/text_to_speech.synthesize_speech.js
View the source code.
Usage:
node packages/google-cloud-texttospeech/samples/generated/v1beta1/text_to_speech_long_audio_synthesize.synthesize_long_audio.js
View the source code.
Usage:
node packages/google-cloud-texttospeech/samples/quickstart.js